IDimLevelSelectionPrimitive.Included

Syntax

Included(Level: IDimLevel): Boolean;

Description

The Included property determines whether the primitive selects or deselects elements of the dictionary level passed by the Level parameter.

Example

Sub Main;

Var

MB: IMetabase;

Mobj: IMetabaseObject;

ObjDesc: IMetabaseObjectDescriptor;

DimSelSchema: IDimSelectionSchema;

SchemaPrimit: IDimSelectionSchemaPrimitive;

Begin

MB:=MetabaseClass.Active;

ObjDesc:=MB.ItemById("TAB_DIM");

If ObjDesc.Children.Count<>0 Then

If ObjDesc.Children.Item(0).ClassId=MetabaseObjectClass.KE_CLASS_DIMSELECTIONSCHEMA Then

Mobj:=ObjDesc.Children.Item(0).Edit;

DimSelSchema:=Mobj As IDimSelectionSchema;

DimSelSchema.Clear;

SchemaPrimit:=DimSelSchema.Add(SelectionPrimitiveType.Level);

(SchemaPrimit As IDimLevelSelectionPrimitive).Included(DimSelSchema.Dimension.Levels.Item(0)):=True;

Mobj.Save;

End If;

End If;

End Sub Main;

After executing the example a primitive selecting level elements is added to dictionary selection schema. Elements of the first dictionary level are to be selected on creating selection schema. Dictionary identifier: TAB_DIM.

See also:

IDimLevelSelectionPrimitive