Understanding form module content

 


Finally we will briefly describe the general algorithm for understanding the form module script on the example of the MaterialsQuantityOnChange event handler that you created earlier.

Suppose you see the following expression in the form module:

TabularSectionRow = FormItems.Materials.CurrentData;

How does one understand the meaning of TabularSectionRow? Let us remember the form context parts.

  1. Local form module context
  2. Module form attributes
  3. Properties and methods of the ManagedForm 1C:Enterprise script object
  4. Properties and methods of the form extension that is defined by the type of the object whose data is stored in the main form attribute
  5. Global context, including nonglobal common modules and exported functions and procedures of global common modules
  6. Exported variables, procedures, and functions of the managed application module

And check these positions one by one:

  1. Is the TabularSectionRow variable declared in the form module? No.
  2. Does the form have the TabularSectionRow attribute? No.
  3. Does the ManagedForm object have the TabularSectionRow property? No.
  4. Does the form extension have the TabularSectionRow property? No.
  5. Does the TabularSectionRow global context property exist? No.
  6. Does the managed application module contain exported TabularSectionRow variable? No.
This means that TabularSectionRow is a local variable that is defined directly in this assignment operator.

Comments
0
Add comment