HyperWorks Desktop

ExecQuery

ExecQuery

Previous topic Next topic No expanding text in this topic  

ExecQuery

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME


ExecQuery

 

SYNTAX


<generic data manager handle> ExecQuery <query string> <content interface list>

 

 

TYPE/CLASS


Query

 

 

DESCRIPTION


Query the library manager for content based full text search. Searches all the metadata and the contents of the files in the library.

 

generic data manager handle

Generic data manager handle. See DMDirector_OpenWorkspace.

 

query string

String to query in the library

 

content interface list

Content interface list handle

 

Note:The result of the query will be passed to the content interface handle. The size of the content interface list will give the size of the returned list. Refer to the example below. To check if the query was successful or failed use the command hwLMStatus_GetMessage.

 

EXAMPLES


set gdm [DMDirector_OpenWorkspace $director $ws $repoh 0]

set qryhandle [$gdm GetQuery]

set stringtosearch "MS6000"

set clist [ContentInterfaceList]

set status [$gdm ExecQuery $stringtosearch $clist]

set cilistsize [ContentInterfaceList_size $clist]

 

ERRORS


 

SEE ALSO


DMDirector_OpenWorkspace

ContentInterfaceList

ContentInterfaceList_size

hwLMStatus_GetMessage