ControlledBy: 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.
See also: