hi,
I've come across a strange one -
I have a BO form with fields for entry of numeric attribute values. I've noticed that if a user inputs anything except a number in those fields, that the system returns an error message and the creation of the particular object fails completely - the user must re-commence creation of the record.
Can someone suggest the best way of validating such form field entry ? I can't seem to get a rule such as the following to work. It never reports an error.
If NOT (Object.Deposit BETWEEN 1 AND 1000000) THEN
REPORT ERROR 'Value of Deposit is invalid'
Sorry if this is obvious, but what am I doing wrong ?
As usual, thanks in advance
Peter
Validate numeric form field entry
-
- Posts: 34
- Joined: Mon Mar 16, 2009 3:06 pm
- Location: Ohio
-
- Posts: 34
- Joined: Mon Mar 16, 2009 3:06 pm
- Location: Ohio
Peter,
You must be trying to input into a PLAIN TEXT type attribute rather than a NUMBER type attribute. If you use a NUMBER type attribute, AwareIM will NOT allow anything but numbers to be input. If the user tries to type in letters, they will not even appear on the screen.
You must be trying to input into a PLAIN TEXT type attribute rather than a NUMBER type attribute. If you use a NUMBER type attribute, AwareIM will NOT allow anything but numbers to be input. If the user tries to type in letters, they will not even appear on the screen.
Tom - V8.8 build 3137 - MySql / PostGres
Thanks Devil Dog,
Your post is a big help.
I changed the format on my Deposit field to # as suggested (it had been #.00) and now at least the field only accepts numbers. So that is an improvement.
I'm quite baffled about why the field should accept non-numeric input when the format was #.00
Any ideas ?
Peter
Your post is a big help.
I changed the format on my Deposit field to # as suggested (it had been #.00) and now at least the field only accepts numbers. So that is an improvement.
I'm quite baffled about why the field should accept non-numeric input when the format was #.00
Any ideas ?
Peter
-
- Posts: 34
- Joined: Mon Mar 16, 2009 3:06 pm
- Location: Ohio
-
- Posts: 34
- Joined: Mon Mar 16, 2009 3:06 pm
- Location: Ohio
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact: