|
This works in 39 other programs, from which we may deduce that its aBooth Martin <booth@xxxxxxxxxxxx> 2009-03-30 15:13 >>>
Hello Booth...to a
The subfile procedure is generically constructed so we can apply it
number of different files (kind of like a fill-in-the-blanksoptions).
Most of the files used are well over 2500 records in size.relative
I have already verified through the debug procedure that the the
record number is set to 10 when the first record is read after aSETLL is
used for record positioning, then the process does a READPE, with theRRN
decrementing by one for each record that is read until the subfile is
filled. A subprocedure is in place in case the subfile is onlypartially
filled (say there are only 7 records left before hitting the BOF), in
which case the procedure resets to the top of the list and readsforward.
I've also tried a number of scenarios when paging back and forth tosee if
the RRN is not being properly set, but regrettably, it's resettingexactly
as required for the paging options.records
Have a good day.
Blake Moorcroft
Developer - Corporate
Russell A. Farrow Limited
1980 Ambassador Drive, PO Box 333, Windsor, Ontario N9C 3R4
Bus: 519-966-3003 ext. 566, Fax: 519-966-9870
blake.moorcroft@xxxxxxxxxx
Booth Martin <booth@xxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
03/30/2009 02:10 PM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
To
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
cc
Subject
Re: Subfile reversing display
Standard first question: Would the whole subfile be under 2500
if you did a load all? If so, do a load all and forget the pagingreade
business.
Now, to the issue. (sorry for the above preachment.)
It'd be my guess that the subfile is being loaded in the order the
records are being read. That leads me to believe you may have a
or a read mixed up? Perhaps the setll for the page back is notbeing
set correctly? Or possibly when reading back 20 (or 10) records andthen
reading forward there is mix up?anyone's
Debug might be the quickest way to see what is happening at the
beginning of the page back.
Blake.Moorcroft@xxxxxxxxxx wrote:
Hello all...
I'm running into a really weird situation and I'm wondering if
subfileever encountered it before.
We're generating a subfile with 10 records (one page at a time,
fields.size and page = 10), nothing fancy, with both regular and hidden
at
There are no issues with writing the records themselves.
When paging down (using the roll-up), the records proceed forward 10
ina
time in ascending sequence.
If, however, the page up key (roll down) is used, the records appear
I'vea
reversed order - the correct records appear, just out of sequence.
displaying
included an example of what's happening:
Screen - starting position:
A Record
B Record
C Record
D Record
Screen after paging down:
E Record
F Record
G Record
H Record
Screen after paging up
D Record
C Record
B Record
A Record.
If we were now to hit the page down key again, we would get
E Record
F Record
G Record
H Record
The procedure is pulling the correct records, it's just not
anythem in the proper way.
This subfile procedure is used in a number of programs. I use it
programstime
we need a subfile - basically cloned code. None of the other
fillthat use this code are having the same issue - there are around 40
different programs using it. The logical that is used during the
haveof
this particular subfile is not unusual - a three key index withascending
controls on the keys - there are no omit or select functions. I
howchecked the logical to verify the index properties.
I've checked the clear and display of the subfile and there are no
indicator issues.
I've stepped through the code with the debug procedure and watched
fieldsit
is writing the records, verifying the contents of each record's
and
the relative record number associated to the record being written -
assigned.there
are no issues and the relative record number is being properly
------------------------------------------------------------------------
Any ideas?
Have a good day
Blake Moorcroft
Developer - Corporate
Russell A. Farrow Limited
1980 Ambassador Drive, PO Box 333, Windsor, Ontario N9C 3R4
Bus: 519-966-3003 ext. 566, Fax: 519-966-9870
blake.moorcroft@xxxxxxxxxx
------------------------------------------------------------------------03/28/09 07:16:00
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.238 / Virus Database: 270.11.31/2028 - Release Date:
03/28/09 07:16:00
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.238 / Virus Database: 270.11.31/2028 - Release Date:
As an Amazon Associate we earn from qualifying purchases.
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.