Marcia, So the way the widget works is that once a search is completed th widget displays the results in the widget results view and when you click on one of those results it will zoom you to that result. If you hve set the layers symbology in the layer tag (as covered in the the extensive pdf documentation), then your symbology for the search results will show as what ever you configured (most of the time people set it to something different than the layers symbology that is already displaying in the map for that layer). If you have made the mistake of providing the wrong symbology type of that layers geometry type (i.e you are search a point layer and you have the layer symbology set to SimpleFillSymbol for a polygon) than it will not draw anything on the map. If you are using the fixed of floating datagrid with the widget than you will also get the option of using the datagrids subselection color (all of this is covered in the pdf and their are examples in the eSearchWidget.xml that is packaged with the widget download).
<layer label="..." type="..." url="..." alpha="..." visible="..."> <sublayer id="1" popupconfig="..."> <widgetconfig name="esearch" file="path_to_subconfigfile" /> <widgetconfig name="identify" file="path_to_subconfigfile" /> <sublayer/> <sublayer id=".../> </layer>
Brent, What version are you running (hold the Alt key and click on widget title)?
Brent, Because you are not using the latest version 3.6.5, all I can do is tell you where to fix the issue in code (as I don't go backwards in releases to fix bugs). I will have this fixed for the 3.6 version. Let me know if you are using the source code and I will let you know where to apply the code fix.
if(searchResultAC.length > 0){ if(typeQ == "layer"){ if(isNaN(zoomScale)){ zoomAll(); }else{ if (map.scale > zoomScale){ map.scale = zoomScale; } map.centerAt(searchResultAC[0].point); } } if(ViewerContainer.urlConfigParams.showdatagrid != null){ if(ViewerContainer.urlConfigParams.showdatagrid == "true" && floatorfixed == "float"){ showGridResults(); } } }
Julia, So are you saying that you can not get the "SF incident" search to work once you have added the widget to your instance of app builder, or are you saying you are having trouble getting your data to work similarly?
Julia, OK, I have a couple of issues that I need to clear up for you.If you are using app builder than you have no need to get the source code from Github (as you don't have flash builder).App Builder does not support managing UI widgets, which the fixed datagrid is. So you will have to add the fixed datagrid to your apps main config.xml manually.The default eSearchWidget.xml is expecting the fixed datagrid because of this part of the xml <floatorfixed>fixed</floatorfixed>. You can get this to work in the App Builder preview if you change that to "float" instead. But if you want your app to look like my live preview site than you will have to add the fixed datagrid manually. You will find the SearchWidgetFixedDG.swf and xml in the widgets folder under eSearch of your app.
<field name="ORIGINSTDATE" alias="Orig Inst Date" gridfield="true" dateformat="MM/DD/YYY" />
p WHISLER, The symbology not showing up would only be related to that fix if you are talking about a URL search. It would be best to show me the layer configuration in your eSearchWidget.xml for the layer in question.
<layer> <token/> <definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>Search Stops APC</name> <url>http://serveripaddress/ArcGIS/rest/services/BusStops/MapServer/154</url> <expressions> <expression alias="Stops APC" textsearchlabel="List with the selected stops and average daily ridership information at stop level, estimated using LYNX Automated Passenger Data collection for one transit bit period."> <values> <value prompt="[Example: 461 for 46E and 462 for 46W or 4%]"> ROUTE = [value]</value> </values> </expression> <expression alias="" textsearchlabel=""> <values> <value prompt=""></value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select List with the selected stops and average daily ridership information at stop level, estimated using LYNX Automated Passenger Data collection for one transit bit period.</graphicalsearchlabel> <spatialsearchlayer>false</spatialsearchlayer> <titlefield>ROUTE</titlefield> <fields all="false"> <field name="BUSSTOPID" alias="Stop Id"gridfield="true" /> <field name="NAME" alias="Stop Name" gridfield="true"/> <field name="ROUTE" alias="Route"gridfield="true"/> <field name="DIR" alias="Direction" gridfield="true"/> <field name="DAY_ON" alias="Ave Dayly ON"gridfield="true"/> <field name="DAY_OFF" alias="Ave Dayly OFF" gridfield="true"/> <field name="NTRIPSAMPL" alias="Number Samples"gridfield="true"/> </fields> <links/> <zoomscale usegeometry="true" zoompercent="2"></zoomscale> <autoopendatagrid>true</autoopendatagrid> <queryattachments>false</queryattachments> <relates/> <symbology> <simplefillsymbol color="0xff0000" alpha="0.5"> <outline color="0xff0000" alpha="0.8" width="2" /> </simplefillsymbol> </symbology> </layer>
<symbology> <simplefillsymbol color="0xff0000" alpha="0.5"> <outline color="0xff0000" alpha="0.8" width="2" /> </simplefillsymbol> </symbology>
p whisler, So your image showed what looks like a point feature yet in your layers XML you are trying to symbolize a polygon... <symbology> <simplefillsymbol color="0xff0000" alpha="0.5"> <outline color="0xff0000" alpha="0.8" width="2" /> </simplefillsymbol> </symbology>
<symbology> <picturemarkersymbol url="/assets/images/i_search.png" height="30" width="30" xoffset="0" yoffset="0" /> </symbology>
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.