AttrInsert
Description:
Creates a new element attribute for a dimension. It can create a string, numeric, or alias attribute.
Syntax:
AttrInsert(DimName, PrevAttr, AttrNameToInsert, Type 'N'/'S'/'A');
Arguments:
DimName - Dimension name in which you want to create an element
PrevAttr - Attribute which precedes the attribute you're creating
AttrNameToInsert - Name you want to assign to newly created attribute
Type - 'N' for numeric attribute, 'A' for alias, 'S' for string
Return Type:
Nothing
Example:
AttrInsert('Products','CODE','ProductTYPE','S');
This will create a new string attribute ProductTYPE in Products dimension. Attribute will be created after CODE attribute.