Attribute: IDimAttribute;
The Attribute property returns properties of the attribute by which the dictionary is sorted.
Sub Main;
Var
MB: IMetabase;
DimModel: IDimensionModel;
DimAttrs: IDimAttributes;
DimOrd: IDimOrders;
Order: IDimOrder;
s: String;
Begin
MB := MetabaseClass.Active;
DimModel := MB.ItemById("D_TO").Bind As IDimensionModel;
DimAttrs := DimModel.Attributes;
DimOrd := DimAttrs.Orders;
Order := DimOrd.Item(0);
s := Order.Attribute.Id;
End Sub Main;
After executing the example the "s" variable contains identifier of the first attribute by which the dictionary is sorted.
See also: