IPrxControl.Selection

Syntax

Selection: IDimSelection;

Description

The Selection property returns control selection.

Comments

The property is relevant for controls of the DimCombo type.

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier. The report contains at least one control.

Add links to the Dimensions, Metabase, Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    Contrls: IPrxControls;
    Contrl: IPrxControl;
    Selection: IDimSelection;
Begin
    
// Get repository
    Mb := MetabaseClass.Active;
    
// Get report
    Report := MB.ItemById("REPORT").Bind As IPrxReport;
    
// Get collection of report controls
    Contrls := Report.Controls;
    
// Get control
    Contrl := Contrls.Item(0);
    
// Get control selection
    Selection := Contrl.Selection;
    Debug.WriteLine(Selection.ToString);
End Sub UserProc;

After executing the example the console window displays elements included in control selection.

See also:

IPrxControl