Solved

Using ERRMSG and Keyboard Shift Attribute I

Posted on 2009-03-30
4
675 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

771 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

12 Experts available now in Live!

Get 1:1 Help Now