Select to view content in your preferred language

Flex Veiwer-Search Widget-Only one column allowed in field name tag.

412
1
10-27-2010 05:30 AM
EddBlaine
Emerging Contributor
I am working with the XML config to change parameters for the search widget. Basically, I would like more than one column to show up in the results pane when a query is executed. Here's my code snippet:

<layer>
            <name>Parcel Owner</name>
            <url>http://199.201.190.110/ArcGIS/rest/services/Parcels/MapServer/0</url>
            <expression>CUO1LastName = '[value]'</expression>
            <textsearchlabel>Owner Last Name:</textsearchlabel>
            <graphicalsearchlabel>Use one of the graphical search tools to select parcels</graphicalsearchlabel>
            <titlefield>CUO1LASTNAME</titlefield>
            <linkfield>WEBLINK</linkfield>
            <fields all="false">
        <field name="CUO1LASTNAME"/>
            </fields>
        </layer>

When I try to use a comma separator in the field name tag under <fields>...I get returned records with no text at all. It works OK if I just list one column name under the field tag. Any clues?
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Edd,

   All you have to do is add another field element

<fields all="false">
<field name="CUO1LASTNAME"/>
<field name="FIELD2"/>
</fields>
0 Kudos