makeNewAttrObject()

Creates a new business object of the correct type for the attribute with the specified name or at the specified position in the attribute list. This method is typically used with attributes that contain child objects.

Syntax

void * makeNewAttrObject(char * name);
 void * makeNewAttrObject(int position);
 

Parameters

name [in]
Is the name of an attribute.
pos ition[in]
Is an integer that specifies the ordinal position of an attribute in the business object's attribute list.

Return values

A pointer to a newly created instance of the BusinessObject class.

Notes

This method should only be used for attributes with an attribute type of OBJECT. The method creates a new business object of the proper type for an attribute but does not change the existing attribute. To set the value of the new business object, use setAttrValue().

Copyright IBM Corp. 1997, 2004