Sets a business object's attribute to a specified value of a particular
data type.
- Business object
- The current business object (a BusObj object).
- Attribute
- A String that specifies the name of the attribute you want to set.
- Value
- The value for the attribute. Must be of the appropriate type
(boolean, double, float, int, long, Object, String, or BusObj) for the
attribute.
The Set Value function block can set the following exception type for a
CollaborationException exception:
- AttributeException--Set if an attribute access problem
occurs.
The Set Value function block sets an attribute value in the current
business object. It sets an object reference when it assigns the value
to the attribute. It does not clone the attribute value from
the source business object. Therefore, any changes to value in the
source business object are also made to the attribute in the business object
that calls the Set Value function block.
The Set Value function block provides the following forms:
- The first form sets a value of the type specified by the function
block's Value input. Use this form to set attributes with specific
basic or InterChange Server-defined data types.
- The second form sets the value of an attribute of any
type. You can send in any data type as the attribute value because the
Value input is of type Object. For example, to set an
attribute that is of BusObj or
LongText object type, use the BusObj or LongText
object for the Value input.
This function block is based on the BusObj.set() method. For
more information, see set().
