Set attribute value

Syntax

	$object.set(`$attribute`, value)

Description

Updates the value of the attribute of the object to value.

Parameters

Name Type Description Mandatory Default
object Business object An object whose attribute value is to be set. yes
attribute String An attribute literal defining the attribute to be set. yes
value Number/string/boolean/business object/set The new value of the attribute. yes

Examples

	{
   a = new(`my.module:MyClass`);
   $a.set(`my.module:MyClass#name`, "newName");
}

Output: Creates a new object and changes the value of the attribute name to "newName".