Placement: EaxGridHeaderPlacement;
Placement: Prognoz.Platform.Interop.Express.EaxGridHeaderPlacement;
The Placement property determines settings of header layout.
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.
Sorting icons are not visible.
Indent in the dropdown hierarchy is specified.
Simple arrangement of the express report header is used.
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: