Home > Contents > Index >
ASSET.SITES
Creates a list object of sites (formerly known as publications) to which the asset is shared. The list contains the columns of the Publication table.
Syntax
<ASSET.SITES NAME="asset name" [TYPE="assettype"] [OBJECTID="assetid"] LIST="list name" [PUBID="publication ID"] />Parameters
NAME (required unless type and objectid supplied))
- Name of previously loaded asset.
TYPE (required if name is not used)
- Input. Asset type of the asset whose sites you want to list. Either
type+objectid
or name must be supplied to identify the asset.
OBJECTID (required if name is not used)
- Input. Asset id of the asset whose sites you want to list. Either
type+objectid
or name must be supplied to identify the asset.
LIST (required)
- Name of list that is created.
PUBID (optional)
- Publication ID. Use when you want to know if an asset is in a particular site. Errno is set to -101 if the asset is not in that site.
Error Numbers
The possible values of
errno
include:
Value Description -101 The asset is not in the site. -10004 A required parameter is missing. -10005 The requested object is not in the object pool (is not loaded into memory).Example
This example shows all the sites with which this asset is shared.
<ASSET.LOAD NAME="myArticle" OBJECTID="123456789012"/> <ASSET.SITES NAME="myArticle" LIST="sites"/> <LOOP LIST="sites"> <STRING.STREAM LIST="sites" COLUMN="description"/><br/> </LOOP>This example shows all the sites with which this asset is shared without loading the asset.
<ASSET.SITES TYPE="Article" OBJECTID="123456789012" LIST="sites"/> <LOOP LIST="sites"> <STRING.STREAM LIST="sites" COLUMN="description"/><br/> </LOOP>This example loops through the list of publications for which the user is enabled and determines whether an asset is in a particular site.
<LOOP LIST="pubsICanSee"> <ASSET.SITES NAME="theAsset" LIST="isinPub" PUBID="pubsICanSee.id"/> <IF COND="IsError.Variables.errno=false"> <THEN> <STRING.STREAM LIST="isinPub" COLUMN="description"/><br/> </THEN> </IF> </LOOP>See Also
ASSET.ADDSITE
ASSET.LOAD
ASSET.REMOVESITE
ASSET.SHARE
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.