1,880 pts.
 Show multiple error messages at the bottom of display file
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

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question. Michael Tidmarsh   11,390 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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

 107,845 pts.

 

But mine is a simple display file, not a subfile.. will the concept works here as well?

 1,880 pts.

 

Your display doesn’t need to be a subfile. You add the message subfile DDS to your display file. Look over the documentation. — Tom

 107,845 pts.

 

Great.. am done with it.. The only issue is second level messages are not getting displayed from the message file

 1,880 pts.

 

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

 107,845 pts.