ActiveGroupId: Sting
The ActiveGroupId property sets identifier of the active group of dictionary elements.
Use JSON or the setActiveGroupId method to set the property value and the getActiveGroupId method to get the property value.
Parameters of the setActiveGroupId method:
- id. Group identifier, type - String.
To create an element group, select the Element Groups item in dictionary context menu, then click Add button in the opened dialog box and select the required group of dictionary elements. To get identifier of an element group, select added selection schema and click the Save As button.
To execute the example, the HTML page must contain the DimTree component named dimTree that uses the dim dictionary as its source and a service for working with dictionaries named dimSrv (see Example of Creating the DimTree Component). The repository must contain a dictionary with the key 628189, and a group of elements with the ID OBJ628190 must be added for this dictionary. Set an active element group for dictionary and add a handler of active element group change event:
// Add a handler of active element group change event dimTree.GroupChanging.add(function(sender, args) { console.log("Active element group is changed"); )}; // Set element group dimTree.setActiveGroupId("OBJ628190");
After executing the example an element group with the specified identifier is set for the dictionary tree.
The console displays information about changes in active element group:
Active element group is changed
See also: