[UPDATE] (update object class)
[UPDATE] finds and updates an object class. If multiple object classes are found, only the object class found first is updated. If the specified object class is not found, no processing is performed.
Values
-
object-class-name
Codes the name of the object class to be updated.
-
assignment-statement-for-property
Specifies all key properties to be updated as assignment statements.
Status
The following table lists and describes the possible statuses:
Status |
Description |
---|---|
NORMAL |
Normal end. |
NODATA |
— |
ERROR |
The data of the object class to be updated does not exist. |
MULTI |
Updating has already been performed by another control. |
Example
The following example updates the asset status of asset ID 10000 to 301:
[UPDATE] AssetInfo [DATA] AssetInfo.AssetID = '10000' AssetInfo.AssetStatus = '301' [SET_VALUE] STATUS = $GETSTATUS() [IF] STATUS != NORMAL [THEN] [SET_VALUE] MSG = 'UPDATE (' + STATUS + ')' $ECHO(MSG) [IF_END] |