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

 

searchstate:addnestedconstraint

Nests a searchstate as a constraint within another searchstate.

Syntax

Parameters

name (required)
Input parameter. Name of the searchstate object to add.

bucket (required)
Input parameter. An invented name or a name defined by searchstate:findconstraint . Use this parameter to indicate which constraint you need when the same attribute is used in multiple contstraints. A bucket is an alias and functions similar to an inner join in SQL; when you have multiple tables that have columns of the same name, you must specify the table name to indicate which column you are requesting.

searchstate (required)
Input parameter. Name of the searchstate object to nest inside of the object specified by name.

Error Numbers

The possible values of errno include:

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

Example

This code creates an empty searchstate "mainSS" with a type of or. A constraint ss1 is added to this searchstate. A second searchstate "nestedSS" with a constraint ss2 on the same attribute is also created. It is generally safer to use unique bucket names in the constraints particularly when the same attribute is constrained. The second searchstate "nestedSS" is then nested into the first using the searchstate:addnestedconstraint tag. The main searchstate "mainSS" is then set into an assetset:setsearchedassets tag. The last tag uses this constrained assetset to search for matching assets and fetch a list of values for the constrained attributes for the returned assets:

See Also

searchstate:create
searchstate:addsimplestandardconstraint
searchstate:addsimplelikeconstraint
assetset:setsearchedassets
assetset:getattributevalues

   Home > Contents > Index >

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