× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello,

Here is how we handle this over here:
- we only use page at a time subfile (no load all)
- We retain in a variable the key of the first record of the subfile
- After the operation that might affect the records in the subfile (add, remove, change), we just reload the page from the value that we kept in a variable

We developed a series of routines to manipulate page at a time subfile and now we do not ever need to use load all subfile. That solves a lot of situation, like the one you are inquirering about (and the position to function is also handle by this approach).

Hope this help


Denis Robitaille
Chef de service TI - Solution Entreprise
Infrastructure et Opérations
Cascades Centre des technologies,
412 Marie Victorin
Kingsey falls(Québec) Canada J0A 1B0
T : 819 363 6130





-----Message d'origine-----
De : MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] De la part de Stone, Joel
Envoyé : 19 août 2016 13:38
À : Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Objet : subfile screen navigation: how to handle an "Add record" function

PGMA displays 10 records in a file using a subfile. Then the user pages down 4 times to show the last 10 of 50 records.

When the user presses F9 to add a record, I call PGMB to do that work, and then return to PGMA.


In PGMA, I would like to redisplay the last 10 of the now 51 records. Or maybe show the last 10 of 50, and a page-down will reveal the newest record.

It should also function properly if the user is in the middle of 50 records in the subfile, and does an add of the 51st record.


What is a good method to handle this? Or what is a common method that works?

Upon a record being added, do you re-load the SFL from the start? And load all 51 instead of loading the usual 10?

Other ideas?

Thanks!


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 by midrange.com 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.