Siebel Business Process Framework: Task UI Guide > Guidelines and Techniques for Developing a Task UI > Techniques to Improve the Usability of a Task UI >

Refine Query Technique


It is recommended that you define a query for a task UI, typically as a search specification in a task view step. However, sometimes it is not possible to know at design time the exact search specification that the user requires at run time, and Siebel CRM might display a large number of records when the search specification for the task UI runs. You can configure a task UI that uses query-by-example to allow the user to refine this query.

Siebel CRM uses the following logic in the refine query technique:

  1. The task view step includes a broad search specification.
  2. The task controller sets this search specification as an anonymous search specification on the business component, using the & (ampersand) prefix to substitute task properties that the search specification references.
  3. The task view includes a Refine Query button that calls the Refine Query method on the business component. This method uses the search specification set in Step 1 but allows the user to refine the search criteria.
  4. The user refines the search specification, clicks Execute Query in the task view, and then Siebel CRM displays the task UI only in query mode.
  5. Siebel CRM uses the refined search specification set in Step 3 to run the query.

    If Siebel CRM does not display the fields that the search specification in Step 1 references, then the user cannot remove this query even if the user is required to remove it.

Example of the Refine Query Technique

The predefined Create Order task UI includes a task view step that allows the user to choose a number of products. To search products, the user can use the customer zip code, but this query can return hundreds of products. The Create Order task UI allows the user to use the name to refine the query. For example:

[Name] LIKE '*300 minutes*'

This task UI does not display the zip code, so the user can only narrow the original search specification and cannot broaden it. The predefined Create Order task UI resides in the Siebel Communications application.

Siebel Business Process Framework: Task UI Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.