Hi friends,
I am using a load all subfile , and currently i am in in
the third page of the subfile , from third page i have
selected a record and called some other program .on
returning, subfile is being loaded from the frist page. so
can any one kindly suggest me in retaining my third page
after returning. i.e loading from third page.
Answers were Sorted based on User's Feedback
Answer / karthik
Get the rrn when the record is selected and while returning
back to the load subfile, user this rrn for display or load
records starting from the selected rrn. Let me know if u
need more clarity
Good luck!!!
Karthik
Is This Answer Correct ? | 12 Yes | 1 No |
Answer / tthomas
Its just because ur rrn is getting initialized again.. get
the rrn of the first record in the third page and display
it.
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / guru
Hi Friend,
Use SFLRCDNBR to achieve this in load all subfile or if you
are using load on demand (SIZE > PAGE) then clear the page
every time and load the specific page you want.
Is This Answer Correct ? | 7 Yes | 2 No |
Answer / mithun paul
Before call the program store the rrn and after retuning
from the program move that rrn number to variable of
SFLRCDNBR and write the subfile. It shows the subfile in
that particular page not the first page.
Mithun Paul
KMG Infotech, Kolkata
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ld123q44
Just before you make the call make a note of (a) the
relative record number of the first record on the page and
(b) the relative record number of the record you are making
the call from.
Now, when you to redisplay the page after the call you can
start the display either from rrn from (a) from rrn from (b).
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / jay
you may use SFLCSRRRN to know the record in which the
cursor was lying when the control came to program
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / pankaj
You have to get the SFLRCDNBR number when the record from
subfile is select. and when you comeback to it will show
third page as a first page and by doing page up/down you
can see other records.
Is This Answer Correct ? | 2 Yes | 0 No |
How can we override a file during runtime in rpg?
1) How to define keyed file in CL pgm. 2) How can i read particular records in CL pgm from database file.
1.find most occurrences of a character. for exm: input:aaabbbbdddddyyy output: d 5 times how can i get that?
How to update only a field of a PF in an RPG program. I don't want to update the record, only one field.
What is the difference between copybooks and subprocedures in as400?
what are the parameters of jobd?give in detail.&what are the parameters of subsystem...????
What would be the effect on the field where reverse image, underline and high intensity?
what is use of sflnxtchg and use of MDT(modify data tag).both r same r not and can we use these on dspf and subfile.
Difference between creating a report using Printer file and WRKQRY(Query Report) ?
How can we search particular records from the database file in RPG. For example, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular 'NAME' field. How can we do the above using SEARCH criteria other than using the IF cond?
we hav job which is running as batch. it takes atleast 06hours to complete tht job. bu i wana do tht job with in 3hours.........? so plz post ur answers
parameters cannot be passed in which one??