Reference Information: Definition of Commands 
The menu functions available in the PI sheet or cockpit refer to the entire document (global commands) or individual components in the document (local commands). The system only displays those menu functions that can actually be carried out when the document or component is called. You can use the XSL style sheet to determine which menu functions should also be available as commands (pushbuttons).
In addition, you can define HTML elements of your choice in the entire document. Cascading style sheets (_bfw_css_active_ or _bfw_css_inactive_ attribute) are used to synchronize these elements with the status of the command assigned. These elements must support the onclick or onkeypress JavaScript events.
You can use any HTML tags to declare menu functions for the entire document or individual components. Menu functions for a particular component, however, must be defined in the "grouping" tag of the relevant component. This HTML tag must contain the following parts of the component as an attribute. Each attribute must then be assigned certain attribute values.
Attribute |
Attribute Value |
Explanation |
ID (HTML attribute) |
|
|
_BFW_CODE_ |
<command> (see below) |
Each command is valid for one or several usages. |
Optional |
||
_BFW_CSS_ACTIVE_ |
Any CSS style |
Active, for example, in the change mode |
_BFW_CSS_INACTIVE_ |
Any CSS style |
Inactive, for example, in the display mode |
You can use the following commands:
Command |
Available for |
Function |
COMMENT_GET |
Document, all components |
Display comments entered |
COMMENT_SET |
Document, all components |
Enter new comment |
DEVIATION_SHOW |
Input field with input validation |
Display deviations |
SIGNATURE_SHOW |
Signature field |
Display signatures executed |
POSITION_SHOW |
All components |
Display position |
MESSAGE_SHOW |
All components |
Display messages |
ADD_LINE |
Table |
Add line |
EDIT |
Document |
Switch to change mode |
SHOW |
Document |
Switch to display mode |
REPORT |
Document |
Report data |
SAVE |
Document |
Save |
DISCARD |
Document |
Cancel or discard |
|
Document |
Print document |

Definition of a global command in the HTML document that is created by the XSL style sheet:
<INPUT ID="_bfw_g_command_" TYPE=...
_BFW_CODE_="SAVE"
_BFW_CSS_ACTIVE_="myStyle1"
_BFW_CSS_INACTIVE_="myStyle2"></INPUT>
Definition of a local command in the HTML document that is created by the XSL style sheet:
<SPAN ID="_bfw_component_" _BFW_TYPE_="..." _BFW_KEY_="..." ...>
...
<INPUT ID="_bfw_g_command_" TYPE=...
_BFW_CODE_="COMMENT_SET"
_BFW_CSS_ACTIVE_="myStyle1"
_BFW_CSS_INACTIVE_="myStyle2"></INPUT> ...
</SPAN>