wm.tn.doc:setAttribute
Updates, deletes, or adds an attribute value for a document in the BizDocEnvelope in memory.
This service supports attributes of the following data types: String, StringList, Number, NumberList, DateTime, and DateTimeList.
Input Parameters
bizdoc | Object The document for which you want to update, delete, or add an attribute value. The document must be an instance of com.wm.app.tn.doc.BizDocEnvelope. |
attribId | String (optional) Internal ID of the attribute to be set. |
attribName | String (optional) Name of the attribute to be set. |
attribValue | String (optional) New value for the attribute. If you supply a null value, the service deletes any existing value for the attribute. If the attribute is a DATETIME, use the format: yyyy-mm-dd hh:mm:ss. |
Output Parameters
None.
Usage Notes
This service does
not update the value of the attribute of the BizDocEnvelope saved in the
Trading Networks database. To update the database with the values of the attributes in a BizDocEnvelope, use
wm.tn.doc:updateAttributes.