Select to view content in your preferred language

How to get the most recent features

945
1
10-07-2016 08:44 AM
KenGorton
Esri Contributor

How do I set up a FeatureLayer to only fetch the newest records in the Qt Runtime API. The feature layer has a timestamp field that reflects the moment each feature was created. I am more interested in seeing the newestfeatures rather than the oldest, but by default the feature layer displays in table order which is to say the oldest features to newest. But it runs into the service's feature query limit long before it ever gets to the newest features.  Can I set the definitionExpression parameter with something like "ORDER BY Timestamp DESC" or is there a different approach I should take?

0 Kudos
1 Reply
LucasDanzinger
Esri Frequent Contributor

Hmm, is this available from the REST side? If so, then it should work. Otherwise, it may be an enhancement we need to put in. 

0 Kudos