open(key: Number | Object, loadAllElements: Boolean, getAttr: Boolean, pattern: Object, callback: function, params: Object, binding: Object);
key. Key or moniker of the dictionary to be opened.
loadAllElements. Indicates if all dictionary elements are loaded. Available values:
true. All dictionary elements are loaded.
false. All dictionary elements are not loaded.
getAttr. Indicates if information about dictionary attributes is extracted. Available values:
true. Information about dictionary attributes is extracted.
false. Information about dictionary attributes is not extracted.
pattern. The pattern, according to which dictionary metadata is extracted.
callback. Callback procedure.
params. Dictionary parameters. Array of objects of the PP.Mb.Param type.
binding. Result output parameters. The object must contain the fields: ID - dictionary identifier; GROUP - group name; ATTRIBUTEVALUE - attribute value; SELECTIONMODE - element selection method; LEVELATTR - level attributes.
The open method opens a dictionary.
If the "pattern" parameter is not set, the following object is set instead of it:
{
getDescr: true,
getAttrs: true,
getLevs: true,
getHiers: true,
getGroups: true,
getSchemas: true,
getSelection: true,
getCompound: true,
getErrorInfo: true,
getIndexes: true,
getCalendarLevs: true
};
The example of use is given on the page with description of the constructor of the DimSrv class.
See also: