Form designer is used to create and edit the forms of application solution objects. The forms of objects are used by the system for visual data display during user work.
Any form is a composition of several components:
- items - objects that specify the visual form representation and perform an interaction with the user,
- command interface – a set of commands displayed in the form;
- attributes – objects whose data are used by the form in its operation.
- commands – actions defined in this particular form,
- parameters – objects whose values describe the from itself, used in its creation and remain constant during the form "life",
- module – script program responsible to work with the items and process the events;
The form designer contains several tabs that provide editing all the form components.
In a separate window, in the bottom part of designer, the external form view is displayed in the 1C:Enterprise mode.
The form designer allows the developer to use a wide range of options to change the external form view – the view which the form will have in the 1C:Enterprise mode. We will list the main of these options:
The form designer allows adding to the form the special items that help to assign to the form its own recognizable style, to make a simple and understandable data access, as well as to place large information content on a limited area.
The designer allows adding to the form several items of Group - Pages each of which may contain multiple items of Group - Page.
For example, the document form may contain one item of Group - pages to which multiple items of Group – Page are subordinate with the headers Main parameters, Storage and purchasing parameters and Additional attributes:
Then in the 1C:Enterprise mode it will look as follows:
The header of each group – page is displayed on a separate tab. The developer can specify the display mode for the tabs: above or below:
For example, the tabs can be placed below:
The designer allows adding to the form the various items. It is possible to add the items using the adding commands or by dragging the form attributes to the item tree:
All form items are represented as the hierarchical structure the root of which is a form itself. This allows quickly moving to the necessary form item:
By placing the items higher/lower in a tree, subjecting them to the other items and specifying the properties of items-groups, it is possible to set an order in which the user will come around the form control elements on input and editing the data. In the 1C:Enterprise mode the form items will be come around in the order of their hierarchy and according to the fact what grouping type is chosen for the groups: vertical or horizontal.
The separators are the special items with which it is possible to reallocate the form space without changing its size. The platform in 1C:Enterprise mode adds by itself these items in the form. The separator can be "captured" by the mouse and moved inside the form within its framework subject to the ability to place other items and separator orientation:
When moving a separator, all the items associated with separator will change their sizes or will be moved:
The form attributes are edited in the list which allows creating the new attributes, changing the existing ones and deleting unnecessary attributes. The attribute properties are specified using property palette.
If the form has a main attribute that defines the form behavior different from a standard – it is highlighted with a bold font.
Form command interface
The form command interface is edited in a tree. The main tree branches contain the commands added to the navigation panel of window in which the form will be displayed and in the form command panel. Inside each of these branches the commands are divided into the standard groups.
A part of commands in the command interface is added by the platform automatically. At the same time, the developer can add independently to the command interface the commands by dragging them from the form command list or from the list of available global commands. For all the commands added to the command interface the developer can specify their visibility for the different roles defined in the configuration.
The form commands are edited in the list. The developer can add, delete the form commands and specify their properties using the property palette. Including assign to the command a procedure to be executed when calling this command by the user.
On the tabs Standard commands and Global commands the developer is provided with the lists of commands generated by the platform and available to use in this form. Their properties cannot be changed, it is possible only to add them to the form.
The developer can drag the command using the mouse to the form command interface. Also it is possible to drag the command directly to the item tree, if it is necessary, for example, to display this command as a button located in the form.
The form parameters are edited in the list. The developer can add, delete the form parameters and specify their properties using the property palette.