Zum Hauptinhalt gehen

Query Task Order By Fields

Kommentare

7 Kommentare

  • Sean McClurkan

    Thanks, Nico.  I applied the argument with the field name, but it still isn't sorting by that field in the results table.  Did I miss a step?

    New System.Collections.Generic.List(Of ESRI.ArcGIS.Client.Tasks.OrderByField)({ New ESRI.ArcGIS.Client.Tasks.OrderByField("OPEN_DATE ", ESRI.ArcGIS.Client.Tasks.SortOrder.Descending) })

     

    0
  • Nico Burgerhart

    Sorting requires ArcGIS Server 10.1 or higher, could this be the issue?

    0
  • Sean McClurkan

    Our ArcGIS Server is at 10.2

    I'm still looking into this, but thanks for the help!  I'm sure it's somehting I'm doing somewhere.  It usually is . . .

    0
  • Hwa Saup Lee
    Sean,  I know it is old post.  Did you find the answer?  how to set the order by in the query task?
    0
  • Nico Burgerhart
    It should work as described above. The field name could be case-sensitive? An alternative is the SortFeatureSet activity.
    0
  • Sean McClurkan
    We did make it work, but since we've moved on to Workflow 5 I can't remember which Essentials workflow we used it in. But it should work as described above.
    0
  • Dan Joyce

    A bit of forum necromancy...the problem was probably a typo with the space at the end of the field name.  

    This pattern worked as described for me.

    It sure is hard jumping back into Essentials Workflows after doing a fair bit of WF5!

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.