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.
QueryParameters{
id: paramsQuery
whereClause: "1=1"
maxFeatures: 10
orderByFields: [ OrderBy { fieldName: "OBJECTID"; sortOrder: Enums.SortOrderDescending} ]
}
map.operationalLayers.get(0).featureTable.queryFeatures(paramsQuery);
result:
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