Select to view content in your preferred language

Enhanced Search Widget for FlexViewer 2.1

140376
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
philippschnetzer
Frequent Contributor
Robert,

Nope...no upgrades as of late.  But, I did just replace my xml with a fresh download from the code gallery and copied and pasted chunks from my old one back in and now it works again...I have no explanation since I made no changes to the underlying code.  All is well again!  Thanks!
0 Kudos
MarkDumford
Emerging Contributor
Hi Robert,

I would like to set the column widths, rather than it being dynamic, in the grid search results. The reason is that the fields that I am displaying are being used as hyperlinks and I do not require that full field values to be displayed. In fact I am using a hyperlinkalias for that.

Would this a major undertaking with Flash Building or relatively simple?

Thanks for proving any feedback that you can and thanks for the great tool.

Mark Dumford
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mark,

   The latest version does take into account the width of the alias text instead of the actual url hyperlink value.

You could replace the onTempUICCreated function that sets the column widths but simple is not the word I would use. If you look at that function you can see how it loops through the grid fields and sets the column widths based on the longest attribute value or if the column name is the longer.
0 Kudos
MarkDumford
Emerging Contributor
Thanks Robert.

I will download the latest version and go with that as the solution.

Have a great weekend.

Gobble Gobble
0 Kudos
MarkDumford
Emerging Contributor
Hi Robert,

I have tried the latest version of your eSearch widget. Downloaded compiled version to the web server and replace the old eSearch folder with the new eSearch folder. I then copied and pasted my code from the old XML to the new.

I am not having any luck with the fixed grid search result column matching the length of the hyperlinkaliastext. I am using the fixed method for the grid location.

Did I miss something in my update steps.

Thanks for any suggestions you might have.

Mark
0 Kudos
MarkDumford
Emerging Contributor
See below for the link the the web application:

http://www.sjcog.org/FlexMapViewer24/Index.html
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mark,

   I was incorrect about having that fixed in the last version. It was the column heading that I fixed for joined tables. Anyway version 2.4.0.14 fixes the hyperlink alias auto size thing.

Version 2.4.0.14 - 11/19/2011
  * Both grids auto sizes to the hyperlink alias if that length is smaller than the column header.
  * Fixed issues with alias not getting set for hyperlinkalias if the column name alias was
    not also specified or the case did not match.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mark,

   You still have some major hurdles as this url "http://gisweb.sjcog.org/ArcGIS/rest/services" fails do to the DNS Lookup failing. You need to ensure your IT people have registered gisweb with your isp.
0 Kudos
SimonMorgan
Frequent Contributor
Your enhanced search widget works great for all except for one service. No matter what I do I get an error#1034 when I try to open the data grid. The data grid opens with the field headings specified, but it is blank even though valid results are displayed in the widget. Your widget works great will all of my other services. I have even tried rebuilding the service from scratch to see if there was an issue there. Any help you can provide would be greatly appreciated!! The service in question is somewhat sensitive so please email me smorgan at threeriversparkdistrict.org if you need to see it to help me.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Simon,

   Is there anything unusual about this service? Complicated join, GUID or other custom field?
0 Kudos