Michelle, Do you mean that you manually (in the code made the button not visible) or you used the method of setting the multipartgraphicsearch to false in the XML?
I was able to do both, actually, but when I couldn't tell what was affecting the changes I started over with a fresh version of the widget. However, the search button does not go away when I change the <multipartgraphicsearch> tag to false in the XML. At this point I've edited nothing else in the widget other than the XML's. The search does not execute automatically either, so I don't know if I'm missing something obvious.
The search will be performed on the first layer and first expression of that layer in yourSearchWidget.xml file by default if you do not specify otherwise.
Michelle, No the top layer in the config file is not the only one that can be searched.http://gislap134/FlexViewer3.0/index.html?search=R1&slayer=0&exprnum=0&showdatagrid=true
//loop over all the properties in the tempPropertyArray distinctValuesCollection.addItem({value: " ", label: " "}); for (var propertyName:String in tempPropertyArray) {
curious how one is supposed to make the popup be the same as clicking on the map?
The popup shown from the search results and datagrid is the same popup that getsdisplayed when you click on the search graphic on the map.
Rhett, I should have explained this one better. My statement notice my bolded text, search graphic not a popup.xml that you define in the main config.xml for a layer.
As far as the uniquevalsfromfield adding a blank I had this fixed at one point them made some more code changes to account for a possible empty string value being in the data and I broke it again. But I now have it fixed again. Please re-download the widget.
* Fixed bug where if more than one uniquevalsfromfield was used in an expression Only one would populate the dropdown.
Rhett, This confusion is why I was hesitant about adding the "all" to the unique value list when you asked for it. So what I ended up doing is when I see the all chosen in the unique value dropdown I just do a 1=1 query (basically giving you everything as that is what all unique values would be).
BTW Version 3.0.14f is now available with the fix for the first query layer having multiple uniquevalsfromfields
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.