Home > Contents > Index >
Template Tag 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 XML Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.