|
Sounds like what you've done is place fields in the SFLCTL record both
above and below the subfile. This is a nono. It causes the subfile to
malfunction as you've witnessed.
In the SFLCTL record you should have editable fields above, nothing below
the first line of the subfile. Have a third record (Carol eluded to this as
"the trailer") with yet more editable fields on it. Usually the trailer
clears the screen, all other have OVERLAY on them.
then
< clear/fill subfile as appropriate >
write trailer
write ctl01
read trailer
read ctl01
readc s1
dow not %eof (filename )
readc s1
enddo
or something like that.
On Fri, Sep 25, 2009 at 16:51, Carel Teijgeler <coteijgeler@xxxxxxxxx>wrote:
Which is true:
a) S1 should be filled in with each SFL record.
b) the data in S1 applies to all SFL-records
a) make a SFL-record over multiple lines with all the input capalble
fields
required.
b) put the input capable fiels of S1 in your trailer or SFLCTL.
You say you attached a screen shot, but attachments are removed by the
manager. And your text is ratrher vague on that issue. A SFL record and
other records overlapping is only possible with windows and both windows
are input capable. If you use windows then you have to move the cursor to
the SFL-window, as the active part of the screen is the last written S1.
With regards,
Carel Teijgeler
*********** REPLY SEPARATOR ***********
On 25-9-2009 at 14:53 Jyoti Sambhar wrote:
I have a requirement of showing a subfile (editable) and some otherrecord
simultaneously on a single screen. Subfile records and other record are
overlapping. I have tried following, but this is making SUBFILE recordsuneditable. Please suggest
the data I have broken into subfile control record (CTL01) and S1. All the
Screen: As Attached. Data in red border needs to be a subfile , Rest of
fields should be editable DSPF:RPGLE code displays S1 & CTL01 portion in editable mode but SFL01 fields
RPGLE program :
C write(e) ctl01
C write(e) S1
C read(e) ctl01
C read(e) s1
OVERLAY keyword is specified in CTL01 & S1 record format in DSPF. Above
are not editable.
--
This is the RPG programming on the IBM i / System i (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 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.