IEaxGridHeaderSettings.Placement

Fore Syntax

Placement: EaxGridHeaderPlacement;

Fore.NET Syntax

Placement: Prognoz.Platform.Interop.Express.EaxGridHeaderPlacement;

Description

The Placement property determines settings of header layout.

Fore example

Executing the example requires that the repository contains express report with the EXPRESS identifier for which header and expanding hierarchy is set.

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

Sub UserProc;
Var
    MB: IMetabase;
    Expr: IEaxAnalyzer;
    SettBase: IDataAreaHeaderSettingsBase;
    ViewSett: IEaxGridViewSettings;
    Sett: IEaxGridHeaderSettings;
Begin
    MB := MetabaseClass.Active;
    Expr := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
    SettBase := Expr.Pivot.LeftHeader As IDataAreaHeaderSettingsBase;
    ViewSett := Expr.Grid.ViewSettings;
    Sett := ViewSett.GetViewSettings(SettBase) As IEaxGridHeaderSettings;
    // Sorting icons visibility
    Sett.DisplaySortIcons := False;
    // Indent in drop-down hierarchy
    Sett.HierarchyIndent := 15;
    // Header position settings
    Sett.Placement := EaxGridHeaderPlacement.Simple;
    (Expr As IMetabaseObject).Save;
End Sub UserProc;

After executing this example the following settings will be specified for the express report.

Fore.NET example

The requirements and result of Fore.NET Example execution are the same as in the Fore Example.

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

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Expr: IEaxAnalyzer;
    SettBase: IDataAreaHeaderSettingsBase;
    ViewSett: IEaxGridViewSettings;
    Sett: IEaxGridHeaderSettings;
Begin
    MB := Params.Metabase;
    Expr := MB.ItemById["EXPRESS"].Edit() As IEaxAnalyzer;
    SettBase := Expr.Pivot.LeftHeader As IDataAreaHeaderSettingsBase;
    ViewSett := Expr.Grid.ViewSettings;
    Sett := ViewSett.GetViewSettings[SettBase] As IEaxGridHeaderSettings;
    // Sorting icons visibility
    Sett.DisplaySortIcons := False;
    // Indent in drop-down hierarchy
    Sett.HierarchyIndent := 15;
    // Header position settings
    Sett.Placement := EaxGridHeaderPlacement.eghpSimple;
    (Expr As IMetabaseObject).Save();
End Sub;

See also:

IEaxGridHeaderSettings