Solved

Using ERRMSG and Keyboard Shift Attribute I

Posted on 2009-03-30
4
678 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When we talk about DevOps toolchains, I sometimes wonder how many people really get what we’re talking about. I don’t know if it’s just semantics or tone or something else, but sometimes I think it just sounds like buzzword sausage. So it’s always …
Note: This is the third blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   We’ve been talki…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

914 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now