Select to view content in your preferred language

error 1009  - Enhance search

1585
5
Jump to solution
02-20-2012 02:09 PM
JamesArmstrong
Occasional Contributor
Finally found some time to work on the flex viewer again.  Downloaded latest enhanced search widget and read the pdfs.  Seems pretty straight forward, so first off,need to acknowldge Robert for his good works.

Anyway,  been trying to use the enhanced search widget with my own data and having some issues.  namely Error 1009. 

here is search config that I am using to search my parcel data.  I get the data visually as a dynamic layer so all seems good there.

any thoughts?

-------------------------
<configuration>
<layers>
  <layer>
   <definitionexpression></definitionexpression>
   <enableexport>true</enableexport>
   <name>Parcels</name>
   <url>http://rcggisserver2/ArcGIS/rest/services/RichmondParcels10/MapServer/11</url>
   <expressions>
    <expression alias="PIN2"
     textsearchlabel="Search by Parcel ID [Example: 746604927130]:">PIN2 = '[value]'</expression>
                        <!--<expression alias="OwnerName"
     textsearchlabel="Search by Owner Name [Example: Smith,John or Smith%]:">OwnerName LIKE '%[value]%'</expression>-->
   </expressions>
   <graphicalsearchlabel>Use one of the graphical search tools to select parcels</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>PIN2</titlefield>
   <fields all="false">
    <field name="PIN2" alias="PIN2" />
   </fields>
   <links>
    <link includeinresults="false" field="" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale usegeometry="true">40000</zoomscale>
  </layer>
------------------
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: Richmondgis

Robert

Yep, that seems to have been the trick.  More times than not, it is something simple...

thanks again

james

View solution in original post

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
James,

   I don't see an issue in what you posted so you might want to attach your whole SearchWidget.xml
0 Kudos
by Anonymous User
Not applicable
Original User: Richmondgis

here attached is full widget (sent as a .txt file.)  I have deleted some of your orginal code like the zoning district search and other that were commeted out anyway.

Perhaps I deleted something important......

sometimes I get the #1009 error and other times the return is 0.

I did try to use the ip address in the url but that did not help.  Also currently this Server is not yet available to the public.

James
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
James ,

   Do you have the ObjectId and/or Shape field hidden in the MXD for this layer if so that is the issue.
0 Kudos
by Anonymous User
Not applicable
Original User: Richmondgis

Robert

Yep, that seems to have been the trick.  More times than not, it is something simple...

thanks again

james
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
James

Glad you got it working. Don't forget to click the Mark as answer check (on my post) and to click the top arrow (promote) as shown below:
0 Kudos