ICustomDimAttributes.ImageIndex

Syntax

ImageIndex: ICustomDimAttribute;

Description

The ImageIndex property determines attribute with the Element Icon purpose.

Comments

This property is relevant if the repository is linked to a document containing  dictionary element icons. If the attribute is set in the ImageIndex property, the image will be displayed by the element name. Image index matches the value of this attribute.

Only integer dictionary attribute can be set as the ImageIndex property value.

Example

Executing the example requires a standard cube with the CUBE_1 identifier.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Cube: IStandardCube;

CustDim: ICustomDimension;

CustAttrs: ICustomDimAttributes;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("CUBE_1").Edit;

Cube := MObj As IStandardCube;

CustDim := Cube.FactDimension.Dimension As ICustomDimension;

CustAttrs := CustDim.Attributes;

CustAttrs.ImageIndex := CustAttrs.Id;

MObj.Save;

End Sub Main;

After executing the example the ID attribute is used to control displayed icons in fact dimension of the cube.

See also:

ICustomDimAttributes |Default Dictionary Element Icons