Select to view content in your preferred language

Query Widget Bugs

2504
5
01-07-2011 12:08 PM
JonFisher
Emerging Contributor
Hi,

I'm having a few odd problems with the Query Widget:

1. The dateformat attribute seems to be ignored in the xml. For example, "<field name="LOCALTIME" alias="Time & Date" dateformat="MMMM DD, YYYY"/>" still returns "Time & Date: 23-Aug-2010 11:09:05". I'd really like to be able to show a date without having to display the time. I've tried several formats from http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/formatters/DateFormatter.html#... with no luck.
2. Fields which end in an underscore (e.g. COMMENT_) do not appear to work as a filterfield. I've tried this with two layers, in one case the field actually filtered on is the field before the specified filterfield in REST, in the other cases the field actually filtered on is the field after.
3. A search for a single digit (e.g. "4") in the filter returns results that match any of the fields returned, not just the filterfield. For example, "4" will find records with a 4 in the date field, even if there is no 4 in the filterfield.

Has anyone experienced any of these problems? Can anyone send me an example where dateformat from the xml is working properly? I don't have my application (or some of my map services) available on a public server yet so I'm not sending example links.
Tags (2)
0 Kudos
5 Replies
MehulChoksey
Esri Contributor
#1 - Works if the date returned by server is in milliseconds(starting v10 of ags server). To verify, look at pjson format on the server.

#2 and #3 Thanks for reporting these bugs. These have been entered in bug queue.
0 Kudos
NathanThompson
Emerging Contributor
I'd like to add another potential one here.

I am using the Query Widget (2.2) to query all my towns and villages. Successfully returns the features I want. However, if I have just one field set in the config for titlefield, returnfield & filterfield, then I never receive any filtered results. Using the following section of config is how I can "break" the filtering:

<titlefield>ENAME</titlefield>
    <fields all="false">
      <field name="ENAME" alias="Name"/> 
    </fields>
    <filterfield>
      <name>ENAME</name>
      <alias>Filter by City or Village Name (Eg: Doha )</alias>
    </filterfield>

If I leave <titlefield> blank, then the filter still fails (because ENAME is the PrimaryDisplayField).

But if I put random text into titlefield, like <titlefield>Hamburgers</titlefield>, then the filter works correctly.

Kind Regards
Nathan
0 Kudos
JonFisher
Emerging Contributor
#1 - Works if the date returned by server is in milliseconds(starting v10 of ags server). To verify, look at pjson format on the server.

#2 and #3 Thanks for reporting these bugs. These have been entered in bug queue.


Thanks! We're still running 9.3.1 but I've confirmed that the DateFormat field works properly when using a service from AGS10.
0 Kudos
KeithBornhorst
Deactivated User
1) Marker/line/fill symbol configuration file nodes are ignored. The code is trying to load them as if they were attributes (configXML.symbols.simplelinesymbol.@color) instead of nodes (configXML.symbols.simplelinesymbol.color).

     ** Ignore (1), please. I must have incorrectly added nodes/sub-nodes the first time instead of attributes.

2) I tried to set the simplefillsymbol alpha to 0.0, but the code ignored it. My guess is that it's my 0.0 alpha value is being evaluated as FALSE and the second expression is used.

3) Documentation error. "The Query Widget" documentation lists the <symbols> node has having an <outline> subnode, but the code expects <outline> to be a child of <simplefillsymbol>

Thanks,
K
0 Kudos
MehulChoksey
Esri Contributor
Thanks Nathan and Keith for reporting these bugs.

I have added bugs #2 and #3  to as well as  filter bug.
0 Kudos