I have a search widget that searches a dynamic layer containing 2 feature classes (in a grouped layer in the .mxd). I can get 1 of the layers to search correctly (called "Aliases" below), and clicking on the results zooms to their location and displays the popup. For the second layer ("Primary Streets"), it performs the search and returns the correct records, but clicking on a result does not activate the popup or zoom to the feature's location. Perhaps another set of eyes can find an error in my coding? Or maybe I am missing something else?
Thanks for the help folks!
My .xml for the search widget is:
<layer>
<name>Aliases</name>
<url>http://xyz.xyz.xyz/ArcGIS/rest/services/CCC_AliasTool_v10/MapServer/1</url>
<expression>AliasName LIKE '[value]'</expression>
<textsearchlabel>Search by Alias Name [ Example: Main Street or Main% ]:</textsearchlabel>
<titlefield>Aliases</titlefield>
<linkfield></linkfield>
<fields all="false">
<field name="AliasName" alias="Alias Name"/>
<field name="PriStName" alias="Primary Street Name"/>
</fields>
<symbol>
<simplelinesymbol color="0x00FFFF" width="2.8"/>
</symbol>
<orderbyfields>AliasName ASC</orderbyfields>
</layer>
<layer>
<name>Primary Streets</name>
<url>http://xyz.xyz.xyz/ArcGIS/rest/services/CCC_AliasTool_v10/MapServer/2</url>
<expression>StreetName LIKE '[value]'</expression>
<textsearchlabel>Search by Street Name [ Example: Main Street or Main% ]:</textsearchlabel>
<titlefield>Primary Streets</titlefield>
<linkfield></linkfield>
<fields all="false">
<field name="StreetName" alias="Street Name"/>
<field name="ExternalSt" alias="External Street Key"/>
</fields>
<symbol>
<simplelinesymbol color="0x00FFFF" width="2.8"/>
</symbol>
<orderbyfields>StreetName ASC</orderbyfields>
</layer>