How to Setup Quick Searches on Web.Instance.Search
1 min
When setting up a dashboard using the BrowseInstances page you may like to compliment the search options panel with Quick Search buttons on the ribbon. These allow you to predefine commonly used queries to filter the grid.
This article explains how to setup these quick searches.
Steps
- On the Ribbon toolbar form (e.g. Web.Instance.Toolbar) add the Ribbon Buttons that you require for your quick searches.
- browse="true"
- Click="Query"
- ClickArgument="queries/queryName"
- Save the form and then open up the Search Form (e.g. Web.Instance.Search) and change it to text mode.
- Rename the "queryName" tags with the name of the query you defined on the quick search buttons in step 2. You can add additional queries for each additional button.
- Replace the "#Search query goes here" with the query you require. This will be in the same format that you will have used in the standard Search Options Query on the form. e.g. {AssignedUserGuid} = '%=//CurrentUser/Guid%' and Status<100
When the user clicks on the query it will filter the current grid and override anything that has been previously defined in the search options form.