Home > Contents > Index >  
Template Tags TOC   |    Alpha TOC   |    Tag Family TOC   |    Purpose TOC   |    Annotated TOC   |    Index 

 

searchstate:tostring

Converts a searchstate object into its string representation that is suitable for various uses, such as saving in a session variable or packing into a URL.

Syntax

Parameters

name (required)
Input parameter. Name of the object.

varname (required)
Input and output parameter. As input, name of the string that is assigned the string representation on output.

Error Numbers

The possible values of errno include:

Value
Description
-10004
A required parameter is missing.
-13050
General error.

Example

This code serializes a searchstate "origSS" containing a simple constraint and creates a variable which contains the string representation.

The following code which would probably be in a page called by the above code then uses the variable searchstring passed on the URL to set a new searchstate "newSS" from the string representation. This code then sets this searchstate into an assetset:setsearchedassets tag to constrain the assetset 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:

See Also

searchstate:create
searchstate:addsimplestandardconstraint
searchstate:fromstring

   Home > Contents > Index >

Oracle JSP Tag Reference
Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved.