ControlledBy: IMetabaseObjectParam;
ControlledBy: Prognoz.Platform.Interop.Report.IMetabaseObjectParam;
The ControlledBy property determines a controlling parameter of the regular report.
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.
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: