I want to show multiple messages on a DSPF, when user keys page down, I want it to appear one by one. I know we can do this, but now I don't remember exactly. Please give a hint.
Software/Hardware used:
As400 RPG
ASKED:
February 7, 2013 7:04 AM
UPDATED:
February 7, 2013 1:11 PM
To scroll through messages, you would use a message subfile. Descriptions and examples are in Chapter 4 of the Application Display Programming manual, topic ‘Displaying Messages from Subfiles’. Download the .PDF to read the topic. The messages are loaded into the subfile automatically from the program message queue. All messages you send to the queue are loaded. — Tom
But mine is a simple display file, not a subfile.. will the concept works here as well?
Your display doesn’t need to be a subfile. You add the message subfile DDS to your display file. Look over the documentation. — Tom
Great.. am done with it.. The only issue is second level messages are not getting displayed from the message file
Three things are needed for 2nd-level text in a message display: (1) message ID, (2) message file name and (3) message file library. Library can be a special value such as *LIBL if the message file is in the program’s library list.
Show how the messages are sent to the message queue if you can’t determine which element is missing.
Tom