Select to view content in your preferred language

Enhanced Search Widget for FlexViewer 2.1

110213
767
10-25-2010 02:13 PM
RobertScheitlin__GISP
MVP Emeritus
All Here is my next widget in the FlexViewer 2.1 series

Special thanks to Erwan Caradec for contributing to this code.

The Enhanced Search Widget extends the standard search widget with a floating data grid and a new spatial query w/buffering.

http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e
Tags (2)
0 Kudos
767 Replies
EricVenden
Frequent Contributor
Robert,
See attached txt file - query string was:  SUB_NAME LIKE '%victorian%'

Thanks
Eric
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Eric,

    I think we are running into an issue here. To properly diagnose the issue we need certain things to remain constant in the debug process. So try the query again using this where clause:
SUB_NAME LIKE '%Southridge%'
and these outfields:
SUB_NAME,SUB_PHASE,SUB_UNIT,DOC_NUM,PLAT_PDF,OBJECTID
0 Kudos
EricVenden
Frequent Contributor
Robert,
See attached with the search criteria, etc as you had specified.

Thanks
Eric
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Eric,

   So for testing purposes plug this exactly into your SearchWidget.xml file and be sure to clear your browsers cache and try the query again.

  <layer>
   <name>Subdivisions by Name</name>
   <url>http://arcgis-srv1.village.gurnee.il.us/ArcGIS/rest/services/Subdivisions/MapServer/1</url>
   <expressions>
    <expression alias="Subdivision Search By Name" textsearchlabel="Search by Name [ Example: Southridge ]:" >SUB_NAME = '[value]'</expression>
   </expressions>
   <graphicalsearchlabel>Use one of the graphical search tools to select Subdivisions</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>SUB_NAME</titlefield>
   <fields all="false">
    <field name="SUB_NAME" alias="Subdivision Name" gridfield="true"/>
    <field name="SUB_PHASE" alias="Phase" gridfield="true"/>
    <field name="SUB_UNIT" alias="Unit" gridfield="true"/>
    <field name="DOC_NUM" alias="Doc Number" gridfield="true"/>
    <field name="PLAT_PDF" alias="Subdivision Plat PDF" gridfield="true"/>
    <field name="OBJECTID" alias="ObjectID" gridfield="true"/>
   </fields>
   <linkfield></linkfield>
   <icon isfield="false"></icon>
   <zoomscale>1200</zoomscale>
  </layer>
0 Kudos
EricVenden
Frequent Contributor
Robert,

I used the code you sent and the initial search popped the #1009 error, but the results grid displays the correct information.  I used "Southridge" as the search string.

see attached
Thanks
Eric
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Eric,

    Maybe we are trying to look to narrowly at this... Post your whole SearchWidget.xml
0 Kudos
EricVenden
Frequent Contributor
Here it is Robert,
I copied the xml from a search that we have working and tweaked it.
Thanks
Eric
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Eric,

   Try using this 2.2.5 version of the xml with your data plugged in for you.
0 Kudos
EricVenden
Frequent Contributor
Robert,
I tried the new xml with the same result.
Eric
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Eric,

   As long as you cleared your browser cache to ensure that the new xml was used. I am completely out of ideas.
0 Kudos