Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 - Asset Console Creating an Access Definition File Guide


[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.

Organization of this page

Syntax

[UPDATE]
  object-class-name
  [DATA]
    assignment-statement-for-property

Values

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.

Legend:

—: Not applicable

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]