1C:Enterprise script

The 1C:Enterprise script is central to the software platform. It has much in common with Pascal, JavaScript, and Basic, but it is not directly related to any of these languages. As has been already mentioned, applied solutions are not programmed (coded) in 1C:Enterprise in full. Most of them are described parametrically, as metadata structures, with the help of Designer through forms, reports, etc.

Therefore, 1C:Enterprise provides a script for programming the business logic within the context of the 1C:Enterprise object model. The script is used to program the handlers of various events that change the state of system objects, i.e., user command handlers, document posting handlers, etc.

It is important to note that the script’s structural features correspond directly to the data structure design model implemented in 1C:Enterprise. Since the whole configuration development is based on standard system objects, the developer of applied solutions can use script objects that correspond to these system objects and are very functional and flexible.

Among the most important technological features of the script are the following:

  • precompilation. Modules are converted to the native code before execution;
  • caching compiled modules in the memory;
  • soft typing: you can change the type of variables in the course of work;
  • no programmatic description of configuration objects: the applied solution can manipulate objects integrated into the 1C:Enterprise platform as well as objects described by the developer in the process of visual construction of the system as metadata objects.

Add comment