iQuery_AddCondition
Add a condition to be queried using ExecQuery API.
Syntax
iQuery_AddCondition <query handle> <condition handle>
Type/Class
iQuery
Description
To add a condition to be queried using ExecQuery API.
- query handle
- Query handle
- condition handle
- Condition handle
Examples
set qryhandle [$gdm GetQuery]
# Add condition to search for metadata
set condition [Condition_CreateCondition $mdnameCAD $value $operator]
set condition1 [Condition_CreateCondition $mdnamehm $value $operator]
iQuery_AddCondition $qryhandle $condition
iQuery_AddCondition $qryhandle $condition1
set clist [ContentInterfaceList]
set status [$gdm ExecQuery $qryhandle $clist]