data validation and data format 
Author Message
 data validation and data format


Subject: data validation and data format
Date: Tuesday, March 20, 2001 4:21 PM

Hi, I am working on an Bussines application where i need to validate input
data and format.
I have a lot of questions for everyone who was deploying this or similar
kinds of app.
For example :
    1) I have a numeric data , how can I validate that the user input have a
certain format : (by example ->>>,>>9.99).
    2) In a String data how can i define a mask : 'XXX-XXXXX-XXX' .Or if I
have a mask : 'AAAAA-AAAAAA' how can i validate that the
        input characters are all alfabetic ones?.
    3) If I have a Object by example a Item for Sell and this item have a
Supplier. I need to define in the Item an attribute idSupplier the same as
in Relational DataBase applications or , like I prefer , can I define
supplier as an attribute and have the supplier (the object) referenced in
item ? . In that case, how can i do
the data input for this attribute ( supplier )? I need to define a combo or
a list with all the suppliers ? . If the item exists , how can I show the
supplier for the item?
i think a Combo where the selection is open over the correct supplier is the
solution.
Sorry for my english and
TIA



Sun, 07 Sep 2003 03:23:24 GMT  
 data validation and data format
Pablo,

Quote:
>     1) I have a numeric data , how can I validate that the user input have
a
> certain format : (by example ->>>,>>9.99).
>     2) In a String data how can i define a mask : 'XXX-XXXXX-XXX' .Or if I
> have a mask : 'AAAAA-AAAAAA' how can i validate that the
>         input characters are all alfabetic ones?.

I can't really help much but a few pointers.

Have a look on the WIKI for "DolphinGoodiesValidation" from Kai Bollert and
Juergen Albertson. It's a bit old now but it might help.

To receive a notification from a text entry field set the #updatePerChar
aspect to true and check the field after every keypress. You'll have to do
your own pattern matching though.

For numeric fields you can set the #isNumeric aspect to true to only allow
digits.

For Dialogs overriding #ok and not allowing the Dialog to close (just return
rather than doing "super ok") is probably the easiest way to validate whole
dialogs.

Quote:
>     3) If I have a Object by example a Item for Sell and this item have a
> Supplier. I need to define in the Item an attribute idSupplier the same as
> in Relational DataBase applications or , like I prefer , can I define
> supplier as an attribute and have the supplier (the object) referenced in
> item ? . In that case, how can i do
> the data input for this attribute ( supplier )? I need to define a combo
or
> a list with all the suppliers ? . If the item exists , how can I show the
> supplier for the item?
> i think a Combo where the selection is open over the correct supplier is
the
> solution.

It's very difficult to say much without knowing the what you are trying to
do and how the rest of the application works. It does sound like you should
investigate ChoicePresenters though which enable you to display and choose
from a list.

Ian



Wed, 10 Sep 2003 19:39:18 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. data validation and data format

2. #losingFocus callback for data validation (again)

3. Data validation and EIP

4. Validation of Data within the same file being changed

5. CPD2.1 table driven data validation

6. HTML Form data validation with Object REXX (Windows)

7. Data Entry with editing and validation library module

8. MF Cobol and data validation

9. How to do data validation on special characters!

10. Question on Data Validation

11. Data Validation Question

12. Data Validation Student Project (0/1)

 

 
Powered by phpBB® Forum Software