Select to view content in your preferred language

Query Widget 3.0 sort results

3408
13
Jump to solution
09-27-2012 05:25 AM
NedCake
Deactivated User
There were code samples available at previous versions of SFV to enable sorting in this widget. Nothing yet at version 3.0. Any help would be appreciated.

Ned Cake
TLCGIS
Tags (2)
0 Kudos
13 Replies
PeterHoffman
Deactivated User
The sort used to work using api 2.X and the other sort function. I am using sdk 4.6 and I used a clean version of the query widget code.
Here is my xml code:

<?xml version="1.0" ?>
<configuration label="Suffolk County Buildingss">
    <layer>http://gistestdev:6080/arcgis/rest/services/CountyBuildings/MapServer/0</layer>
    <query>1=1</query>
    <titlefield>BUILDINGNU</titlefield>
    <linkfield></linkfield>
    <fields all="false">
        <field name="BUILDINGNU" alias="#"/>
        <field name="CURRENTUSE" alias="Name"/>
        <field name="COUNTYCOMP" alias="Complex"/>
         <field name="CURRENTSTAFF" alias="Current Staff"/>
    </fields>
      <filterfield>
        <name>BUILDINGNU</name>
        <alias>Filter by Building #</alias>
    </filterfield>
    <refreshrate></refreshrate>
    <zoomscale>25000</zoomscale>
</configuration>
0 Kudos
MarcWeinshenker1
Regular Contributor
I only see a couple of functional differences in your config file from what I am doing, and they may or may not be relevant but could be worth experimenting with.  For the Query I use <query> OBJECTID > 0 </query> to get all results.  And I don't use any filterfield.  My data source, again not that I see how it might matter, is from SDE.
0 Kudos
PeterHoffman
Deactivated User
I made the changes you suggested w/o luck.
Maybe api 3.1 will have this functionality builtin.
Thanks for your help.
0 Kudos
AngieAllison
Emerging Contributor
WHERE IS THIS QUERY WIDGET?? i am trying to get a query widget for flexviewer 3.0 and not finding one.
0 Kudos