You've clearly never watched a confused user spend time trying to find the record they were looking at that caused them to want to sort/filter the subfile to see "how many others are like this".

My personal take is that once you have displayed a list of items and the user asks you to sort it or filter it - then you should be sorting/filtering _that_ list - not a new one.

That's why I always build subfiles in memory and sequence/filter internally not by re-doing the query which is what your approach results in.

Of course the user should always have the option to refresh the list - but I don't think it should ever be refreshed "behind their back".

On Dec 30, 2019, at 2:56 PM, Booth Martin <booth@xxxxxxxxxxxx> wrote:

Why do a position-to when sql offers "like" so you can easily use wildcard filters to provide human-scale load-all subfiles, even with huge files?

Specifically _because_ underlying PF data may change you, as the designer, can build in frequent refreshes so that users don't page around in hours-old data.

Load-all subfile programs are around 200 lines of code, easy to reuse. (I have a 2-column load-all subfile program with 235 lines. It includes wildcard filtering on either or both columns, and either column may be sorted in ascending or descending order. 235 lines including headings and comments.

On 12/30/2019 8:56 AM, Patrik Schindler wrote:
Because doing position-to in a load-all is cumbersome.
Because data in the underlying PF can change and completely reloading even so often seems to me a waste of resources.
Because if you have one paged-SFL coded properly, it's relatively easy to reuse that code for another SFL.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support by shopping at with our affiliate link:

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.