Select to view content in your preferred language

Enhanced Search Widget for FlexViewer 2.1

158965
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
SimonMorgan
Frequent Contributor
Robert,

The problem I reported in ths followng thread: http://forums.arcgis.com/threads/20134-Flex-Viewer-2.2-gets-Stuck only seems to happen when I open your esearch widget. When the widget is opened, some of the widget icons disappear, and when I zoom in by clicking on a result the base map does not reload. However, continuign to use the graphic tools still gives a fresh set of results. I am using version 2.2.2 Do you have any ideas?

Thanks,

Simon
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Simon,

   Not a lot of info to go on here... As you are the only one reporting this issue and I have never seen it in any of my testing I am not even sure where to be begin looking. Initially in your post you thought it was more wide spread. So what have to done as far as testing to narrow it down the the eSearch? I am definitely willing to debug this if I can duplicate your issue. If you switch your config.xml file and use esri base maps and not Bing do you get the same result? Do you have any slow map services in your map? are all map services using the same projection? Some many variables and questions...
0 Kudos
SimonMorgan
Frequent Contributor
Simon,

   Not a lot of info to go on here... As you are the only one reporting this issue and I have never seen it in any of my testing I am not even sure where to be begin looking. Initially in your post you thought it was more wide spread. So what have to done as far as testing to narrow it down the the eSearch? I am definitely willing to debug this if I can duplicate your issue. If you switch your config.xml file and use esri base maps and not Bing do you get the same result? Do you have any slow map services in your map? are all map services using the same projection? Some many variables and questions...


I have been through all of my application and used every widget and it only seems to happen consistently immediately after the esearch widget is fired up (both 2.2.1 and 2.2.2 did this). I am not certain it is your widget, it just currently appears to be the only consistent cause right now.

I do get the same result with ESRI base maps. I have tried it without using any of my map services in the map (although all of mine run pretty fast in the apps where I use the esearch widget).

Here is the output from the debug version of flash after I click to open an esearch widget:

VerifyError: Error #1014: Class com.esri.viewer::BaseWidget could not be found.

at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()

ReferenceError: Error #1065: Variable _InfoPopupWidget_Styles__embed_css_Assets_swf_mx_skins_cursor_VBoxDivider_381069706 is not defined.

at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()

ReferenceError: Error #1065: Variable _InfoPopupWidget_Styles__embed_css_Assets_swf___brokenImage_235808565 is not defined.

at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()
ReferenceError: Error #1065: Variable _InfoPopupWidget_Styles__embed_css_assets_images_arrow_up_png_2037389294 is not defined.

at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()

ReferenceError: Error #1065: Variable _InfoPopupWidget_Styles__embed_css_assets_images_arrow_up_png_2037389294 is not defined.

at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()

ReferenceError: Error #1065: Variable _InfoPopupWidget_Styles__embed_css_Assets_swf_cursorStretch_1097191134 is not defined.

at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()

ReferenceError: Error #1065: Variable _InfoPopupWidget_Styles__embed_css_assets_pan_pan_se_png_2062712660 is not defined.

at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()
0 Kudos
SimonMorgan
Frequent Contributor
Simon,

   Not a lot of info to go on here... As you are the only one reporting this issue and I have never seen it in any of my testing I am not even sure where to be begin looking. Initially in your post you thought it was more wide spread. So what have to done as far as testing to narrow it down the the eSearch? I am definitely willing to debug this if I can duplicate your issue. If you switch your config.xml file and use esri base maps and not Bing do you get the same result? Do you have any slow map services in your map? are all map services using the same projection? Some many variables and questions...


Figured it out. When I originally upgraded to 2.2 I modified the existing esearch widget config file I had to match the new format as mentioned in your important changes document. Well I must have done it wrong because I just re-did my esearch config files from scratch (using the config file that you incldue int he zip file as a template) and now I do not have a problem.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Simon,

   Good to know. I would not have expected that error for that issue but I will make a mental note in case anyone else runs into this.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Robert,
As all the others, thank you so much for putting your time into these things.  I hate to bring this up but I believe there is a bug in the spatial search.  It seems to be stuck on "Intersected by Envelope of" option.  After I apply a search distance and generate a buffer I then go to select all polygons that intersect it and it selects the same polygons no matter which option I choose ("entirely contained in", "intersected by" or "intersected by envelope of").

PS. This is with your latest release: 2.2.2


Jeff,

   There will be a new version available tomorrow that addresses that bug.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

  Version 2.2.3 now available.

Version 2.2.3 - 01/06/2011
  * Fixed Issue with all spatial button firing intersects instead of what they were intended to fire
  * Added a clear text button to the results page.
  * Better Spatial Icons
0 Kudos
JeffLegato
Regular Contributor
All, 

Version 2.2.3 now available. 

Version 2.2.3 - 01/06/2011 
* Fixed Issue with all spatial button firing intersects instead of what they were intended to fire 
* Added a clear text button to the results page. 
* Better Spatial Icons


😄Works perfectly! 😄

You totally rock! Anyone using this widget owes you big time. Thanks!
0 Kudos
TonyBlades
Emerging Contributor
I can't get the eSearch to work on a layer that's joined to a table.  I've also tried relating, and joining to a relationship class.  No luck.  Is it possible?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Tony,

   I think that several people have layers that are joined working. Are you using the full join name of fields?
0 Kudos