Select to view content in your preferred language

Stumbling Query Widget Beginner...

783
1
11-09-2010 10:08 AM
JohnGarner
Deactivated User
Flex Folks -
   I am pretty new at this and I am trying part by part to get the flex stuff to work "for" me.  Right now I am trying to query one of my data layers.  I am trying to stick with the format of the downloaded flex code, but not having much luck.  I am basing the query off of the police station search from the beginner's download file.

   I want to search for a transformer by its "mapnumber".  The tool currently makes a list of some of my transformers when it opens to its "show all" page.  However, when I go to the query page and enter a number, I get no results.  Even if I use a transformer number that is listed on the "show all" page that the tool opens with, I get nothing.

Looking for some insight...Here is my code:

<?xml version="1.0" ?>
<configuration>
        <layer>http://XXXXXgis1/ArcGIS/rest/services/SystemMaps/LinesTrans/MapServer/1</layer>
    <titlefield>Transformers</titlefield>
    <query>MapNumber like '%[value]%'</query>
    <fields all="false">
        <field name="MapNumber"/>
<Field name="BankKva"/>
    </fields>
    <filterfield>
<name>MapNumber</name>
<alias>Type in Transformer MapNumber(ex-21505015)</alias>
    </filterfield>
    <linkfield></linkfield>
    <refreshrate></refreshrate>
    <zoomscale>5000</zoomscale>

    <info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
</configuration>

Thanks.
John G.
Tags (2)
0 Kudos
1 Reply
andyferry
Emerging Contributor
John,
    Also, it appears to work if you select true <fields all="true">..  -andy
0 Kudos