Query Task Order By Fields
Does anyone know how to get a list of fields into the Order By argument of the Query Task activity? ESRI documentation says it should be a string, but the workflow activity has it as a Generic.IList<OrderByField> object. I can't find a syntax that will work. It will not accept a string argument with a comma deimited list of columns.
Any help would be appreciated.
-
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 -
Sorting requires ArcGIS Server 10.1 or higher, could this be the issue?
0 -
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 -
Sean, I know it is old post. Did you find the answer? how to set the order by in the query task? 0 -
It should work as described above. The field name could be case-sensitive? An alternative is the SortFeatureSet activity. 0 -
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 -
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.
Kommentare
7 Kommentare