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

 

searchstate:addhasancestorconstraint

Adds an ancestor constraint into an existing searchstate object.

Syntax

Parameters

name (required)
Input parameter. Name of an object representing a searchstate.

assetid (required)
Input parameter. Asset id of the ancestor asset whose descendant asset is to be searched.

assettype (required)
Input parameter. Asset type of ancestor asset.

bucket (required)
Input parameter. Bucket name. This parameter needs to be unique across searchstates.

immediateonly (optional)
Input parameter. Boolean value to indicate immediate ancestors or all ancestors. When the value is false, searchstate is set to search for all the ancestors. When the value is true, (default value) searchstate is set to search for immediate ancestors only.

Description

The searchstate object referred to by name is updated to include the new constraint specified by this tag. It adds a search constraint to find assets that have a particular asset of type assettype and id assetid as its ancestor.

Example

This code creates an empty searchstate and adds an ancestor constraint. Any assets that have 'FSII Superior Systems Inc.' as their ancestor asset will be returned as matches for this constraint. This code then sets this searchstate into an assetset:setsearchedassets tag to constrain the assetset to be used when searching with other assetset tags.

See Also

searchstate:addhasdescendantconstraint
searchstate:create
assetset:setsearchedassets
assetset:getattributevalues
ListObjects

   Home > Contents > Index >

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