× 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.



I always reload the subfile...unless you have a slow
network or you have 1000 lines of selection logic,
it's not likely going to be a noticable impact.

If you always know that the record will drop to the
bottom of the list, save the RRN of the current
display (e.g. record 41) before making the call,
reload the subfile and add 1 to the saved RRN before
sending the control file.

Terry


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Stone, Joel
Sent: Friday, August 19, 2016 1:38 PM
To: Midrange Systems Technical Discussion
Subject: 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.

Confidentiality Notice: The preceding e-mail message (including any attachments) contains information that may be confidential, protected by applicable legal privileges, or constitute non-public information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful.


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.