CanDimBeTimeLine(Dimension: IDimInstance): Boolean;
CanDimBeTimeLine(Dimension: Prognoz.Platform.Interop.Dimensions.IDimInstance): Boolean;
The CanDimBeTimeLine property returns whether the dimension can be used as a calendar dimension in the report and as a time line of a map or a matrix.
If this method returns False the dimension cannot be used as a calendar or as a time line.
The possibility is determined by dictionary attributes.
Executing the example requires an express report with the EXPRESS_REPORT identifier.
Add links to the Dimensions, Express, Pivot, and Metabase system assemblies.
Sub Main;
Var
MB: IMetabase;
Eax: IEaxAnalyzer;
Dimen: IDimInstance;
Begin
MB := MetabaseClass.Active;
Eax := MB.ItemById("EXPRESS_REPORT").Bind As IEaxAnalyzer;
Dimen := Eax.Pivot.DimItem(0);
Debug.WriteLine(Eax.CanDimBeTimeLine(Dimen).ToString);
End Sub UserProc;
After executing the example the console window displays information whether the dictionary of the report with the index 0 can be used as a time line and as a calendar dimension in the report.
Executing the example requires an express report with the EXPRESS_REPORT identifier.
Add links to the Dimensions, Express, Pivot, and Metabase system assemblies.
Imports Prognoz.Platform.Interop.Pivot;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Dimensions;
Imports Prognoz.Platform.Interop.Express;
...
Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Eax: IEaxAnalyzer;
Dimen: IDimInstance;
Begin
MB := Params.Metabase;
Eax := MB.ItemById["EXPRESS_REPORT"].Bind() As IEaxAnalyzer;
Dimen := Eax.Pivot.DimItem(0);
System.Diagnostics.Debug.WriteLine(Eax.CanDimBeTimeLine(Dimen).ToString());
End Sub;
After executing the example the console window displays information whether the dictionary of the report with the index 0 can be used as a time line and as a calendar dimension in the report.
See also: