?
Solved

Using ERRMSG and Keyboard Shift Attribute I

Posted on 2009-03-30
4
Medium Priority
?
696 Views
Last Modified: 2012-05-06
The short story is: I have a couple of fields that are Input/Output type in DDS with a keyboard shift attribute of I.  Can the ERRMSG keyword be used on the fields?  

The long version:  We want the users to select the value for two fields using a prompt window (data coming from a database).  The two fields have the Keyboard Shift Attribute set to I to block any input actions except Function keys.  When the user presses F4 the window pops up and they select the data for the field.  The problem is, how can I make sure that they know to use F4 and only F4?  Once on the screen, users try to enter text which causes the "Operator input error occurred" bell and red X to appear.  The display screen does not return control to the program to allow a proper error message to be shown.  Can the Keyboard Shift Attribute be used with ERRMSG?  

Thank you in advance for the solution or a different approach.  It is greatly appreciated.

JS
0
Comment
Question by:NeffRental
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:daveslater
ID: 24026404
Hi
you need to use the CHKMSGID keyword. You can then set a message in a message file "Input not allowed - use F4 for a list"
CHKMSGID(MSG00000 MYMSGF)

Dave
0
 

Author Comment

by:NeffRental
ID: 24032004
I added the CHKMSGID and the error message in the file was not displayed.  My guess it is due to the field being Input inhibited.  What I am trying to do is have an input field that does not allow the user to key anything in.  They will only be allowed to use F4.
0
 
LVL 14

Accepted Solution

by:
daveslater earned 1000 total points
ID: 24032846
Ok what I would do is have a single byte dummy field next to the Input field, have it as an auto record advance so if they put any character in it then use this to control prompt screen.
What I usually do for these list is allow the user to enter the value, validate it against the table and if it is invalid pop up the selection list, the user can still use f4 for the list.
You will find the during data entry users become familiar with the codes and will prefer to have the option to type a valid value or use F4 for a list.

Dave
0
 

Author Comment

by:NeffRental
ID: 24087106
Dave,

I want to thank you for your response and assistance.  We couldn't get the app to work the way we wanted so we took a different route.  Again thanks for all your help.

JS
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn how to use the free Acronis True Image app to easily transfer data between iPhones and Android phones.
What's worse than having your data encrypted by ransomware? Getting attacked by a so-called "wiper," which simply destroys the data and offers you no hope of ever seeing it again.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question