[APPEND] (Create object class)
[APPEND] creates a new object class.
Values
-
object-class-name
Codes the name of the new class object to be created.
-
assignment-statements
Codes the values to be assigned to the properties.
Always specify the properties and key properties that must be specified when registering a new object class. Note, however, that CreationClassName can be omitted.
For details about the properties that must be specified when a new object class is registered, see the JP1/IT Desktop Management 2 - Asset Console Configuration and Administration Guide.
Status
The following table lists and describes the possible statuses:
Status |
Description |
---|---|
NORMAL |
Normal end. |
NODATA |
— |
ERROR |
The key has already been registered. |
MULTI |
— |
- Legend:
-
—: Not applicable
Example
The following example creates a new object class named AssetInfo:
[APPEND] AssetInfo [DATA] AssetInfo.AssetID = '10000' AssetInfo.AssetNo = 'R11111' AssetInfo.AssetWorkKind = '001' AssetInfo.AssetStatus = '002' AssetInfo.AssetKind = '001' AssetInfo.AssetBranchNo = '0' [SET_VALUE] STATUS = $GETSTATUS() [IF] (STATUS != NORMAL) [THEN] [SET_VALUE] MSG = 'APPEND (' + STATUS + ')' $ECHO(MSG) [IF_END] |