ApplyDefaultAttriburesOrder;
ApplyDefaultAttriburesOrder();
The ApplyDefaultAttriburesOrder method applies hierarchy of attributes set by default.
Only time series attributes are used in the hierarchy by default.
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: