?
Solved

Using ERRMSG and Keyboard Shift Attribute I

Posted on 2009-03-30
4
Medium Priority
?
720 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
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Most folks would know the basics of how Dropbox works, so that’s not the purpose of this article. Security is what it’s all about, so here I’ll share how I choose to secure my Dropbox Account and the Data it contains.
In the below post we have mentioned the best hosting type for startups. Also, check out some of the superlative web hosting companies that are proposing affordable web hosting solutions to host your startup website.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

829 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