|
You need to define a field in the SFLCTL record for SFLRCDNBR. This must be a 4S 0 type HIDDEN field with the keyword SFLRCDNBR specified. This field should be set to a valid record number on the subfile page you want to display. It MUST be at least 1 and no larger than the number of records in the subfile. I usualy set it to 1 for the first page, then on each ROLL, I set it to the LAST record loaded into the subfile. steema@xxxxxxxxxxxxx wrote: HI I have a subfile that I can code as a page at a time. Previous subfiles I did do work, but they are the 'load-all' type, and there is that pause for each BLD. What is happening is that I load a page, and the READ is fine, there is no re-reading there, but the DISPLAY in the first case, it is not displaying the 12 records just read. Later on, it seems to be displaying some of the previous page records. SFLPAG is set to 12 in the D spec. I call this subroutine once initially, and then every time on a ROLL key. Perhaps someone can help me on this. I must be doing something stupid. The code for the BLD is very straight forward: C eval rrn1 = lstrrn C eval *in90 = *off * Load the subfile with one page of data or until end-of-file C do sflpag C read reopclass C if *in90 C leave C endif C eval rrn1 = rrn1 + 1 C eval option = *blank C write sfl1 C enddo * If no records are loaded to subfile, don't display it The ROLL KEY: C when (cfkey = rollup) and (not *in32) C exsr sflbld
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.