ImageIndex: IRdsAttribute;
The ImageIndex property determines an attribute that can be used as elements icon.
This attribute determines icon index displayed for a dictionary element. It is necessary to use if an object that contains dimension elements icons is set for repository. If this attribute is set, an image, which index corresponds to this attribute value, is displayed near element name. This property is relevant only for integer attributes.
Executing the example requires the MDM repository named MDM that contains an MDM dictionary with the Dict_1 identifier.
Sub UserProc;
Var
MB: IMetabase;
Dict : IRdsDictionary;
Att : IRdsAttributes;
Begin
MB := MetabaseClass.Active;
Dict := MB.ItemByIdNamespace("Dict_1", MB.ItemById("RDS").Key).Edit As IRdsDictionary;
Att := Dict.Attributes;
Att.ImageIndex := Att.FindById("Image");
(Dict As IMetabaseObject).Save
End Sub UserProc;
After executing the example, an attribute with the Image identifier is used as elements icon.
See also: