Designer 10.5 | webMethods BPM Task Development Help | Working with Custom Task Inboxes | Example Modifying the Default Search Fields and Results
 
Example Modifying the Default Search Fields and Results
This example applies to task types that use a standard search provider. If you want to search for indexed business data fields, see Example Adding an Indexed Business Data Search Field.
For this example, assume that you are working with an order approval task, and the business data for that task includes an input field that specifies the order amount. The value of this content provider element is derived from an Integration Server document that serves as the task's input.
In this example, you want to enable the user to search for tasks by order amount, and also display an order amount column in the task inbox results.
*To modify the default search field and results
1. In the Solutions view, open the task in the task editor by double-clicking the task name.
2. On the Overview tab, expand the User Interfaces area if it is not already visible.
3. Click the default view of the Task Inbox Search Bar portlet.
4. Add a custom business field (in this case, the order amount field) to the portlet view as described in Creating Custom Search Fields from Task Business Data.
5. When you specify the custom business data field you want to work with, you can also specify that you want a column to be added to the search results table by selecting the Add Column displaying this field to Inbox Search Results table check box.
6. After completing the procedure described in Creating Custom Search Fields from Task Business Data, click the Inbox page in the User Interfaces area of the task editor Overview tab.
7. Click Run to view and interact with the Inbox page as it will appear in the run-time environment. Note that the new search field is present, and a corresponding column is present in the search results.
Related Topics