Show contents 

Express > Express Assembly Interfaces > IEaxGridDimensionSettings > IEaxGridDimensionSettings.OnlyFirstNamingHyperlinkShown

IEaxGridDimensionSettings.OnlyFirstNamingHyperlinkShown

Syntax

OnlyFirstNamingHyperlinkShown: TriState;

Description

The OnlyFirstNamingHyperlinkShown property determines whether hyperlinks will be displayed only for dimension attribute that is the first in order to display dimension elements names in working area.

Comments

To get attribute indicating whether hyperlinks are displayed only for the first dimension attribute in order to display dimension elements names in working area, the IEaxGridDimensionSettings.IsOnlyFirstNamingHyperlinkShown method is used.

Example

To execute the example:

Add links to the Express, Express, ExtCtrls, Forms, Metabase, Pivot, and Tab system assemblies.

The example is a handler of the OnClick event for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Eax: IEaxAnalyzer;
    Prop: IEaxGridDimensionSettings;
    PivotDim: IDataAreaHeaderSettingsBase;
Begin
    // Open express report with the 71208 key
    Eax := MetabaseClass.Active.Item(71208).Edit As IEaxAnalyzer;
    Eax := UiErAnalyzer1.ErAnalyzer;
    // Find data source dimension with the 10152 key
    PivotDim := Eax.Pivot.Dimensions.FindByKey(10152As IDataAreaHeaderSettingsBase;
    // Check if hyperlink is displayed for the first dimension attribute 
    Prop := Eax.Grid.ViewSettings.GetViewSettings(PivotDim) As IEaxGridDimensionSettings;
    If Prop.IsOnlyFirstNamingHyperlinkShown = False Then
        // Enable displaying of hyperlink for the first dimension attribute
        Prop.OnlyFirstNamingHyperlinkShown := TriState.OnOption;
        Label1.Text := "Displaying of hyperlink only for the first dimension attribute";
    Else
        // Enable displaying of hyperlink for all dimension attributes
        Prop.OnlyFirstNamingHyperlinkShown := TriState.OffOption;
        Label1.Text := "Display hyperlink for all dimension attributes";
    End If;
    (Eax As IMetabaseObject).Save;
End Sub Button1OnClick;

After executing the example, clicking the Button1 button in the Label1 component displays the state of hyperlink displaying for dimension attributes.

See also:

IEaxGridDimensionSettings