getAttributeId ();
The getAttributeld method calculates identifier of the hierarchy attribute.
To execute the example, the page must contain a MetaAttributeBreadCrumb component. Get an attribute with the index 1 for this component, name this attribute someMetaAttribute, and add the following code in the document opening event handler:
//Calculate hierarchy attribute identifier
var attributeId = someOtherMetaAttributeInstance.getAttributeId ();
console.log("Attribute identifier:", attributeId);
//Add server selection change event handler
someOtherMetaAttributeInstance.DimSelectionChanged.add(onDummyActionFactory("Server selection change event occurred"));
//Fire server selection change event
someOtherMetaAttributeInstance.DimSelectionChanged.fire(someOtherMetaAttributeInstance, {});
After executing the example ID of the hierarchy first attribute is shown in the console, and server selection change event is fired.
See also: