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



Michael,

Thanks for the explanation. I knew you could set the size and page values for a subfile to the same, just never saw any reason to do that. Which explains my lack of experience in this area.

Obviously, in a, say, 10 x 10 situation, one would have to do some extra "stuff". Though if Sunny really wants to page up and down, as he said (or I heard), it would be easier with say a 10 x 11 definition for the subfile. I mean, I can see a 10 x 10 if one wanted to process the current subfile options and be done with it, but not if one wants to do paging. Maybe there's an advantage to this in some situations that I just never encountered.


Thanks.


        * Jerry C. Adams
*IBM System i Programmer/Analyst
B&W Wholesale Distributors, Inc.* *
voice
        615.995.7024
fax
        615.995.1201
email
        jerry@xxxxxxxxxxxxxxx <mailto:jerry@xxxxxxxxxxxxxxx>



Michael_Schutte@xxxxxxxxxxxx wrote:

Jerry, a page-at-a-time subfile is controlled by the program and not by the
subfile.  The max number of records in the subfile would only be whatever
you set it be (lets say 10).  Not really sure how I could explain this
better.

In order to load the next page, you (well we do) would have to clear the
subfile and write out 10 new records.   Thus causing the option column to
be cleared and lost if not processed before going to the next page.

I'd imagine that you could write the first 10 records, wait for the page
down to be pressed, the program will then load the next 10 records.  Now
the subfile will handle the page down until the end of subfile is reached.
If at the end of the subfile and page down is pressed again, control will
be passed to the program and the next 10 records could be loaded.  Now you
have three pages loaded in the subfile.

But I don't see this as a page-at-a-time subfile. But more like a subfile
that grows with you. However, it would do what you just explained, allowing
you to press page up and page down without losing the option column.  I
hope that was clear.

Now if there's some other way to keep that data, I'm all ears. :-)...



Michael Schutte
Work 614-492-7419
email  michael_schutte@xxxxxxxxxxxx


Jerry Adams <jerry@bwwholesal e.com> To Sent by: RPG programming on the AS400 / rpg400-l-bounces@ iSeries <rpg400-l@xxxxxxxxxxxx> midrange.com cc Subject 04/18/2006 02:24 Re: prob in subfile... PM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@midrang e.com>



Well, I'm confused as to the actual requirement.  I use both
page-at-a-time and load-all subfiles with option/select columns.  Type
and option (such as '2' or '4') on the subfile line, press PageDown /
PageUp to my heart's content, and the previously entered options are
still there until the /Enter/ key is pressed to process the options.


No special coding.  The option field is in the subfile format and is
defined as type 'B' (input/output).  The program doesn't even do
anything (other than load the next page stuff) until the /Enter/ key is
pressed.  Admittedly I am using RPG IV, not RPG/400, but the process is
the same in both cases.


So, somewhere I'm guessing that the requirement is (to me, anyway)
ambiguous.


            * Jerry C. Adams
*IBM System i Programmer/Analyst
B&W Wholesale Distributors, Inc.* *
voice
            615.995.7024
fax
            615.995.1201
email
            jerry@xxxxxxxxxxxxxxx <mailto:jerry@xxxxxxxxxxxxxxx>



Michael_Schutte@xxxxxxxxxxxx wrote:

What do you mean by single page subfile?  Are you doing a load at once
subfile or page at a time subfile.  If doing a page at a time, why not
process the option field before loading the next page.  If you do a load
at
once subfile, the values will be saved.

Michael Schutte
Work 614-492-7419
email  michael_schutte@xxxxxxxxxxxx




I think you just need to make sure that this options field keeps the
entered value there as they scroll.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of sunny singh
Sent: Tuesday, April 18, 2006 12:43 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: prob in subfile...

hi  all. i am using a single page subfile , as the first screen in which
the user can key in option 4,  and can select multiple  records on all
by page down and page up..
now i want to know that weather is it possible '''
that the options are visible doing page up and page down.....
in a single page subfile......(rpg 4000)
if possible how..
have a nice day..



---------------------------------
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low
rates.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


This message contains information proprietary to our company. It is
intended to be read only by the individual or entity named above or their
designee.
Any distribution of this message or the information contained herein
without written permission from our company is strictly prohibited. If the
reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby
notified that you have received this document in error and that any
review,
dissemination, distribution, or copying of this message is strictly
prohibited. If you have received this communication in error, please
notify
us immediately by e-mail, and delete the original message.



--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.






--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.