|
From your initial post, I assume that you are not using a descendingindex. So there are basically 2 methods left (I know that several
From what you describe, I suspect one of those 2 mistake took placewhen the program was copied from it's tremplate:
Hello Michael...<Blake.Moorcroft@xxxxxxxxxx> 2009-03-30 14:14 >>>
Hello all...anyone's
I'm running into a really weird situation and I'm wondering if
ever encountered it before.subfile
We're generating a subfile with 10 records (one page at a time,
size and page = 10), nothing fancy, with both regular and hiddenfields.
There are no issues with writing the records themselves.at
When paging down (using the roll-up), the records proceed forward 10
time in ascending sequence.in
If, however, the page up key (roll down) is used, the records appear
reversed order - the correct records appear, just out of sequence.I've
included an example of what's happening:displaying
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
them in the proper way.any
This subfile procedure is used in a number of programs. I use it
we need a subfile - basically cloned code. None of the otherprograms
that use this code are having the same issue - there are around 40fill
different programs using it. The logical that is used during the
this particular subfile is not unusual - a three key index withascending
controls on the keys - there are no omit or select functions. Ihave
checked the logical to verify the index properties.how
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
is writing the records, verifying the contents of each record'sfields
the relative record number associated to the record being written -there
are no issues and the relative record number is being properlyassigned.
mailing
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
--
This is the RPG programming on the IBM i / System i (RPG400-L)
To post a message email: RPG400-L@xxxxxxxxxxxxThis is the RPG programming on the IBM i / System i (RPG400-L) mailing
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 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.