The search template allow users to store attribute search values to be opened at a later time. This might be helpful for complex searches that are being executed frequently. The Search Template action is tightly coupled with the Attribute Search view and at the moment the action must be located in the status bar of the view. The values are stored in Weave Storage Store and nobody but the user who saved the template can access the templatesit.
The Search Template window will list all stored searches for the active entity. Changing entity will update the list for that entity.
Seach templete grid window | Add a Search template |
ID
weave.searchTemplate
Sub-tags
name | type | cardinality | default | description |
---|---|---|---|---|
open | boolean | 0..1 | true | Allow user to open a search template |
create | boolean | 0..1 | true | Allow user to create a search template |
update | boolean | 0..1 | true | Allow user to update a search template |
remove | boolean | 0..1 | true | Allow user to remove a search template |
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
<client:config> .... <perspective> <view id="com.cohga.html.client.main.searchView" > <location>west</location> <statusbar> <item action="weave.searchTemplate" /> </statusbar> </view> .... </perspective> </client:config> |
I18n resources
id | default |
---|---|
search.template.tooltip.title | Search templates |
search.template.validate.name | Name must not be blank |
search.template.validate.entity | Entity is missing |
search.template.validate.searchid | SearchId for search is missing |
search.template.updateTitle | Update Search Template |
search.template.updatePrompt | Are you sure you want to replace this Search Template? |
search.template.name | Name |
search.template.description | Description |
search.template.replace | Replace with current search parameters |
search.template.cancel | Cancel |
search.template.save | Save |
search.template.edit | Edit Search template |
search.template.create | Create |
search.template.open | Open |
search.template.update | Update |
search.template.remove | Remove |
search.template.reload | Reload |
search.template.entity | Entity |