AnsweredAssumed Answered

How to get the most recent features

Question asked by KGorton-esristaff Employee on Oct 7, 2016
Latest reply on Nov 22, 2016 by LDanzinger-esristaff

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?