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

 

searchstate:create

Builds an empty searchstate object.

Syntax

Parameters

name (required)
Input and output parameter. As input, name of the searchstate object to create on output.

op (optional)
Input parameter. Searchstate type, either and or or. The default is and.

Example

This code creates an empty searchstate with a default type of and. Two constraints ss1 and ss2 are then added to this searchstate.. Any assets with matching values for both constraint ss1 and ss2 will be returned. If no assets match both constraints simultaneously nothing is returned 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 one of the constrained attributes for the returned assets:

This code creates a searchstate with two clauses that are joined by an or operation. Assets that match either Germicidal Lamps or Watt% are returned.

See Also

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

   Home > Contents > Index >

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