This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision |
| pr_methods:setattributevalue [2023/04/04 06:15] – removed - external edit (Unknown date) 127.0.0.1 | pr_methods:setattributevalue [2023/05/03 04:56] (current) – sean |
|---|
| | {{tag>Index Programmers_Reference Methods IEntity_Interface SetAttributeValue}} |
| | |
| | ====setAttributeValue (String, Object)==== |
| | <code java>public void setAttributeValue (String attributeName, Object value) |
| | throws InvalidParameterException</code> |
| | |
| | This method sets the value of the specified attribute. |
| | |
| | <callout type="primary" title="note" icon="true">The attribute must not be a reference. Use the ''[[pr_methods:setreferences|setReferences]]'' method to set references.</callout> |
| | |
| | ===Parameters=== |
| | |''attributeName''|the name of the attribute of the business object or notification the value of which is set| |
| | |''value''|the value of the attribute to set as Object. The type of the object corresponds to the type of the attribute. See [[docs:3500:appendix_a|Appendix A]] that provides the mapping between attribute types and Java types.| |
| | |
| | ===Throws=== |
| | |''InvalidParameterException''|if the specified attribute name does not exist in the business object or notification| |
| |