IEaxAnalyzer.IsDimFixed

Fore Syntax

IsDimFixed(DimKey: Integer): Boolean;

Fore.NET Syntax

IsDimFixed[DimKey: UInteger]: Boolean;

Parameters

DimKey. Dimension key.

Description

The IsDimFixed property determines whether the dimension is listed among private dimensions in the express report.

Comments

The property can be used if the CanFixDim method returns True.

If this method is set to True, the specified dimension is transferred form shared to private ones: that is, it will have a specific view for each data source. If the property is set to False, the dimension is identified as a general one.

As the DimKey parameter specify key of the repository dictionary used as a base to create the dimension of express report data source.

 Fore Example

Executing the example requires an express report with the EXPRESS_REPORT identifier that shows data of several sources having identical dimensions.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    ExpressA: IEaxAnalyzer;
    DimKey: Integer;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("EXPRESS_REPORT").Edit;
    ExpressA := MObj As IEaxAnalyzer;
    DimKey := ExpressA.Pivot.Dimensions.Item(0).DimInstance.Key;
    If ExpressA.CanFixDim(DimKey, TrueThen
        ExpressA.IsDimFixed(DimKey) := True;
    End If;
    MObj.Save;
End Sub UserProc;

After executing the example the method checks if the dimension with the specified index can be moved to private dimensions. The dimension is moved if it is possible.

 Fore.NET Example

Executing the example requires an express report with the EXPRESS_REPORT identifier that shows data of several sources having identical dimensions.

Imports Prognoz.Platform.Interop.Dimensions;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Pivot;

Public Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    ExpressA: IEaxAnalyzer;
    DimKey: UInteger;
Begin
    MB := Params.Metabase;
    MObj := MB.ItemById["EXPRESS_REPORT"].Edit();
    ExpressA := MObj As IEaxAnalyzer;
    DimKey := ExpressA.Pivot.Dimensions.Item[0].DimInstance.Key;
    If ExpressA.CanFixDim(DimKey, TrueThen
        ExpressA.IsDimFixed[DimKey] := True;
    End If;
    MObj.Save();
End Sub;

After executing the example the method checks if the dimension with the specified index can be moved to private dimensions. The dimension is moved if it is possible.

See also:

IEaxAnalyzer