Main > Knowledge Base > Best practices > Code conventions > Using 1C:Enterprise script clauses > Form module event handlers defined in 1C:Enterprise script > Best practices > Code conventions > Using 1C:Enterprise script clauses > Form module event handlers defined in 1C:Enterprise script > Best practices > Code conventions > Using 1C:Enterprise script clauses > Form module event handlers defined in 1C:Enterprise script

Form module event handlers defined in 1C:Enterprise script

We recommend that you assign the Attachable_ prefix to the form module event handlers defined using the SetAction script method.

Example:

Procedure Attachable_AllowEditingObjectAttributes() 
...
Procedure Attachable_ContactInfoBeginSelection() 
...

If you attach a handler not in the form module (for example, you attach it in a common module), a configuration check with the Find unused procedures and functions option returns the following errors:

Catalog._DemoPartners.Form.ItemForm.Form No links to procedure found: 
"Attachable_ContactInfoBeginSelection"

The prefix ensures that you easily identify these handlers in the check result and ignore them.

If you attach a handler in a form module,  a configuration check with the Find unused procedures and functions option does not return errors.

Next page: General requirements to 1C:Enterprise script clauses




© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.