I have an input screen with a number of text boxes defined as decimal 6,0
If a user enters a minus sign alone into one of the text boxes and hits enter, they are returned to the rpg program which crashes with the following error
Message ID . . . . . . : RNQ1299 Severity . . . . . . . : 99
Message type . . . . . : Inquiry
Date sent . . . . . . : 05/10/12 Time sent . . . . . . : 14:40:28
Message . . . . : I/O error MCH1201 was detected in file CRNOTED (C G D F).
Cause . . . . . : The RPG procedure CRNOTELE in program WIL/CRNOTELE
received the message MCH1201 at statement 2512 while performing I/O
operation EXFMT on file CRNOTED. The actual file is *LIBL/CRNOTED.
Recovery . . . : Check the job log for more information on the cause of the
error and contact the person responsible for program maintenance.
Possible choices for replying to message . . . . . . . . . . . . . . . :
D -- Obtain RPG formatted printout of system storage.
S -- Obtain printout of system storage.
G -- Continue processing at *GETIN.
C -- Cancel.
More...
Reply . . . : C
I would have expected this invalid input to be trapped at the screen level without being returned to the rpg program.
How can I prevent my program from crashing on this type of invalid input being returned ?
I'm trying to reproduce this issue, but I get an error telling me that "-" is not a valid number. This shows up in a "tool tip" next to the field on the screen, and the screen does not submit.
Can you provide details of how you've set up this field?
Thanks! I've been able to reproduce the problem, but I haven't yet determined what's going on. I'll discuss this with the rest of the dev team on Monday.
Version 4.1.4 of ProfoundUI is now available for download. It fixes the crash when you put a minus sign in the text box, by itself.
After installing 4.1.4, please make sure you clear/refresh your browser cache so the old copy of the code isn't still in the computer's memory. (I just got bit by that one, myself! hehehe)