How to display more than 1 error message in a message subfile

45 pts.
Tags:
AS/400 - DDS
AS/400 applications
I currently have a screen that display an error 1 at a time in a message subfile. User can roll up or down to display the next error. I want to be able to display all errors in message subfile in 1 full screen when user hits a function key. Since the message subfile (sflpag=1) already has the errors, is there a way to redisplay them in another subfile (sflpag=10)? Does anyone have example to do this? Thank you in advance.

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 8  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I have a near-full-screen message subfile in one display file, and the example in SFLMSGRCD (Subfile Message Record) keyword in the Information Center shows a 17 line message subfile that begins on line 3 of a display. But that isn't a problem. The problem would be getting messages into the subfile after pressing a F-key.   AFAIK, the current subfile will be empty after you press the F-key, and you will need to work out a way to capture all of the messages before you display the first message subfile. Then after the F-key is detected, you'll have to repopulate the program message queue with those captured messages before displaying the second message subfile.   But maybe someone has an alternative. It'll be interesting to see if anyone has worked it out before now.   Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    I would populate both at the same time.  Then the full screen SFL is ready to use when the funcgtion key is pressed.
    49,540 pointsBadges:
    report
  • TomLiotta
    I would populate both at the same time.   Since these are "message" subfiles, do you have a good method of 'populating' them? If the program has two DSPFs open, both with message subfiles, do both subfiles receive message texts? Is a message subfile populated during the running of general program code? Or is it populated at the time an output operation is done?   Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    Just a thought.  Didn't pass the Tom test.
    49,540 pointsBadges:
    report
  • TomLiotta
    I was hoping you had methods, and I'd learn. Years ago, I might have created a basic OPM program, compiled for IRP output and checked what happened with message subfile output, just in case it exposed some behavior that could be exploited. Now it's an "exercise left for the reader". -- Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    Yes, hopefully someone will step up with a method.
    49,540 pointsBadges:
    report
  • ToddN2000
    Are you looking to have this subfile with errors displayed along with other data?If scrolling through the error messages is a problem, you need to figure out the max number of errors that will show up and make sure display is large enough. Remember it will cut down on any other data on the display. And see if the hastle of scrolling out weights the loss of screen real estate.
    8,215 pointsBadges:
    report
  • philpl1jb
    Todd As I understand it.   The OP was planning to show a single line message file on an input screen.  If the user presses a function key to see more messages the dsplay might show some heading stuff plus the same list of messages but with 15 or so lines of messages per screen page. Phil
    49,540 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following