FactAndValuesDimension: IDimensionModel;
FactAndValuesDimension: Prognoz.Platform.Interop.Dimensions.IDimensionModel;
The FactAndValuesDimension property returns the dimension of time series database attributes.
The dimension of attributes includes attributes of the factors that are links to the dictionary, and the Value attribute.
Executing the example requires a form containing the DimensionTree component with the DimensionTree1 identifier and the UiDimension component with the UiDimension1 identifier. The UiDimension1 component is a data source for DimensionTree1.
The repository must have a time series database with the TSBD identifier.
Add links to the Cubes and Metabase system assemblies.
Sub UserProc;
Var
mb: IMetabase;
TSDB: IRubricator;
Begin
// Get current repository
MB := MetabaseClass.Active;
// Get time series database
TSDB := MB.ItemById("TSDB").Bind As IRubricator;
// Display dimension of attributes in the DimensionTree1 component
UiDimension1.Dimension := TSDB.FactAndValuesDimension;
UiDimension1.Active := True;
End Sub UserProc;
After executing the example the DimensionTree1 component displays dimension of attributes of time series database.
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.Cubes;
Imports Prognoz.Platform.Interop.Dimensions;
Imports Prognoz.Platform.Interop.Metabase;
…
Public Sub UserProc();
Var
mb: IMetabase;
TSDB: IRubricator;
Begin
// Get current repository
MB := Self.Metabase;
// Get time series database
TSDB := MB.ItemById["TSDB"].Bind() As IRubricator;
// Display dimension of attributes in the DimensionTree1 component
uiDimensionNet1.Dimension := TSDB.FactAndValuesDimension;
uiDimensionNet1.Active := True;
End Sub UserProc;
See also: