AdditionalAttributes: String;
AdditionalAttributes: string;
The AdditionalAttributes property determines identifiers of optional attributes of the time series database, which values should be obtained on data loading.
If loading of several unnecessary attributes values is required, their identifiers are set in the AdditionalAttributes separated by semicolon.
Executing the example requires a time series database with the FC identifier that contains optional attributes with the BASE and FUNC identifiers. Modeling container of this time series database contains a model of determinate equation with the MODEL identifier.
Add links to the Metabase, Ms, Cubes system assemblies.
Sub UserProc;
Var
mb: IMetabase;
Rub: IRubricator;
MsDescr: IMetabaseObjectDescriptor;
Model: IMsModel;
Transform: IMsFormulaTransform;
Begin
mb := MetabaseClass.Active;
Rub := mb.ItemById("FC").Bind As IRubricator;
MsDescr := Rub.ModelSpace;
Model := mb.ItemByIdNamespace("MODEL", MsDescr.Key).Edit As IMsModel;
Transform := Model.Transform;
Transform.AdditionalAttributes := "BASE;FUNC";
(Model As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the values of the BASE and FUNC optional attributes are obtained when loading data for the model.
Executing the example requires a time series database with the FC identifier that contains optional attributes with the BASE and FUNC identifiers. Modeling container of this time series database contains a model of determinate equation with the MODEL identifier.
Imports Prognoz.Platform.Interop.Ms;
Imports Prognoz.Platform.Interop.Cubes;
…
Public Shared Sub Main(Params: StartParams);
Var
mb: IMetabase;
Rub: IRubricator;
MsDescr: IMetabaseObjectDescriptor;
Model: IMsModel;
Transform: IMsFormulaTransform;
Begin
mb := Params.Metabase;
Rub := mb.ItemById["FC"].Bind() As IRubricator;
MsDescr := Rub.ModelSpace;
Model := mb.ItemByIdNamespace["MODEL", MsDescr.Key].Edit() As IMsModel;
Transform := Model.Transform;
Transform.AdditionalAttributes := "BASE;FUNC";
(Model As IMetabaseObject).Save();
End Sub;
After executing the example the values of the BASE and FUNC optional attributes are obtained when loading data for the model.
See also: