Select to view content in your preferred language

Enhanced Search Widget version 2.5.1.2 for FlexViewer 2.5

1123
5
Jump to solution
01-19-2012 08:08 AM
MattGiles
Deactivated User
Hi Robert,
I am using your enhanced search widget and noticed that the layers in the 'search layer' dropdown (Louisville zoning, parcels, etc.) are not in my application. Then i checked in the .xml and noticed that the layers that exist in the dropdown are hardcoded into the xml...
Does this mean that, if i have 50 layers in my application, i have to hardcode each into the widgets xml so they can be queried? There is no way to update the dropdown list dynamically as layers are added / removed, made visible/not visible??

I have noticed that layers are hardcoded into other widgets xmls as well...hardcoding layers into xmls seems very time consuming when alot of layers exist in an application...
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
M Giles,

   It is possible as almost anything is in flex, but you have to think about your users as most will not have any training on how to form a query or how to operate a more advanced widget like that. As far as online web mapping you need to forget what you know and base all your decisions what your least experienced user will know. That is the whole reason you predefine (hard code) all this so your user doesn't have to think about it.

If you are just stuck on wanting that advanced flexibility than look at this widget:

http://www.arcgis.com/home/item.html?id=20ed6af9ab204548bbf092d51b51fef8

Don't forget to click the top arrow (promote) and to click the Mark as answer check as shown below:

View solution in original post

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
M Giles,

   How else would you specify which fields you want returned and what is the query expression that should be used for that layer. You will probably not need to query all 50 layers anyway.
0 Kudos
MattGiles
Deactivated User
OK sounds good...

I was just wondering if it could be adapted to be like the query function in ArcMap where search layer dropbox is populated with all layers in the project / application. Once a layer is selected, the search layer field is populated with all the fields from the layer selected above..

Thanks for all your help and input!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
M Giles,

   It is possible as almost anything is in flex, but you have to think about your users as most will not have any training on how to form a query or how to operate a more advanced widget like that. As far as online web mapping you need to forget what you know and base all your decisions what your least experienced user will know. That is the whole reason you predefine (hard code) all this so your user doesn't have to think about it.

If you are just stuck on wanting that advanced flexibility than look at this widget:

http://www.arcgis.com/home/item.html?id=20ed6af9ab204548bbf092d51b51fef8

Don't forget to click the top arrow (promote) and to click the Mark as answer check as shown below:
0 Kudos
JeffPerkins
Occasional Contributor
Robert,

How can I style field names differently from the return attributes in the ESeach?

Thanks,
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeff,

   When a thread has been marked as answered I will not be ansering any other questions on that thread. Start a new thread and I will be glad to assist.
0 Kudos