Select to view content in your preferred language

Enhanced Search Widget for FlexViewer 2.1

160462
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
DustinKosmach1
Deactivated User
Well, I think I figured it out.  I went into modules and added searchwidget.xml along with the other two and now its working. The thing is maybe update the readme.txt.  The file path for the new widgets is different, so it might be confusing for new users.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Dustin,

   Delete the whole eSearch folder under widgets and then from the project menu run a clean once that is do launch your project and see if you are error free before trying to add it back (when you add it back you will have to add it to your projects modules list again).
0 Kudos
SimonMorgan
Frequent Contributor
I have just upgraded to your 2.2 version. Now the hyperlink icon does not show. However, the hyperlink field is available in the floating data grid. I chose not to add a prefix and suffix as the data owner had his hyperlinks already setup to not need them. However, when i click ont he hyperlink in the floating data grid, it add na as a prefix and NA as a suffix. e.g. nahttp://www.google.comNA Do I need to change the data so that I can define a prefix/suffix or is this an issue? I have attached my config file.
0 Kudos
DustinKosmach1
Deactivated User
I have just upgraded to your 2.2 version. Now the hyperlink icon does not show. However, the hyperlink field is available in the floating data grid. I chose not to add a prefix and suffix as the data owner had his hyperlinks already setup to not need them. However, when i click ont he hyperlink in the floating data grid, it add na as a prefix and NA as a suffix. e.g. nahttp://www.google.comNA Do I need to change the data so that I can define a prefix/suffix or is this an issue? I have attached my config file.


I had the same problem with the NA being added. I added a prefix of http:// to the field and linkfield lines of the code. I left the suffix blank and everything was working just fine after that.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Simon,

   Hang tight I think I see the problem in the code. Fix one thing break another, that's a programmers life...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Simon,

   OK, I found the issue and for now to fix your problem all you have to do is add in
linkprefix="" linksuffix=""
to your grid hyperlink fields. So it would look like this:
<field name="HYPERLINK" alias="Document Link" hyperlinkgridfield="true" hyperlinkaliastext="Click here for document" linkprefix="" linksuffix=""/>


I will look at a possible code change in the next version.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   Version 2.2.1 is now released and should address all the latest reported issues.

Version 2.2.1
* Fixed the issue of the color picker and alpha slider not worker for the buffer.
* Rearranged the graphics layer order to put the buffer under the selected feature.
* Adjusted the SearchWidget.xml so that miles is not the default in the spatial search.
* Fixed issue with hyperlink grid field optional attributes like hyperlinkaliastext, linkprefix, and linksuffix
  in this version you can omit hyperlinkaliastext, linkprefix, and linksuffix or set them to = "" and
  it not have an adverse effect as in versions prior to 2.2.1
0 Kudos
SimonMorgan
Frequent Contributor
All,

   Version 2.2.1 is now released and should address all the latest reported issues.

Version 2.2.1
* Fixed the issue of the color picker and alpha slider not worker for the buffer.
* Rearranged the graphics layer order to put the buffer under the selected feature.
* Adjusted the SearchWidget.xml so that miles is not the default in the spatial search.
* Fixed issue with hyperlink grid field optional attributes like hyperlinkaliastext, linkprefix, and linksuffix
  in this version you can omit hyperlinkaliastext, linkprefix, and linksuffix or set them to = "" and
  it not have an adverse effect as in versions prior to 2.2.1


Thank you for responding so quickly. This widget is great has become incredibly more powerful in its latest incarnation!! Thank you!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Andrea,

   I am really not sure what is going wrong with your map service. Seems really strange that your 9.3 mapservice is exhibiting that behavior but others are not. Sorry I don't have any advice for this. So am I correct in understanding that if you are at the full map scale than it still does not zoom at all right?
0 Kudos
CaitlinBernier
Emerging Contributor
Hi All,

I have upgraded my Enhanced Search Widget to Robert and Erwan's latest version.  It is all working well except for one part.  I have set up 3 spatial search options: "entirely contained in", "intersected by", and "are within".  I am using the names that were included in the xml file and have only added the label for "are within".
 
On my FLEX site, there are only 2 options available for spatial search and neither one is using the labels that I have defined making me believe that something is amiss.

I have been unable to locate documentation on the Spatial Search part of the Enhanced Search Widget (maybe because it is pretty straightforward) but since I am experiencing some issues, it would be nice to see how I should set this up.

Any suggestions on this one?

Thanks.
Caitlin Bernier
0 Kudos