LastIndexAsInitial: Boolean;
LastIndexAsInitial: boolean;
The LastIndexAsInitial property determines whether on opening express report it moves to the last time line step if there are negative index values.
Negative index value automatically equals to -1.
Available values:
True. Default value. On opening express report it moves to the last time line step.
False. On opening express report it does not move to the last step of time line.
Executing the example requires that the repository contains an express report with the EXPRESS identifier.
Ad links to the Express, Metabase, Visualizators system assemblies.
Sub UserProc;
Var
Metabase: IMetabase;
EaxAnalyzer: IEaxAnalyzer;
EMap: IVZMapChart;
TimeLine: IVZTimeLine;
Begin
// Get repository object
Metabase := MetabaseClass.Active;
// Get express report
EaxAnalyzer := Metabase.ItemById("EXPRESS").Edit As IEaxAnalyzer;
// Get express report map as a visualizer
EMap := EaxAnalyzer.MapChart.MapChart;
// Get time line of map
TimeLine := EMap.TimeLine;
// Set current index value
TimeLine.CurrentIndex := -1;
// It does not move to the last step of time line
TimeLine.LastIndexAsInitial := False;
// Save express report
(EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the value of the current index is set as -1, on opening express report it does not move to the last step of time line.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Visualizators;
…
Public Shared Sub Main(Params: StartParams);
Var
Metabase: IMetabase;
EaxAnalyzer: IEaxAnalyzer;
EMap: IVZMapChart;
TimeLine: IVZTimeLine;
Begin
// Get repository object
Metabase := Params.Metabase;
// Get express report
EaxAnalyzer := Metabase.ItemById["EXPRESS"].Edit() As IEaxAnalyzer;
// Get express report map as a visualizer
EMap := EaxAnalyzer.MapChart.MapChart;
// Get time line of map
TimeLine := EMap.TimeLine;
// Set current index value
TimeLine.CurrentIndex := -1;
// It does not move to the last step of time line
TimeLine.LastIndexAsInitial := False;
// Save express report
(EaxAnalyzer As IMetabaseObject).Save();
End Sub;
See also: