ElementAttrInsert

ElementAttrInsert creates a new element attribute for a dimension. The function can create a string, numeric, or alias attribute.

This function is valid in TM1® TurboIntegrator processes only.

Syntax

ElementAttrInsert(DimName, HierName, PrevAttr, AttrName, Type);

Argument

Description

DimName

The dimension for which you want to create an element attribute.

HierName

The name of the hierarchy within the dimension.

PrevAttr

The attribute that precedes the attribute you are creating.

AttrName

The name you want to assign to the new attribute.

Type

The type of attribute. There are three possible values for the Type argument:

  • N - Creates a numeric attribute.
  • S - Creates a string attribute.
  • A - Creates an alias attribute.

Example

This example creates the InteriorColor string attribute in the Automobile hierarchy in the Model dimension. This attribute is inserted after the Transmission attribute.

ElementAttrInsert('Model', 'Automobile', 'Transmission', 'InteriorColor','S');