Select to view content in your preferred language

Enhanced Search Widget for FlexViewer 2.1

140795
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
MichaelZierten
Emerging Contributor
I'm not having much luck getting the widget to work. I get the following error:

Error #1009: Cannot access a property or method of a null object reference

I'm using the precompiled version, flexviewer 2.4. Here is the Layer config:

<layer>
   <definitionexpression></definitionexpression>
   <enableexport>true</enableexport>
   <name>Municipal Places of Use</name>
   <url>http://ndwr-gis/ArcGIS/rest/services/PlacesOfUse/MapServer/0</url>
   <expressions>
    <expression alias="Application/Permit No." textsearchlabel="Search Municipal POUs by app no. ... [ Example: 73454  ]">app = '[value]'</expression>
   </expressions>
   <graphicalsearchlabel>Use one of the graphical search tools to select POUs</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>app</titlefield>
   <fields all="false">
                <field name="app" alias="App/Permit No." />
                <field name="app_status" alias="Status"/>
    <field name="mou" alias="Use"/>
    <field name="source" alias="Source" />
    <field name="source_desc" alias="Description" />
    <field name="duty_balance" alias="Duty"/>
    <field name="div_balance" alias="Diversion"/>
            </fields>
   <linkfield></linkfield>
   <icon isfield="true"></icon>
   <zoomscale usegeometry="true">1000</zoomscale>
  </layer>

I've verified the attribute fields in my rest services.

TIA

Mike Zierten
Nevada Division of Water Resources.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   You need to be a little more specific.. When do you get the error when you attempt to launch the widget, when you click search?
0 Kudos
MichaelZierten
Emerging Contributor
Michael,

   You need to be a little more specific.. When do you get the error when you attempt to launch the widget, when you click search?


when I enter a value in the window and hit the search button.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   Are still having issues?
0 Kudos
MichaelZierten
Emerging Contributor
Yes. Actually I misspoke on my last post. I get the error when I try to use the graphical search. When I use the text search, I get nothing.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   Do you have your shape and/or ObjectID fields hidden in the MXD? If so that is a problem.
0 Kudos
MichaelZierten
Emerging Contributor
Michael,

   Do you have your shape and/or ObjectID fields hidden in the MXD? If that is a problem.


Nope. That fixed it. I suspected something to do with the layers. Thanks for pointing me in the right direction.
0 Kudos
philippschnetzer
Frequent Contributor
Noticing some odd behaviour when using the select by rectangle tool. After the initial selection is made (on a parcel layer) clicking anywhere else on the map will create a new selection without being prompted to draw a new rectangle.  This should work the same way as the select by polygon tool - after the initial selection if yo click elsewhere you must redraw a new polygon to create a new selection. 

Also, when closing the tool the selection is cleared, but the buffer remains...

And...when drawing a rectangle there is a tooltip 'Press down to start and let go to finish' that hangs around even if after you select to do a text search...
0 Kudos
JohnBuzzard
Deactivated User
Robert,

Questions on the Enhanced Search Widget... Can I change the name of the widget in the config file or does it break the url search function? Also, is it possible to change "search" in the URL to "SEARCH" if I am using the uncompiled version to save me the headache of changing a bunch of links on an outside site that hits the viewer? I am currently making the jump from an older version of your esearch widget (2.2.10 I think) to the latest version. Thanks!

John
0 Kudos
deleted-user-RjoC4IOGTpoH
Deactivated User
Good Afternoon Robert,
Hope all is well.

Having an issue with 2.4.0.12. When I create a spatial buffer, it buffers my entire extents, regardless of the distance and unit.

Using the Buffer widget works fine. The buffer is the correct distance and unit.

I'm on 10, sp 3, fv 2.4

Thanks !!

Nestor.
0 Kudos