Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
searchstate:duplicate
Duplicates a searchstate object.
Syntax
<searchstate:duplicate name="ssname
" varname="varname
"/>Parameters
name
(required)- Input parameter. Name of the searchstate object.
varname
(required)- Input and output parameter. As input, name of the new searchstate object to hold the duplicate on output.
Error Numbers
The possible values of
errno
include:
Value Description -10004 A required parameter is missing. -13050 General error.Example
This code creates a
searchstate
"origSS" containing a simple constraint and then duplicates the searchstate to create "newSS". It then sets the duplicatesearchstate
into anassetset:setsearchedassets
tag to constrain theassetset
to be used when searching with other assetset tags. The last tag uses this constrained assetset to search for matching assets and fetch a list of values for a different attribute of the returned assets:<searchstate:create name="origSS" /> <searchstate:addsimplestandardconstraint name="origSS" attribute="productdesc" value="LU50/90/27"/> <searchstate:duplicate name="origSS" varname="newSS"/> <assetset:setsearchedassets name="as" constraint="newSS" assettypes="Products"/> <assetset:getattributevalues name="as" attribute="cat2" listvarname="resultlist"/> <ics:listloop listname="resultlist"> <ics:listget listname="resultlist" fieldname="value"/><br/> </ics:listloop>See Also
searchstate:create
searchstate:addsimplestandardconstraint
assetset:setsearchedassets
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.