Forms

Forms are the system's main windows, designed for inputting and viewing all kinds of data and for controlling various processes. The 1C:Enterprise systems uses forms to ask the user to provide data it needs to continue, or to output data for the user to view and edit.

The main purpose of a form is to provide the user with a convenient tool to enter and view information. As in paper documents, you can use forms to quickly enter required information and to store it for later processing, and when necessary, to revert to previously entered data to view it or edit.

A form consists of a dialog, a module, and attributes of the form (form fields).

The Form dialog consists of a rectangular area on the screen, which in the most general case contains various controls; for example, explanatory headings, data input fields, controls (such as buttons), etc. The user can use it to interact with the program.

The Form module is a program in the built-in language that is responsible for working with form controls, processing predefined procedures, and performing various secondary calculations. They can be used to prepare and process form attributes, transfer control for execution, and process user actions.

A Form attributes are the set of various types of objects that belong to the form. The attribute list contains a main attribute (appears in bold) that determines the form's behavior when it is opened, edited, or closed. When forms are created using the form Wizard, a main attribute is not created when the type "Generic form" is selected. In that case, the form's behavior is determined entirely by the user's settings.

The list also contains additional attributes.

Forms are created using the form wizard. The wizard will open a window with three tabs located at the bottom of the window.

In the Dialog tab, the form dialog proper is designed.

A dialog is edited using the form editor.

On the Module, the form module is edited. The module is edited using a dedicated text editor

The Attributes tab allows the form developer to add new form attributes and specify their types. This attributes are available anywhere in the form module. One of the attributes (appears in bold) is the main attribute. Its type determined by the object type and the form type (list, element/document, choice, etc.). This attribute is wizard-created. For the "Generic" form type the main attribute is not created.

1C:Enterprise Developer's Community