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 timeline of a map or a matrix.
If the method returns False, the dimension cannot be used as a calendar or as a timeline.
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 0 index can be used as a timeline 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 0 index can be used as a timeline and as a calendar dimension in the report.
See also: