1Ci Support Help Center home page
Submit a request
Sign in
  1. 1Ci Support
  2. 1C:Enterprise Development Standards
  3. Code conventions
  4. Using 1C:Enterprise language structures

Form module event handlers attached in code

  • Using 1C:Enterprise language structures
    • General requirements to creating 1C:Enterprise language structures
    • Moving expressions
    • Using duplicate code
    • Using compilation directives and preprocessor commands
    • Defining variable value type
    • Getting objects metadata
    • Form module event handlers attached in code
    • Using global variables in modules
    • Local variables pre-initializing
    • Using event log
See more

Scope: managed applications, mobile applications, and ordinary applications.

We recommend that you set the Attachable_ prefix to form module event handlers set from the code using the SetAction method. $$$ For example:

Procedure Attachable_AllowObjectAttributeEdit()
…
Procedure Attachable_ContactInformationStartChoice()
…

If handlers are attached not in the form module text (for example, in a common module), the configuration check results with the selected "Search for unused procedures and functions" check box includes the following errors:

Catalog._DemoPartners.Form.ItemForm.Form No procedure references are detected: " Attachable_ContactInformationStartChoice".

If you use the prefix, you can easily identify such handlers in check results and exclude them as exceptions.

If handlers are attached in the form module text, no errors occur when a configuration is verified with the "Search for unused procedures and functions" check box selected.

© 2020 1C INTERNATIONAL LLC www.1Ci.com Support policy