Inserts the specified
attribute in the business
object definition's attribute list.
Syntax
public void insertAttribute(BusObjAttr attrObj);
public void insertAttribute(BusObjAttr attrObj, int pos);
Parameters
- attrObj
- Is the attribute object be added to the attribute list of the
business object definition.
- pos
- Is the ordinal position at which the attribute is to be added
to the attribute list.
Return values
None.
Exceptions
- BusObjInvalidAttrException
- Thrown if the attribute that an attribute object describes is
invalid.
Notes
The insertAttribute() method provides the following
forms:
- The first form specifies the attribute to add by its attribute
name. When you use this form, insertAttribute() inserts
the specified attribute at the position immediately above
the ObjectEventId attribute in the business object's
attribute list.
- The second form specifies the attribute to add and the ordinal
position within the attribute list at which to add this attribute.
When you specify an ordinal position, insertAttribute()
inserts the specified attribute at the specified pos
position in the business object definition's attribute list, and
moves down by one position every attribute that follows in the
list.
- Important:
- If you specify an ordinal position, make sure that the
specified position is above the ObjectEventId
attribute.
See also
removeAttribute()
