setAttributeWithCreate()

Sets an object's attribute, creating the object's attributes regardless of the intervening objects and containers.

Syntax

public void setAttributeWithCreate(String attrName, Object value);

Parameters

attrName
Is the name of the attribute to set.
value
Is the attribute value.

Return values

None.

Exceptions

CxObjectNoSuchAttributeException
Thrown if the position or name specified is not valid for the definition of this business object.
CxObjectInvalidAttrException
Thrown if the value passed in is not a valid value for the particular attribute.
BusObjSpecNameNotFoundException
Thrown if the business object definition is not found in the database.

Notes

The setAttributeWithCreate() method forcibly sets an object's attribute; that is, it creates the object's attributes regardless of the intervening objects and containers. The supported grammar is: attr1.attr2...attrThatsAContainer[index]...attrN. For example, Address[5].AddressObjId refers to the object identifier of the fifth element in the business object array referenced by the Address attribute.

Copyright IBM Corp. 1997, 2004