Module types (2024)

Configuration can include various module types. The modules can belong to certain objects (such as forms), or they can exist independently (belong to a configuration as a whole).

The platformuses the script stored in the modules at predefined points of 1C:Enterprise operation. These points are referred to as events and we have discussed them earlier.

The following module types are available in1C:Enterprise.

1. Managed application module.It is executed when 1C:Enterprise is started in a thin client or web client modes.

You can declare variables and define procedures and functions in this module, and they will be available to all configuration modules (exceptthe external connection module). They are also available for nonglobal common modules with the Client (managed application) property enabled. Exported procedures and functions of common modules are available in the managed application module context.

To open a managed application module

2. Common modules. They store the procedures and functions that are called from othermodules. A common module itself is never executed, it simply stores the procedures and functions.

To open a common module

  • In the configuration object tree, expand the Common branch, then expand the Common modules branch and double-click the module (fig. 5.2).

    Module types (2)
    Fig. 5.2. Opening a common module

3. Object modules. Examples of such modules are a catalog item module anda document module.

An object module is calledwhen an object iscreated using 1C:Enterprise script (for example, the CreateItem() method of a catalog manager is called, or the CreateDocument() method of a document manager), or when a user creates an object (for example, a catalog item or a document).

When modified object data is recorded to the database, event handlerslocated in the object module are called.

For details on the event sequence during the writing of modified configuration objects, see chapter Quick developer reference.

To open an object module

  • In the configuration object editor, click the Other tab and then click Object module (fig. 5.3).
    -OR-
    In the configuration object tree, right-click the objectand then click Open object module.

    Module types (3)
    Fig.5.3. Opening an object module

4. Form modules. Each form that is defined in a configuration has its own module. This module is executed when the ManagedForm object of 1C:Enterprise script is created. The platform creates this objectin 1C:Enterprise mode when a form is openedeither using 1C:Enterprise script (the GetForm() or OpenForm() method) or interactively.

To open a form module

  • In the configuration object tree,expand the object and open its subordinate Form object, then click the Module tab (fig. 5.4).

    Module types (4)
    Fig. 5.4. Opening a form module

5. Session module. It is executed when the configuration is loaded during 1C:Enterprise startup. A session module is intended to initialize the session parameters and execute the session-related actions. It cannot contain exported procedures or functions. It can call procedures from the common modules.

To open a session module

  • In the configuration object tree, right-click the BeginnerGuide root item and click Open session module (fig.5.5).

    Module types (5)
    Fig. 5.5. Opening a session module

6. External connection module. Itis intended for storing functions and procedures that can be calledin an external connection session.

To open a session module

  • In the configuration object tree, right-click the BeginnerGuide root item and click Open external connection module (see fig.5.5).

7. Manager modules. Each application object has a manager that manages the corresponding configuration object. Using this manager, you can create objects and perform operations with their forms and templates. A manager module allows you to extend the functionality of default managers provided by the platform by writing procedures and functions in 1C:Enterprise script.

In fact, this allows you to define custom methods for a configuration object (for example, a catalog) that do not refer to a specific database object instance, but rather to the configuration object itself.

To open a manager module

  • In the configuration object editor, click the Other tab andclick Manager module.
    -OR-
    In the configuration object tree,right-click theobject and clickOpen manager module.

    Module types (6)
    Fig. 5.6. Opening a manager module

8. Command modules. The entire configurationand its applied objects can have subordinate configuration objects referred to as Commands. Each command has a command module. You can use this module to create a predefined CommandProcessing() procedure, which is called when the command is executed.

To open the module of a command subordinate to a configuration object

  • In the configuration object editor, click the Commands tab and double-click the command (fig. 5.7).
    -OR-
    In the configuration object tree, right-click thecommand and click Open command module.

    Module types (7)
    Fig. 5.7. Opening amodule of a configuration object command

Next page:Form module context

Module types (2024)
Top Articles
Interview mit Oliver Hillegaart, Jamf: Apple-Geräte im Business-Einsatz
Best Community Colleges in Maryland
Will Byers X Male Reader
Craigslist Pets Longview Tx
Chatiw.ib
Missed Connections Inland Empire
³µ¿Â«»ÍÀÇ Ã¢½ÃÀÚ À̸¸±¸ ¸íÀÎ, ¹Ì±¹ Ķ¸®Æ÷´Ï¾Æ ÁøÃâ - ¿ù°£ÆÄ¿öÄÚ¸®¾Æ
Wannaseemypixels
What's New on Hulu in October 2023
MADRID BALANZA, MªJ., y VIZCAÍNO SÁNCHEZ, J., 2008, "Collares de época bizantina procedentes de la necrópolis oriental de Carthago Spartaria", Verdolay, nº10, p.173-196.
Best Private Elementary Schools In Virginia
Bbc 5Live Schedule
Strange World Showtimes Near Amc Braintree 10
Zendaya Boob Job
Springfield Mo Craiglist
Dit is hoe de 130 nieuwe dubbele -deckers -treinen voor het land eruit zien
Steamy Afternoon With Handsome Fernando
Daily Voice Tarrytown
Craigslist Red Wing Mn
U Arizona Phonebook
Officialmilarosee
Conan Exiles: Nahrung und Trinken finden und herstellen
Silive Obituary
Bible Gateway passage: Revelation 3 - New Living Translation
Www.publicsurplus.com Motor Pool
Craigslist Battle Ground Washington
Litter Robot 3 RED SOLID LIGHT
How To Find Free Stuff On Craigslist San Diego | Tips, Popular Items, Safety Precautions | RoamBliss
Unity Webgl Car Tag
Paradise Point Animal Hospital With Veterinarians On-The-Go
In hunt for cartel hitmen, Texas Ranger's biggest obstacle may be the border itself (2024)
Redbox Walmart Near Me
Davita Salary
Gasbuddy Lenoir Nc
Sports Clips Flowood Ms
Peter Vigilante Biography, Net Worth, Age, Height, Family, Girlfriend
拿到绿卡后一亩三分地
Die Filmstarts-Kritik zu The Boogeyman
The Vélodrome d'Hiver (Vél d'Hiv) Roundup
USB C 3HDMI Dock UCN3278 (12 in 1)
Snohomish Hairmasters
Lyca Shop Near Me
The Transformation Of Vanessa Ray From Childhood To Blue Bloods - Looper
About My Father Showtimes Near Amc Rockford 16
Charli D'amelio Bj
'The Night Agent' Star Luciane Buchanan's Dating Life Is a Mystery
Craigslist Pet Phoenix
60 Days From August 16
Gelato 47 Allbud
Walmart Front Door Wreaths
Strawberry Lake Nd Cabins For Sale
Supervisor-Managing Your Teams Risk – 3455 questions with correct answers
Latest Posts
Article information

Author: Greg O'Connell

Last Updated:

Views: 5969

Rating: 4.1 / 5 (62 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Greg O'Connell

Birthday: 1992-01-10

Address: Suite 517 2436 Jefferey Pass, Shanitaside, UT 27519

Phone: +2614651609714

Job: Education Developer

Hobby: Cooking, Gambling, Pottery, Shooting, Baseball, Singing, Snowboarding

Introduction: My name is Greg O'Connell, I am a delightful, colorful, talented, kind, lively, modern, tender person who loves writing and wants to share my knowledge and understanding with you.