Show contents 

Report > Report Assembly Interfaces > IPrxControl > IPrxControl.ControlledBy

IPrxControl.ControlledBy

Syntax

ControlledBy: IMetabaseObjectParam;

Description

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

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier. Controls and parameters are added in the report.

Add links to the Metabase, Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    Contrls: IPrxControls;
    Contrl: IPrxControl;
Begin
    // Get repository
    Mb := MetabaseClass.Active;
    // Get report
    Report := MB.ItemById("REPORT").Edit As IPrxReport;
    // Get collection of report controls
    Contrls := Report.Controls;
    // Get control
    Contrl := Contrls.Item(0);
    // Set controlling parameter
    Contrl.ControlledBy := Report.MetabaseObject.Params.Item(0);
    // Save report
    (Report As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the first parameter is set as a controlling one for the first control.

See also:

IPrxControl