ApplyDefaultAttriburesOrder;
ApplyDefaultAttriburesOrder();
The ApplyDefaultAttriburesOrder method applies default hierarchy of attributes.
Only time series attributes are used in the default hierarchy.
Executing the example requires a form with the MetaAttributesBreadcrumb component with the MetaAttributesBreadcrumb1 identifier. The repository must contain a time series database with the TSDB_HIE_BY_DEF identifier.
Add a link to the Metabase system assembly.
Sub UserProc;
Var
mb: IMetabase;
Begin
mb := MetabaseClass.Active;
MetaAttributesBreadcrumb1.Rubricator := mb.ItemById("TSDB_HIE_BY_DEF").Open(Null) As IRubricatorInstance;
MetaAttributesBreadcrumb1.ApplyDefaultAttributesOrder;
End Sub UserProc;
After executing the example the default hierarchy of attributes is loaded to the MetaAttributesBreadcrumb1 component.
The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.
Imports Prognoz.Platform.Interop.Metabase;Imports Prognoz.Platform.Interop.Cubes;…Public Sub UserProc();Var mb: IMetabase;Begin mb := Self.Metabase; metaAttributesBreadcrumbNet1.CtrlBox.Rubricator := mb.ItemById["TSDB_HIE_BY_DEF"].Open(Null) As IRubricatorInstance; metaAttributesBreadcrumbNet1.CtrlBox.ApplyDefaultAttributesOrder();End Sub UserProc;
See also: