Select to view content in your preferred language

Bug in Search Widget for 3.1 or just me?

2052
3
03-20-2013 11:15 AM
MattSimmons
Deactivated User
I have Flex Viewer 3.0 installed on a server running 10.1.  I added a web service to a web app in this 3.0 Flex Viewer.  Then I added the search widget, and I can select features using the geometry selection tools just fine.  The selected features and attributes show up in the results.

I then install 3.1, and upgrade this application.  The search tool no longer works.  There are no changes to the service or anything else I can imagine.  Furthermore, as a test, I uninstalled the Flex Viewer, deleted the flexviewers folder completely from inetpub/wwroot.  Then I freshly installed Flex Viewer 3.0 and re-set up the application same as before, and the search by geometry works.  Then I install 3.1 and again, the search no longer works.  It just doesn't select anything.  A bug?

Also, in both cases (3.0 and 3.1) the "Select by Attribute" icon doesn't exist in my Search widget.  Everywhere in the forums and Help, I see screenshots of it (Select Features and Select Attributes) but I don't see it in my installation.  Anybody else seen this?
Tags (2)
0 Kudos
3 Replies
JeffPuuri
Emerging Contributor
You are not totally alone.  I am trying the 3.2 version of Flex Viewer and configuring via Application Builder and 'Select by Attributes' is not enabled in the Search widget for me, either.  However I am able to Select by Geometry just fine.  But in the What's new for 3.2 results from the Search Widget are supposed to show up in the Attribute Table and that is not happening either for my graphically selected features.  I wish I had an answer for your post, but I wanted to respond to provide a bit of a sanity check for you since someone else is seeing a similar issue, and also in hopes that someone else can reply with a configuration fix that can help us both.
0 Kudos
MattSimmons
Deactivated User
Well, whether or not this is a bug I'm not sure, but thanks for replying.

I found a workaround.  I went to github and pulled up the Search widget xml from one that works and just copied the contents of the xml to mine.  All I had to do then, was change the URL to point to my own web service and change the searchable fields and it's working.

https://github.com/Esri/arcgis-viewer-flex/blob/develop/src/widgets/Search/SearchWidget_Louisville.x...
0 Kudos
JeffPuuri
Emerging Contributor
Darn, I found another solution earlier today and totally forgot to update this thread until I just your update.  I like your approach of going to the source code.  My approach used Application Builder.  In my Search Widget configuration I had not set a value in the Expression input field.  I had to enter "ATTRIBUTEFIELDNAME like '[value]'" (without the double quotes) where ATTRIBUTEFIELDNAME is an attribute field name in my feature class.  Once I did that the Search By Attribute icon shows up in the Search Widget.  Further by checking the box in the Search Widget configuration labelled 'Add Result as Operational Layer' I now see a tab in the Attribute Table called 'Search' that is populated with just records returned by my by spatial or attribute search.

Again this is at Flex Viewer v3.2.  I'd be curious if either of these would solve any similar problems being experienced at 3.1.  Maybe two solutions found in one day?
0 Kudos