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
VALUE
argument.
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.TOSTRING
tag.
Error Numbers
The possible values of
errno
include:
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
SEARCHSTATE
into anASSETSET.SETSEARCHEDASSETS
tag to constrain theASSETSET
to be used when searching with otherASSETSET
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="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, 2016, Oracle and/or its affiliates. All rights reserved.