Discussion about software products provided for the BR community and created by its members. This includes (but is not limited to): MyEdit, File IO, Screen IO, FNSnap, and Utilities written in other languages for use with Business Rules.
Moderators: Susan Smith, admin, Gabriel
- Posts: 47
- Joined: Mon Jun 08, 2009 8:34 pm
I have observed that in Screenio, field validation routines are not processed if the user leaves the field as is, without entering info and tabs, enter, down arrows over it to the next field.
In my Read Event - I got around this by filling in blank fields with a default value, which maybe incorrect.
If the field is "required", but left blank (lazy operator) - what is the most efficient way to force an input into the "required" field?
The field attribute is set to "X" with a field validation function.
It fires the validation routine only if you input something into the field.
- Posts: 357
- Joined: Sun Aug 10, 2008 7:37 am
- Location: Arlington, TX
Sorry for the delay, I somehow missed this message until now.
You do these kinds of validations in the write event. Check for all required fields and any other final validation you need in the (pre)write event. If a required field is blank, set exitmode back to 0 and display a message or a message box to the user telling them what's missing. You can also set currentfield$ to the control name of the bad field to force the cursor there and direct the users attention to the problem.
Return to “3rd Party Software from the BR Community”
Who is online
Users browsing this forum: No registered users and 1 guest