Saves the order by defined by
$orderby when creating an entity set (e.g.,
When you create an entity set, you can save the sort order along with the filter that you used to create it as a measure of security. If the entity set that you created is removed from 4D Server's cache (due to the timeout, the server's need for space, or your removing it by calling
$savedorderby to save the order you defined when creating your entity set, you then pass
$savedorderby along with your call to retrieve the entity set each time.
If the entity set is no longer in 4D Server's cache, it will be recreated with a new default timeout of 10 minutes. If you have used both
$savedorderby in your call when creating an entity set and then you omit one of them, the new entity set, having the same reference number, will reflect that.
You first call
$savedorderby with the initial call to create an entity set:
Then, when you access your entity set, you write the following (using both $savedfilter and $savedorderby) to ensure that the filter and its sort order always exists: