QueryContext Element: Teamcenter Saved Query Configuration
The QueryContext element defines the search queries available in the
Inspire or Altair HyperWorks products
interfaces for locating Teamcenter objects like parts, revisions, and models.
Purpose
The QueryContext element lists multiple saved queries, each defining
how specific Teamcenter object types can be searched in the application
interface.
These queries populate drop-downs and search filters in the GUI which you can use to search using defined criteria.
Configuration Instructions
When adding or modifying a
<Query> entry, the following items
must be defined:name- A Teamcenter saved query name.
type- The Teamcenter object type being queried, such as
ItemRevisionorCAEModelRevision. typeKey- A key used for localization. Generally, this is left unchanged.
keyword- A unique identifier used internally. This must be distinct across all queries.
displayName- A localized string shown in UI search panels.
<SearchCriteria>- Defines which properties can be searched.
Example Configuration
<QueryContext>
<Query name="Item Revision..." type="ItemRevision" typeKey="tc.query.Item.Type" keyword="ItemRevision" displayName="Item Revisions">
<SearchCriteria>
<Value>tc.query.Item.Id</Value>
<Value>tc.query.Item.Name</Value>
</SearchCriteria>
</Query>
<Query name="Item Revision..." type="CAEModelRevision" typeKey="tc.query.Item.Type" keyword="CAEModelRevision" displayName="CAE Model Revisions">
<SearchCriteria>
<Value>tc.query.Item.Id</Value>
<Value>tc.query.Item.Name</Value>
</SearchCriteria>
</Query>
</QueryContext>