Error Reset Key

1780 pts.
Tags:
RPGLE
I have a request that I have not done before. In my display file I use the IBM messages when there is an error. When the screen is displayed again it displays the field in question highlighted and then the user has to press the error reset key. Is there away so the user does not have to press the error reset key and use still use messages in the display file without having to generate my own message line?  Basically eliminate the error reset key from coming up the way I have the display file.  Thanks

Answer Wiki

Thanks. We'll let you know when a new response is added.

Ron

Tell me how you’re getting the errors out there…
I don’t think you can use any of the standard error outputs like errmsg or errmsgID.
I think you will want to add
1. DSPATR(RI) and DSPATR(PC) on the field with an indicator
2. Create an output field for your “error”
2.1 if you’ve been using errmsgID use MSGID keyword with that field and same indicator
2.2 if you’ve been using errmsg then it’s an indicator and a string to dsplay.
DSPATR(RI)??? if you want the message to be

If you have been using a message subfile, I think you will have to use a “regular” one line subfile

Phil
——————————————————————
I’m using this.
A 49 ERRMSG(‘Phone Number Required’)

I do not want to create a output field. I know I can do that. I want to disable the error reset key from happening. So the user does not have to hit the error reset key but it still shows the error at the bottom WITHOUT a new field. Any ideas. Of course I don’t want this to be easy. Thats why I posted it on here. I’m trying to think outside the box but I can not think of anything ….Yet…
Thanks
Ron
—————————————————–
I think I’ve done my dump .. time for someone else to “step up to the plate”.
Phil
—————————————————–
Ron
Please let us know if the invite does the trick.
Phil
———————–
Ron

Thanks for the feedback.
Tape down the reset key … no that’s way to easy.
I don’t think it’s going to happen with edtmsg or edtmsgid keywords.

Phil

—————————

You can do everything else on the 400 why not this…:+)
I might have to break down and use a field to display the errors. I don;t want too but I might not have any other choice.

Ron
********************************************************************************
********************************************************************************

OK – here’s my last shot —————— the impossible takes longer …
1. add DSPATR(PC RI) with indicator control to your field
2. add your message field or message text to the record on line 24 controlled by an indicator.
that should work when you don’t have another error to show.

Looks like that’s what Yorkshireman recommended.

Phil
********************************************************************************
********************************************************************************

Phil

Discuss This Question: 6  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
  • Teandy
    Ron, Try this thread: http://archive.midrange.com/midrange-l/200706/msg00013.html
    5,860 pointsBadges:
    report
  • RonKoontz
    So I just need to put the INVITE keyword in DDS? Never knew about the "INVITE" keyword
    1,780 pointsBadges:
    report
  • Splat
    That keyboard lock is one of the reasons I avoid ever tying an error message to a specific display field. Besides, it eats up indicators. I prefer to use a message subfile & use indicators just to control the display attributes of the field.
    7,455 pointsBadges:
    report
  • RonKoontz
    It did not work. Any other ideas?
    1,780 pointsBadges:
    report
  • Yorkshireman
    have you tried avoiding the ERRMSG keyword? just place the field in reverse image, and output a helpful message at the bottom of the screen.
    5,580 pointsBadges:
    report
  • RonKoontz
    Well of course that will work. I don't want that to work. I want to use the ERRMSG so it uses the built in message line. I need all the room I can get on this particular screen. And I can not clean it up or make a second screen on this.
    1,780 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