IEaxAnalyzeCore.CanDimBeTimeLine

Syntax

CanDimBeTimeLine(Dimension: IDimInstance): Boolean;

Description

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.

Comments

If the method returns False, the dimension cannot be used as a calendar or as a timeline.

The possibility is determined by dictionary attributes.

Example

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.

See also:

IEaxAnalyzeCore