Ops. You already indicated that the window (WINDOR) is showing.
Hhhmmm. Can you post the code?
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Lim Hock-Chai
Sent: Monday, April 14, 2008 2:46 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Error Message Subfile in a Window
To display any reformat with WINDOW keyword, the window must already
written to the screen.
Looking at you example DDS. You should write the message subfile only
after you have written the WINDOR to the screen.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of David Turnidge
Sent: Monday, April 14, 2008 2:41 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Error Message Subfile in a Window
Hmmm.. Well, I added the WINDOW keyword to the message subfile control
record. "WINDOW(WINDOR)" WINDOR is the record format for the window that
has the positions in its WINDOW keyword.
I already had a SFLMSGRCD() keyword - but may have positioned it
incorrectly. I increased the size of the window by one to make sure I
wasn't bumping into the border.
Now I am blowing up...
Message ID . . . . . . : CPF500A Severity . . . . . . . :
40
Message type . . . . . : Sender
copy
Date sent . . . . . . : 04/14/08 Time sent . . . . . . :
14:33:36
Message . . . . : Window does not
exist.
Cause . . . . . : An attempt was made to display a window record in a
window
that is not currently being
displayed.
Recovery . . . : Either specify a record format name of a window that
is
currently being displayed, or specify a window position in the WINDOW
keyword to create a new window. Then try the request again.
But the window IS showing... ???
On Mon, Apr 14, 2008 at 2:18 PM, Lim Hock-Chai <
Lim.Hock-Chai@xxxxxxxxxxxxxxx> wrote:
You'll need to add the WINDOW keyword on the record format of the
Error Message Subfile control. The parameter of the WINDOW keyword
should be the record format name of the window where you want the
message to appear. You should also use the SFLMSGRCD() keyword in the
Error Message subfile to indicate which line you want the message to
appear.
--
This is the RPG programming on the AS400 / iSeries (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.
--
This is the RPG programming on the AS400 / iSeries (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.