Home > Contents > Index >
asset:removesite
Removes a site affiliation from a loaded asset.
Syntax
<asset:removesite name="asset instance object
" pubid="siteId
" </asset:removesite>Parameters
name (required)
- Name of the asset instance object.
pubid (required)
- Input. Specifies the ID of the publication to remove.
Description
This tag removes a site affiliation from an asset instance. The updated site information will be written upon asset:save. The asset instance must have been loaded using the editable parameter of asset:load set to true.
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 intomemory). -12070 Asset was not fully loaded. Tag requires asset:load with editable flag to fully load asset.Example
This code loads an article and removes all site affiliations and adds one from the Session Variable, pubid:
<asset:load name="anArticle" type="Article" objectid='<%=ics.GetVar("id")%>' editable="true" > <asset:sites name="anArticle" list="sites" > <ics:listloop listname="sites" ><ics:listget listname="sites" fieldname="id" output="pubid" /> <asset:removesite name="anArticle" pubid='<%=ics.GetVar("pubid")%>' /></ics:listloop> <asset:addsite name="anArticle" pubid='<%=ics.GetSSVar("pubid")%>' />See Also
asset:load
asset:gather
asset:removesite
asset:save
asset:share
asset:sites
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.