Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 - 

NameTypeDefaultDescription
emptyTextstringQuick searchThe 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
xml
xml
linenumberstrue
<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>

...