Select to view content in your preferred language

Enhanced Search Widget for FlexViewer 2.1

110211
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
Eric,

   This is standard Flex Data Grid functionality. Try double clicking.
0 Kudos
EricVenden
Frequent Contributor
Robert,
Tried that too..nothing.  I'm using 2.2.5f..I'll try a different flex site or maybe go to 2.2.5 (for the swf).  I'll also make sure my xml is 2.2.5f

Do you have a test site that has data grid configured?  The site for the widget does not have the grid configured.

Thanks
Eric
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Eric,

   It has nothing to do with the version of the widget. As I said that is standard/default capability of flex data grids.

Are you not seeing the sort indicator as in the attached image?
0 Kudos
EricVenden
Frequent Contributor
Robert,
Strange behavior - I can click (single or double) on the column heading and I do not see the little triangle, but if I adjust the column width then the triangle will appear.  The results, however, are not sorted.

Eric
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Eric,

   Are you saying you have tried more than one field and none of them sorts the data... I can not say that I see that. Even My demo site sorts the data in the data grid
0 Kudos
GeraldLee__GISP
Frequent Contributor
Robert,
i have a question about your feature maptip widget when you have a chance. Is it only functional with polygons or can you use points and lines as well? i cant seem to get it to work. thanks for your help as always.
Gerald
0 Kudos
EricVenden
Frequent Contributor
Robert,
I have found that 2 other searches do sort the results in the data grid.  The 1 search that does not sort in the data has multiple search expressions set - so I have the drop-down to pick what field I would like to search.  The 2 searches that sort properly only have 1 search criteria/expression.

Thanks Robert
Eric V
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Robert,
i have a question about your feature maptip widget when you have a chance. Is it only functional with polygons or can you use points and lines as well? i cant seem to get it to work. thanks for your help as always.
Gerald


Gerald,

   As you can see on the demo live site the police stations are using the tooltip as well and they are points.
I you have any further discussion on that widget please start a new thread as this one is already 6 pages as is.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Robert,
I have found that 2 other searches do sort the results in the data grid.  The 1 search that does not sort in the data has multiple search expressions set - so I have the drop-down to pick what field I would like to search.  The 2 searches that sort properly only have 1 search criteria/expression.

Thanks Robert
Eric V


Eric,

   Nope, I just tested that theory an a layer that had 2 expressions using different fields the data grid still sorted on that layer. I would double check you field names and make sure you have them correct.
0 Kudos
DavidAllen
Frequent Contributor
I'm trying to do a search that invoves an integer field. The expression is:

REACH_Num = '[value]'

But that's not working. Do I need to convert REACH_Num from an integer to text, and if so how is that done? Is it something like the upper() function?

David Allen
0 Kudos