LastIndexAsInitial: Boolean;
The LastIndexAsInitial property determines whether on opening express report it moves to the last timeline 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 timeline step.
False. On opening express report it does not move to the last step of timeline.
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 the current repository
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;
// Going to the last step of timeline is not executed
TimeLine.LastIndexAsInitial := False;
// Get 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 timeline.
See also: