I keep getting error #1010: A term is undefined and has no properties message when using graphical search on esearch widget. No problem on text search at all and work ok on previous version 3.0x. In order to able to use graphical search, I have to set spatialsearchlayer to true. Do you know why?
See below for my xml file:
<layer>
<token/>
<useproxy>true</useproxy>
<definitionexpression></definitionexpression>
<enableexport>false</enableexport>
<name>Subdivision</name>
<url>http://webmap/ArcGIS/rest/services/Internet/MapServer/12</url>
<expressions>
<expression alias="Subdivision" textsearchlabel="Search Subdivision by">
<values>
<value prompt="[Example: Sunset]" isvaluerequired="false">Lower(SUB_NAME) LIKE ('%[value]%')</value>
</values>
</expression>
</expressions>
<graphicalsearchlabel>Use one of the graphical search tools to select Subdivision</graphicalsearchlabel>
<spatialsearchlayer>false</spatialsearchlayer>
<titlefield>Subdivision</titlefield>
<fields all="false">
<field name="SUB_NAME" alias="Subdivision Name" gridfield="true"/>
</fields>
<links/>
<zoomscale usegeometry="true" zoompercent="2"></zoomscale>
<autoopendatagrid>false</autoopendatagrid>
<queryattachments>false</queryattachments>
<relates/>
<symbology>
<simplefillsymbol color="0x0000ff" alpha="0">
<outline color="0x00ffff" alpha="0.8" width="2" />
</simplefillsymbol>
</symbology>
</layer>
See below for my xml file:
<layer>
<token/>
<useproxy>true</useproxy>
<definitionexpression></definitionexpression>
<enableexport>false</enableexport>
<name>Subdivision</name>
<url>http://webmap/ArcGIS/rest/services/Internet/MapServer/12</url>
<expressions>
<expression alias="Subdivision" textsearchlabel="Search Subdivision by">
<values>
<value prompt="[Example: Sunset]" isvaluerequired="false">Lower(SUB_NAME) LIKE ('%[value]%')</value>
</values>
</expression>
</expressions>
<graphicalsearchlabel>Use one of the graphical search tools to select Subdivision</graphicalsearchlabel>
<spatialsearchlayer>false</spatialsearchlayer>
<titlefield>Subdivision</titlefield>
<fields all="false">
<field name="SUB_NAME" alias="Subdivision Name" gridfield="true"/>
</fields>
<links/>
<zoomscale usegeometry="true" zoompercent="2"></zoomscale>
<autoopendatagrid>false</autoopendatagrid>
<queryattachments>false</queryattachments>
<relates/>
<symbology>
<simplefillsymbol color="0x0000ff" alpha="0">
<outline color="0x00ffff" alpha="0.8" width="2" />
</simplefillsymbol>
</symbology>
</layer>