I am trying to modify the Search Widget that came with the Sample Flex Viewer 2.0, to search on my own layers. I think I am close, but I continue to get a message that reads: Features selected:0, this happens when I do a graphical as well as text search. My SearchWidget.xml is below. Is there something I am missing for this to work on my rest layers?
Thanks in advance:)
<?xml version="1.0" ?> <configuration> <layers> <layer> <name>SLCo Trails</name> <url>http://gis.slco.org/wwwrest/services/Utah_Trails/Polygons2/MapServer/3></url> <expression>Name LIKE'%[value]%'</expression> <textsearchlabel>Search by Name:</textsearchlabel> <graphicalsearchlabel>Use one of the graphical search tools to select</graphicalsearchlabel> <titlefield>Name</titlefield> <linkfield></linkfield> <fields all="false"> <field name="Name"/> </fields> </layer> </layers> <zoomscale>5000</zoomscale> <info>widgets/InfoTemplates/InfoPopupWidget.swf</info> </configuration>