ConstantsSet

Properties:

<Constant name>

Methods:

CheckFilling
GetForm
Read
Write

Description:

This may be used to execute reading and recording operations for a particular group of constants for all constants. The set content is defined by using the <ConstantsSet> parameter of the CreateSet method for the ConstantsManager object. The object in the form of constants can also be used to store, record and read constants.

Availability:

Server, thick client, external connection, Mobile application (server).

Example:

ConstantsSet = Constants.CreateSet("Director,Bookkeeper");
ConstantsSet.Read();
If 
IsBlankString(ConstantsSet.Director) Then
    ConstantsSet.Director  = "Jackson Peter";
EndIf
;
If 
IsBlankString(ConstantsSet.Bookkeeper ) Then
    ConstantsSet.Bookkeeper  = "Adams John";
EndIf
;
ConstantsSet.Write();

See also:

ConstantsManager, method CreateSet
ConstantsSet, property <Constant name>
Managed form extension for constants, event OnWriteAtServer
Managed form extension for constants, event BeforeWriteAtServer
Managed form extension for constants, event AfterWriteAtServer
Managed form extension for constants, event OnReadAtServer

    

1C:Enterprise Developer's Community