The Quick Search panel provides the supporting components, both client and server, for adding a new panel to the client that allows the user to quickly find an entity and see details about that entity.
This tool is a combination of the index combo and the data grid. It is useful for a Weave instance that has a cut down client with few tools.
ID
com.cohga.view.quicksearch
Sub-tags -
Name | Type | Default | Description |
---|---|---|---|
emptyText | string | Quick search | The text to show in the field when nothing has been entered. |
label | String | 0..1 | Label to display in tab |
location | String | 1..1 | Which region to add the view to |
minScale | number | When the user chooses an result from the list the map will be zoomed to the extent of the chosen entity, this setting ensures that the map won't be zoomed in beyond the given scale. |
Example
Basic quick search view
Code Block | |||||||
---|---|---|---|---|---|---|---|
| |||||||
<view id="com.cohga.view.quicksearch"> <label>Quick Search</label> <emptyText>Enter search term</emptyText> <location>west</location> <minscale>1000</minscale> <detail> <data>ar_road_details</data> </detail> <detail> <entity>property</entity> <datadefinition>dd_property_details</datadefinition> <template><![CDATA[ <b>Property</b><br/> {PropNo} {StreetName} {StreetType} ]]></template> </detail> </view> |
...