Home > Contents > Index >
ASSET.REMOVECHILDREN
Designates which entries to remove from the AssetRelationTree.
Syntax
<ASSET.REMOVECHILDREN NAME="asset instance object" TYPE="asset type" CHILDID="child asset ID" CODE="association name" />Parameters
NAME (required)
- Name of the asset instance object. If only name is specified, all children are deleted.
TYPE (optional)
- Asset type of children to remove. If this parameter is omitted, children of all types are removed.
CHILDID (optional)
- ID of a child asset to remove.
CODE (optional)
- Association name of child asset to remove. For unnamed associations, use code="-"
Description
This tag supports all combinations of the optional parameters (code, type, childid). The AssetRelationTree is updated during an
ASSET.SAVE
operation.Error Numbers
The possible values of
errno
include:
Value Description -10004 A required parameter is missing. -10005 The requested object is not in the object pool (is not loaded into memory).Example
The following code removes all children from the named association of the current asset:
<ASSET.REMOVECHILDREN NAME="currentAsset" CODE="SampleNameAssociation" /> <ASSET.SAVE NAME="currentAsset" />The following code removes all children of a specific asset type from the unnamed association of the current asset:
<ASSET.REMOVECHILDREN NAME="currentAsset" CODE="-" TYPE="myAssetType" /> <ASSET.SAVE NAME="currentAsset" />The following code removes a specific child of a specific asset type from the current asset:
<ASSET.REMOVECHILDREN NAME="currentAsset" TYPE="myAssetType" CHILDID="123456789101" /> <ASSET.SAVE NAME="currentAsset" />
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.