IEaxObject.Active

Syntax

Active: Boolean;

Description

The Active property determines active object of the express report.

Comments

Active object is displayed in the express method in current moment. The active object is also displayed at the express report of object navigator close. The Active property is required to set to True to make the object active. At the same time the rest of objects of that property are set to False.

The Visible property is automatically set to True for the active object.

Fore Example

Executing this example requires that the repository contains an express report with the EXPRESS_REPORT identifier. Add links to the Metabase, Express system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Expr: IEaxAnalyzer;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById(
"EXPRESS_REPORT").Edit;
    Expr := MObj 
As IEaxAnalyzer;
    Expr.Chart.Active := 
True;
    MObj.Save;
End Sub UserProc;

Active object changes when executing an express report example. The chart is shown when express report opens.

Fore.NET Example

Executing this example requires that the repository contains an express report with the EXPRESS_REPORT identifier. Selected procedure is an entry point for the .NET assembly.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Expr: IEaxAnalyzer;
Begin
    MB := Params.Metabase;
    MObj := MB.ItemById["EXPRESS_REPORT"].Edit();
    Expr := MObj As IEaxAnalyzer;
    Expr.Chart.Active := True;
    MObj.Save();
End Sub;

Active object changes when executing an express report example. The chart is shown when express report opens.

See also:

IEaxObject