Working with commands

How is a command displayed?
How is a command function explained?
What is a submenu?
Addressing Command

You should work with commands in managed application mode the same way as usual.

A command can be displayed as a link on navigation and actions panels. In this case a command is executed when you click on it or press a keyboard shortcut.

For forms and controls located in forms, commands can be located in a command bar (e.g. "All Actions", and in context menu (if it is specified during configuration).

A command function is explained by an image, label, hint (displayed when the cursor is placed over it) and a detailed tool tip in the status bar. Some of the above explanations may be available for certain commands.

Commands in command bars can be grouped. A command that contains other commands is a submenu. A submenu is indicated by a triangle icon located to the right of command's name or image. When such type of command is executed, a submenu is opened and nested commands are displayed.

For some commands a push display mode can be set during configuration. These commands are used for enabling or disabling different modes. For example, you can view document contents when activating it in a list in a document list form. This function is not always needed. You can manage display during configuration using the "Details" command in the command bar. When it is pressed, the contents is displayed, and the command button is shown as pressed (framed). When the command is executed again, the contents is not displayed, and the command image is shown as not pressed (without a frame). If a command is represented by an image and it is activated, it will be framed.

If a form contains several lists (e.g. for a hierarchical catalog a form can contain a tree list of groups and an elements list), actions with these lists (adding, editing, marking for deletion, etc.) are usually performed from one command bar located in the form. Data from different lists can serve as an object of action for one command. An action is addressed according to current list activity. If the tree list is active, the action will be applied to it. If there are no active lists (other form elements are active), then command is addressed according to the form's main attribute. Usually the main attribute of a form corresponds to its function (e.g. in the "Products" form lists of the "Products" catalog are displayed – group tree and elements; the main attribute in this case is the element list). Different behavior is explained in configuration description.

1C:Enterprise Developer's Community