Solved

Using ERRMSG and Keyboard Shift Attribute I

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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