Select to view content in your preferred language

Enhanced Search Widget for FlexViewer 2.1

159656
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
RobertScheitlin__GISP
MVP Emeritus
Caitlin,

   Yep, you are on to an issue... The way that the spatial portion of the search revamped there are currently only 2 hard coded options as we are now using buttons with images. I will get this fixed in the next release to allow for more dynamic options and allow for the tooltips of the buttons to follow what you enter in as the label. No current time frame for this though as I am working on two very big new widgets and getting ready for FlexViewer 2.3 Holistic testing next month.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   New version 2.2.2 is available that addresses an issue that was brought up about the spatial search not honoring configuration file changes.
0 Kudos
BrendanCunningham
Emerging Contributor
Hi Robert / all,
The widget is excellent, that is for sure.
However I am looking for some functionality that would add to the function.
I am looking to hyperlink in from other web applications that will open the Flex Viewer App at a specific search result with the data grid loaded.
Is this possible or is this an altogether different widget/configuration?
I have seen this done in a 1.3 Sample Flex Viewer app but can't see it in the 2.2 version.
Hope this is possible,
Thanks,
Brendan
0 Kudos
CaitlinBernier
Emerging Contributor
Thank you for the new release Robert.  I have implemented it in my internal site but now, although the three options for spatial search are displayed on the spatial search screen, they do not select any features.  I have selected an addition polygon through the attribute search and then tried to select all of the parcels that are within or intersect the selected addition polygon but no parcels are selected.  I have included the entire eSearch xml file so you can see if I have made an error.  Thank you again for all of your continued work on the eSearch Widget and all of the other widgets you have built.  Your work is greatly appreciated.
Caitlin Bernier
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Caitlin,

  Did this work in a previous version? Are all the layers in the same spatial reference? Are you using the compiled or uncompiled? If compiled which version 2.1 or 2.2?
0 Kudos
CaitlinBernier
Emerging Contributor
I am using the compiled version for 2.1.  All layers are in the same spatial reference.  When I did this query before with the intersect option, I got a list of parcels or addresses depending on what I queried on.  I wanted to be able to select by attribute a certain addition, subdivision or zoning type and then spatially select all of the parcels or address that were within that attribute selection.

Thanks for your help.
Caitlin
0 Kudos
NadeemShaukat
Deactivated User
Robert,

There seems to be a little bug in the Enhanced Search Widget. It's in the movement of data grid. I can move the grid to a new location from the default center, but if I open the data grid again, it does not move unless I close it. Is there an easy fix? If so, pleae let us know where to implement the change. Thanks

Nadeem
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nadeem,

I didn't expect someone to try to open the datagrid again if it was already open. No big deal though all you have to do is add this one line:

private function showGridResults():void
   {
    try
    {
     if(gridFields.length == 0){
      showMessage("No Datagrid configured for this layer", false);
      return;
     }
     
     if(!myfloatdg){
      myfloatdg = SearchWidgetFloatDG(PopUpManager.createPopUp(map,SearchWidgetFloatDG,false));
      PopUpManager.centerPopUp(myfloatdg);
     }else{
      PopUpManager.removePopUp(myfloatdg);
      PopUpManager.addPopUp(myfloatdg,map,false);
      PopUpManager.centerPopUp(myfloatdg);
     }
...
0 Kudos
NadeemShaukat
Deactivated User
Thnaks much Robert.

You have done a great job towords working on and publishung this widget.

Nadeem
0 Kudos
JeffLegato
Regular Contributor
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
0 Kudos