SerieAction: String;
The SerieAction property determines a macro for handling chart series events.
NOTE. The object of the development environment containing implementation of the macro is to be connected to the regular report.
Depending on the file where the macro is implemented, the path to the macro in this property is specified in the different ways:
The macro is implemented in a unit or form of the repository: <Unit or form ID>.<Macro ID>.
The macro is implemented in an object of the repository assembly: <Assembly ID>.<Macro ID>.
The macro is implemented in an object of the .NET assembly of the repository: <.NET assembly names range>.<Class name>.<Macro name>.
In the units and forms of the repository user macros should be implemented in the Global Scope of names.
In repository .NET units and .NET forms, user macros must be implemented within a class. A macro is to be a static procedure or function.
Sub UserProc;
Var
MB: IMetabase;
Report: IPrxReport;
Mod: IMetabaseObjectDescriptor;
Chart: IPrxChart;
Begin
Mb := MetabaseClass.Active;
Report := MB.ItemById("Report").Edit As IPrxReport;
Mod := MB.ItemById("Module");
Report.Assemblies.Add(Mod);
Chart := (Report.ActiveSheet As IPrxTable).TabSheet.Objects.Item(0).Extension As IPrxChart;
Chart.SerieAction := "Module.SeriesClick";
(Report As IMetabaseObject).Save;
End Sub UserProc;
After executing the example an event handler from the unit with the Module identifier is set for the chart.
See also: