DimTreeView.ActiveSchemaId

Syntax

ActiveSchemaId: String

Description

The ActiveSchemaId property sets active selection schema for dictionary items by ID.

Comments

To create a selection schema, choose the Selection Schemas item in context menu of the dictionary, click the Add button in the dialog box that opens and choose desired selection schema. To get selection schema ID, select the added schema and click the Save As button.

Example

To execute the example, the HTML page must contain the DimTree component named dimTree that uses the dim dictionary as its source, and the service that is used to work with dictionaries named dimSrv (see Example of Creating the DimTree Component). The repository must contain a dictionary with the key 628189, which has the selection schema with the ID OBJ628190. Set a selection schema for dictionary and add a handler for active element selection schema group change event:

// Add a handler for active element selection schema change event
dimTree.SchemaChanged.add(function(sender, args) {
    console.log("Active element selection schema is changed");
});
//Set selection schema
dimTree.setActiveSchemaId("OBJ628190");
//Determine whether schema is applied only on the first opening of dimension
dimTree.setSchemaApplyOnlyOnce(True);

After executing the example selection schema with the specified identifier is set for the tree. This schema is applied only on the first opening of the tree that contains this dimension.

The console displays information about changes in active element selection schema:

Active element selection schema is changed

See also:

DimTreeView