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.
Add 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.
See also: