Non-Spatial Weave Configurations

The following data definition is provided for the public.graffiti table to be used for attribute selection.

<?xml version="1.0" encoding="UTF-8"?> <config xmlns= "urn:com.cohga.server.config#1.0" xmlns:data="urn:com.cohga.server.data.database#1.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd= "http://www.w3.org/2001/XMLSchema"> <data:datadefinition id='dd.graffiti'> <datasourcedataconnection datasource='ds.postgresql' table='"public".graffiti' key='id'> <parameter name='id' label='Id' column='id' type='int'/> <parameter name='description' label='Description' column='description'/> <parameter name='status' label='Status' column='status'/> <parameter name='fieldverified' label='Fieldverified' column='fieldverified'/> <parameter name='reportedby' label='Reportedby' column='reportedby'/> <parameter name='reportedon' label='Reportedon' column='reportedon' type='datetime'/> <parameter name='createdby' label='Createdby' column='createdby'/> <parameter name='createdon' label='Createdon' column='createdon' type='datetime'/> <parameter name='modifiedby' label='Modifiedby' column='modifiedby'/> <parameter name='modifiedon' label='Modifiedon' column='modifiedon' type='datetime'/> </datasourcedataconnection> </data:datadefinition> <data:data id='d.graffiti' entity='graffiti' datadefinition='dd.graffiti' label='Graffiti'/> </config>

The following definition will be used for executing attribute searches against our graffitientity.

<?xml version="1.0" encoding="UTF-8"?> <config xmlns="urn:com.cohga.server.config#1.0" xmlns:search="urn:com.cohga.server.search.database#1.0"> <search:attribute id='search.graffiti'> <entity>graffiti</entity> <label>Graffiti</label> <description>Search Graffiti by</description> <datasource>ds.postgresql</datasource> <table>public.graffiti</table> <key>id</key> <parameter id='description'> <label>Description</label> <dataType>string</dataType> <controltype>listbox</controltype> <matchtype>middle</matchtype> <column>description</column> </parameter> <parameter id="status"> <label>Status</label> <controlType>listbox</controlType> <column>status</column> <defaultValue>N</defaultValue> <list value="N" label="New"/> <list value="V" label="Verified"/> <list value="S" label="Scheduled"/> <list value="R" label="Removed"/> </parameter> <parameter id="reportedby"> <label>Reporter</label> <controlType>list-box</controlType> <dataSet>lu.staff</dataSet> <allowNewValues>true</allowNewValues> <column>reportedby</column> <valuecolumn>name</valuecolumn> <labelcolumn>name</labelcolumn> </parameter> <!--parameter id="diametergt"> <label>Diameter (mm) &gt;=</label> <datatype>integer</datatype> <where> <clause><![CDATA[diameter >= ${diametergt}]]></clause> </where> </parameter--> </search:attribute> </config>

We now modify the client to include (placed after tocView) the searchViewtab as follows:

<perspective> ... <!-- Add TOC View to the client --> <view id="com.cohga.html.client.map.tocView"> <label>Layers</label> <location>west</location> <contextmenu> <item action="weave.toc.zoomToLayer"/> <item action="weave.toc.selectLayer"/> <item action="weave.toc.clearSelection"/> </contextmenu> </view> <!-- Add search view to client --> <view id="com.cohga.html.client.main.searchView"> <label>Search</label> <location>west</location> </view> ... </perspective>

The client now looks like this.