Express > Express Assembly Interfaces > IEaxGridDimensionSettings > IEaxGridDimensionSettings.OnlyFirstNamingHyperlinkShown
OnlyFirstNamingHyperlinkShown: TriState;
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.
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.
To execute the example:
Make sure that the repository contains an express report with dimension containing attributes in different columns.
Place the components on the form: Button, Label, UiErAnalyzer and TabSheetBox named Button1, Label1, UiErAnalyzer1 and TabSheetBox1, respectively.
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(10152) As 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: