ChoreAttrInsert
ChoreAttrInsert creates a new attribute for chores on your TM1® server. The function can create a string, numeric, or alias attribute.
This function is valid in TM1 TurboIntegrator processes only.
Note: If you update an existing chore attribute, you must first delete the existing attribute using
the function ChoreAttrDelete. You can then use ChoreAttrInsert to recreate the attribute with your
desired changes. If you attempt to update an existing attribute without first deleting it, the
insert fails without a warning or error. The existing attribute remains unchanged; it is neither
updated nor overwritten.
Syntax
ChoreAttrInsert( PrevAttrName, NewAttrName, AttrType);
Argument |
Description |
---|---|
PrevAttrName |
The attribute that precedes the attribute you are creating. If there is no previous attribute or you want the new attribute to be the first attribute for chores, leave this argument empty. |
NewAttrName |
The name you want to assign to the new chore attribute. |
AttrType |
The type of attribute. There are three possible values for the AttrType argument:
|
Example
This example creates the Description string attribute for chores. This attribute is inserted after the Owner attribute.
ChoreAttrInsert('Owner', 'Description', 'S');