IPrxChart.SerieAction

Syntax

SerieAction: String;

Description

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.

Comments

Depending on the file where the macro is implemented, the path to the macro in this property is specified in the different ways:

In the units and forms of the repository user macros should be implemented in the Global Scope of names.

Example

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:

IPrxChart