Client Views Search

This is the basic search input form.

ID

com.cohga.html.client.main.searchView

Sub-tags

name

type

cardinality

default

description

label

String

0..1

Search

Label to display in tab

location

String

1..1

 

Which region to add the view to

searchComboWidth

Integer

0..1

250

The width of the search combo

searchComboListWidth

Integer

0..1

250

The width of the search combo popup list

Example

Basic search view

<view id='com.cohga.html.client.main.searchView'>
        <label>Find</label>
        <location>east</location>
</view>

Localisation

It's possible to localise the text used in the search panels so they're displayed in the local language of the user, this localisation is performed using the standard localisation mechanism outlined at Internationalisation and localisation.

This was only made available for the search panel in version 2.24 of the com.cohga.client.weave.main bundle

The edit panel provides a set of resource id's that it understands and if they're set for the users locale they will be used instead of the defaults values.

id

default

search.error.validation

The search has fields that are required to be entered. Please fix the errors marked in red.

search.reset.tooltip

Reset the Form

new

New

add

Add

remove

Remove

refine

Refine

The last four are global resources that are used in places other than the search panel.

The following resources item can be used to replace the text for all of the items

<client:resources>
	<search>
		<error>
			<validation>The search has fields that are required to be entered.  Please fix the errors marked in red.</validation>
		</error>
		<reset>
			<tooltip>Reset the Form</tooltip>
		</reset>
	</search>
	<new>New</new>
	<add>Add</add>
	<remove>Remove</remove>
	<refine>Refine</refine>
</client:resources>