IPrxControl.ControlledBy

Fore Syntax

ControlledBy: IMetabaseObjectParam;

Fore.NET Syntax

ControlledBy: Prognoz.Platform.Interop.Report.IMetabaseObjectParam;

Description

The ControlledBy property determines a controlling parameter of the regular report.

Fore Example

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    Contrls: IPrxControls;
    Contrl: IPrxControl;
    MObjParam: IMetabaseObjectParam;
    s: String;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById(
"Report").Bind As IPrxReport;
    Contrls := Report.Controls;
    Contrl := Contrls.Item(
0);
    MObjParam := Contrl.ControlledBy;
    s := MObjParam.Name;
End Sub UserProc;

After executing the example the "s" variable contains name of the controlling parameter of the first control of the regular report. The identifier of the regular report - Report.

Fore.NET Example

Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Metabase;

Public Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Report: IPrxReport;
    Contrls: IPrxControls;
    Contrl: IPrxControl;
    MObjParam: IMetabaseObjectParam;
    s: String;
Begin
    MB := Params.Metabase;
    Report := MB.ItemById["Report"].Bind() As  IPrxReport;
    Contrls := Report.Controls;
    Contrl := Contrls.Item[0];
    MObjParam := Contrl.ControlledBy;
    s := MObjParam.Name;
End Sub;

After executing the example the "s" variable contains name of the controlling parameter of the first control of the regular report. The identifier of the regular report - Report.

See also:

IPrxControl