<layer> <name>Traffic Cameras</name> <url>http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/2</url> <expression>upper(DESCRIPTION) LIKE upper('[value]%')</expression> <textsearchlabel>Search Traffic Cameras by Location... [ Example: I-71 ]</textsearchlabel> <graphicalsearchlabel>Use one of the graphical search tools to select Traffic Cameras</graphicalsearchlabel> <spatialsearchlabel>Select the two layers for spatial query</spatialsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <spatialrelationlayer>true</spatialrelationlayer> <fields all="false"> <field name="DESCRIPTION" alias="Description" gridfield="true" /> <field name="URL" alias="Show Image" hyperlinkgridfield="true" hyperlinkaliastext="Get Traffic Image"/> <field name="ONLINE" alias="Online" gridfield="true" gridfieldonly="true"/> <field name="LAST_UPDATED" alias="Last Updated" gridfield="true" gridfieldonly="true"/> </fields> <titlefield>DESCRIPTION</titlefield> <linkfield>URL</linkfield> <zoomscale>5000</zoomscale> </layer>
<geometryservice>http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer</geometryservice>
<layer> <name>GCR - Geological Conservation Review Site</name> <url>http://uk-abz-app10/ArcGIS/rest/services/env/envtest/MapServer/1</url> <expression>UPPER("NAME") LIKE UPPER('%[value]%')</expression> <textsearchlabel>Enter a GCR Review Site Name:</textsearchlabel> <graphicalsearchlabel>Select a search tool:</graphicalsearchlabel> <spatialsearchlabel>Select the two layers for spatial query</spatialsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <spatialrelationlayer>true</spatialrelationlayer> <titlefield>NAME</titlefield> <linkfield>CODELINK</linkfield> <fields all="false"> <field name="CODE" alias="Code" gridfield="true"/> <field name="NAME" alias="Name" gridfield="true"/> <field name="COUNTRY" alias="Country" gridfield="true"/> <field name="BLOCK" alias="Block" gridfield="true"/> <field name="LOCAL_AUTH" alias="Local Authority" gridfield="true"/> <field name="GRID_REF" alias="Grid Ref." gridfield="true"/> <field name="EASTING" alias="Easting" gridfield="true"/> <field name="NORTHING" alias="Northing" gridfield="true"/> <field name="CODELINK" alias="Link" hyperlinkgridfield="true" hyperlinkaliastext="Link to JNCC data"/> </fields> </layer>
<layers>
<layer>
<name>Addresses</name>
<url>http://agsmaps.ci.santa-rosa.ca.us/ArcGIS/rest/services/MiscLayersExt/MapServer/4</url>
<expression>FullAddr LIKE '%[value]%'</expression>
<textsearchlabel>Search by Address [ Example: 100 Santa Rosa Ave ]:</textsearchlabel>
<graphicalsearchlabel>Use one of the graphical search tools to select Addresses</graphicalsearchlabel>
<spatialsearchlabel>Select the two layers for spatial query</spatialsearchlabel>
<spatialsearchlayer>true</spatialsearchlayer>
<spatialrelationlayer>true</spatialrelationlayer>
<titlefield>ASMT</titlefield>
<linkfield></linkfield>
<fields all="false">
<field name="FullAddr" alias="Address"/>
</fields>
</layer>
<layer>
<name>Landmarks</name>
<url>http://agsmaps.ci.santa-rosa.ca.us/ArcGIS/rest/services/MiscLayersExt/MapServer/8</url>
<expression>NAME LIKE '%[value]%'</expression>
<textsearchlabel>Search by Name [ Example: school ]:</textsearchlabel>
<graphicalsearchlabel>Use one of the graphical search tools to select landmarks</graphicalsearchlabel>
<spatialsearchlabel>Select the two layers for spatial query</spatialsearchlabel>
<spatialsearchlayer>true</spatialsearchlayer>
<spatialrelationlayer>true</spatialrelationlayer>
<titlefield>ASMT</titlefield>
<linkfield>URL</linkfield>
<fields all="false">
<field name="NAME" alias="Name"/>
<field name="TYPE" alias="Type"/>
<field name="URL" alias="Link"/>
</fields>
</layer>
<layer>
<name>Parcels</name>
<url>http://agsmaps.ci.santa-rosa.ca.us/ArcGIS/rest/services/Parcels/MapServer/0</url>
<expression>ASMT LIKE '[value]%'</expression>
<textsearchlabel>Search by APN [ Example: 009191021 ]:</textsearchlabel>
<graphicalsearchlabel>Use one of the graphical search tools to select parcels</graphicalsearchlabel>
<spatialsearchlabel>Select the two layers for spatial query</spatialsearchlabel>
<spatialsearchlayer>true</spatialsearchlayer>
<spatialrelationlayer>true</spatialrelationlayer>
<titlefield></titlefield>
<linkfield></linkfield>
<fields all="false">
<field name="ASMT" alias="APN" gridfield="true" gridfieldonly="false"/>
<field name="SITUS_ADDRESS" alias="Address" gridfield="true" gridfieldonly="false"/>
</fields>
</layer>
</layers>
Robert / Erwan - nice looking widget. But am I right in thinking that the default search tool automatically displays a field's alias in the search tool widget? You only need define an alias attribute if you want to override the field alias. From my perspective it would be useful if your enhanced search widget could replicate this in the results grid.
Also I'm only seeing the contents of the <titlefield> tag in the search widget itself...
Sam