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





If I remember right, you have to issue read statements against each of the records to get their information into memory.



Jay





----- Original Message -----


From: "Booth Martin" <booth@xxxxxxxxxxxx>
To: "RPG programming on the IBM i / System i" <rpg400-l@xxxxxxxxxxxx>
Sent: Saturday, October 27, 2012 4:55:24 PM
Subject: Push button on screen with subfile

Push button on screen with subfile:

Yes, I know green screen is old-school.  But I am old-school, too, so
its OK.  :)

I have a 5250 screen with two subfiles  -  the left subfile lists a few
states, and when a user selects one of those states, then the right-side
subfile is populated with cities from that state.   Then, the user can
select one or many of those cities from the second subfile.  I did this
just as a demo of the use of radio buttons, check boxes, and scroll bars
in an ordinary 5250 green screen.  It works decently.  A screen shot is
at http://www.martinvt.com/Subfiles/Two_Subfiles/two_subfiles.html

I was unable to add push buttons to the Footer of the screen and read
them.  Since I couldn't make it work, that probably means I don't
understand what is happening, and therefore the following explanation
may be very, very wrong.   There are four record on the screen, three
with elements that are input-capable.  But it appears to me that only
one record can be input-capable at a time.  When I have an exfmt line,
only the elements on that record are read.  The result is that a user
can not click the push buttons if either subfile is active.

My question is:  is it possible to read more than one record at a time?




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.