Set a business object's attribute to a value of a specified data type.
Syntax
void setWithCreate(String attributeName, BusObj busObj) void setWithCreate(String attributeName, BusObjArray busObjArray) void setWithCreate(String attributeName, Object value)
Parameters
Exceptions
CollaborationException--The setWithCreate() method can set the following exception type for this exception:
Notes
If the object provided is a BusObj and the target attribute contains multi-cardinality child business object, the BusObj is appended to the BusObjArray as its last element. If the target attribute contains a BusObj, however, this business object replaces the previous value.
Examples
The following example sets an attribute called ChildAttrAttr to the value 5. The attribute is found in a business object contained in myBO's attribute, ChildAttr. If the childAttr business object does not exist at the time of the call, this method call creates it.
myBO.setWithCreate("childAttr.childAttrAttr", "5");