AnsweredAssumed Answered

OrderBy not working on Qt

Question asked by marcb_al on Feb 10, 2017
Latest reply on Feb 16, 2017 by LDanzinger-esristaff

Hi all,


We're tying to obtain the last 10 records added to a Feature Layer.

We're using OrderBy to accomplish this task but it's not working.


Please, any help is more than welcome.



               id: paramsQuery

                whereClause: "1=1"

                maxFeatures: 10

                orderByFields: [ OrderBy { fieldName: "OBJECTID"; sortOrder: Enums.SortOrderDescending} ]







qml: OBJECTID 7959 IDInstalacion SAN000001A

qml: OBJECTID 7960 IDInstalacion SAN000002A

qml: OBJECTID 7961 IDInstalacion SAN000003A

qml: OBJECTID 7962 IDInstalacion SAN000004A

qml: OBJECTID 7963 IDInstalacion SAN000005A