Home > Contents > 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="ss" 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"/> <LOOP LIST="resultlist"> <CSVAR NAME="resultlist.value"/><br/> </LOOP>See Also
SEARCHSTATE.CREATE
SEARCHSTATE.ADDSIMPLESTANDARDCONSTRAINT
ASSETSET.SETSEARCHEDASSETS
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.