Home > Contents > Index >
SEARCHSTATE.FROMSTRING
Provides the ability for a searchstate object to be initialized from its string representation.
Syntax
<SEARCHSTATE.FROMSTRING NAME="objname" VALUE="stringval"/>Parameters
NAME(required)- Input and output parameter. As input, name of the output object to be reinitialized with the string passed in the
VALUEargument.
VALUE(required)- Input parameter. The string value to be used to initialize the searchstate object. The string must have been previously created by using a
SEARCHSTATE.TOSTRINGtag.
Error Numbers
The possible values of
errnoinclude:
Value Description -10004 A required parameter is missing. -13050 General error.Example
This code uses the variable searchstring generated from the tag SEARCHSTATE.TOSTRING and passed on the URL to this page to set a new searchstate "newSS" from the string representation. This code then sets this
SEARCHSTATEinto anASSETSET.SETSEARCHEDASSETStag to constrain theASSETSETto be used when searching with otherASSETSETtags. 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="newSS" /> <SEARCHSTATE.FROMSTRING NAME="newSS" VALUE="Variables.searchstring"/> <ASSETSET.SETSEARCHEDASSETS NAME="as" CONSTRAINT="newSS" ASSETTYPES="Products"/> <ASSETSET.GETATTRIBUTEVALUES NAME="as" ATTRIBUTE="productdesc" LISTVARNAME="resultlist"/> <LOOP LIST="resultlist"> <CSVAR NAME="resultlist.value"/><br/> </LOOP>See Also
SEARCHSTATE.CREATE
SEARCHSTATE.ADDSIMPLESTANDARDCONSTRAINT
SEARCHSTATE.TOSTRING
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.