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:

The example is the OnClick event handler for the component with the Button1 identifier.

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

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

See also:

IEaxGridDimensionSettings