IEaxDataAreaSliceProperties.UseCustomDimensionNamingAttribute

Syntax

UseCustomDimensionNamingAttribute(DimKey: Integer): Boolean;

Parameters

DimKey. Dimension key.

Description

The UseCustomDimensionNamingAttribute property determines whether custom names will be used for dimension elements.

Comments

Available Values:

Example

Executing the example requires an express report with the EXPRESS identifier. The express report contains a data source containing a dimension with the D_TO identifier.

Add links to the Metabase, Express, Pivot, Dimensions system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    SelSet: IDimSelectionSet;
    DimSel: IDimSelection;
    DataArea: IEaxDataArea;
    AreaSlice: IEaxDataAreaSlice;
    Properties: IEaxDataAreaSliceProperties;
    Key: Integer;
Begin
    MB := MetabaseClass.Active;
    Express := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
    // Get selection basing on which table is built
    SelSet := Express.Pivot.Selection;
    DimSel := SelSet.FindById("D_TO");
    // Get analytical data area
    DataArea := Express.DataArea;
    // Get data source slice
    AreaSlice := DataArea.Slices.Item(0);
    // Get properties of data source slice
    Properties := AreaSlice.Properties;
    Key := DimSel.Dimension.Key;
    Properties.UseCustomDimensionNamingAttribute(Key) := True;
    // Save report
    (Express As IMetabaseObject).Save;
End Sub UserProc;

After executing the example custom names will be used for elements of specified dimension.

See also:

IEaxDataAreaSliceProperties