IDimSelectionSchema.ProcessInplace

Syntax

ProcessInplace(

Selection: IDimSelection;

[Group: IDimElementGroup = Null]);

Parameters

Selection - the selection of dictionary elements, for which the selection schema is to be used.

Group - optional parameter that determines group of elements from Selection, within which selection schema is used. By default selection schema is used for all the elements within Selection.

Description

The ProcessInplace method uses the selection schema for the selection elements passed in the Selection parameter.

Example

Executing the example requires a form with a button named Button1 on it, the DimensionTree component named DimensionTree1 and the UiDimension component named UiDimension1, used as data source for DimensionTree1. The dictionary loaded to UiDimension1 contains one selection schema and one element group.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

MDesc: IMetabaseObject;

Child: IMetabaseObjectDescriptors;

SelectionSchema: IDimSelectionSchema;

ElemGroup: IDimElementGroup;

Begin

MDesc := (UiDimension1.Dimension As IMetabaseObject);

Child := MDesc.Children;

If Child.Count <> 0 Then

SelectionSchema := Child.Item(0).Bind As IDimSelectionSchema;

ElemGroup := Child.Item(1).Bind As IDimElementGroup;

SelectionSchema.ProcessInplace(DimensionTree1.Selection, ElemGroup);

End If;

End Sub Button1OnClick;

After executing the example, on clicking the button, the selection corresponding to the first schema of dictionary selection for the elements of the dictionary from the DimensionTree1 component within the first group of dictionary elements is set.

See also:

IDimSelectionSchema