I'll ask the question I think I need to ask, but also inquire if there is a better way to go about it.
Is there a way to determine the sorts applied to a datasource on a form programmatically? So if a user applies a sort based on 2 different fields, how can those values be retrieved from the query object? I have retrieved values from ranges previously, but cannot seem to figure out how to do it for a sort order without knowing what fields they may have sorted on...
My main objective is to update the filtered and sorted data on a form with a sequence number in the order the user sorted it. So if the user sorted the data by lets say a date, then an item id, I would want to apply a sequence id to the data as sorted on the grid by the user clicking a button. The problem I seem to be having is that when i move the datasource using a next() it seems to be what I want sometimes, but not others, depending on whether or not the underlying field is indexed. Is there any other way/better way of doing this?