Derek,
Hmm... When did this start happening? You either have something really screwed up in your eSearchWidget.xml or you have found a bug no one else has seen. When you say the drop down is empty, is your drop down width extremely small?
Derek,
Which version of the widget are you using? Are you specifying the width and height attributes in the widget tag of the main config.xml for the eSearchWidget?
<widget label="Search" right="15" top="209" preload="open"
icon="assets/images/i_search.png" width="400"
config="widgets/eSearch/eSearchWidget_Whiting.xml"
url="widgets/eSearch/eSearchWidget.swf"/>
Derek,
Ahh... That was what I was looking for. Just add a width attribute to the eSearch Widget in the main config.xml
This is a new Bug in the 3.5.3 version. It will be addressed in 3.5.4.<widget label="Search" right="15" top="209" preload="open" icon="assets/images/i_search.png" width="400" config="widgets/eSearch/eSearchWidget_Whiting.xml" url="widgets/eSearch/eSearchWidget.swf"/>
Dongxing,
This is strange as I get error 400 when using the standard esri search widget when using a joined layer that has a subtype. Actually That is the test case I shared with esri when reporting this bug.
Also strange that you say esris search widget does handle subtype fine as long as there is no join as well.
Whether you leave the Subtype field out of your eSearchWidget.xml field list or not does not matter as esri adds the subtype field automatically in the API when a query is done on a layer that has a subtype defined in its REST end point. The only way to get past that is to hide the Subtype field in the MXD before you publish the map service. Once you hide the SubType field in the MXD and republish the service (with the Join), then version 3.5.3 works just fine as well as older versions of the eSearch.
Why?.. In 3.5.3 Subtypes works and joined tables has worked way back since the 2.x version of the widget.
I have been using the esearch widget for some time now, but I have just run across a problem and I am not sure what is causing the issue. I have published an X,Y event layer to our server on Amazon EC2 which is dynamically reading a SQL table that is updated nightly. But....When searching the event layer
a)uniquevalsfromfield causes all of the search values to not work
b)without the expression uniquevalsfromfield, the widget is only returning the first value it finds
Any ideas? The widget works fine on our internal server(and internal SQL) but not when I transferred the widget. It also works fine on the server when the database was copied to the amazon.