40 pts.
 How to display more than 1 error message in a message subfile
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.

Software/Hardware used:
ASKED: October 23, 2012  4:33 PM
UPDATED: October 24, 2012  1:22 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. kglen01   40 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

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

 110,195 pts.

 

I would populate both at the same time.  Then the full screen SFL is ready to use when the funcgtion key is pressed.

 44,630 pts.

 

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

 110,195 pts.

 

Just a thought.  Didn’t pass the Tom test.

 44,630 pts.

 

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

 110,195 pts.

 

Yes, hopefully someone will step up with a method.

 44,630 pts.

 

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.

 4,115 pts.

 

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

 44,630 pts.