2007 Oct 25 3:22 PM
Hi Experts,
Could you please give me exact difference between
Filed EndField
Chain EndChain Statments....
Thanks
Kaki
2007 Oct 25 3:30 PM
1) CHAIN & ENDCHAIN
this is used to validate many fields. For example, say you have 5 input parameter in a module program. you want to validate these fields.
All the validations are written in a single module. so you can use
Chain.
field <fieldname1>
field <fieldname2>
field <fieldname3>
field <fieldname4>
field <fieldname5>
module check_input
endchain.
The above syntax, will call module check_input for each fieldname.
2) FIELD & MODULE
This will be mostly used where u want to perform different validation.
for example, you have 5 fields. you need to validate these fields indivually in a separte module. Then u can go for this syntax
For example:
field <fieldname1> module check_input1
field <fieldname2> module check_input2
field <fieldname3> module check_input3
field <fieldname4> module check_input4
field <fieldname5> module check_input5
Regards,
Ferry Lianto
Hi Experts,
Could you please give me exact difference between
Filed EndField
Chain EndChain Statments....
Thanks
Kaki
2007 Oct 25 3:23 PM
Hi
Field....EndField.
for single Field validation and.
Chain....Endchain....
For Group validation.
We can built field....endfield...in chain....endchain.
Regards,
Sree
2007 Oct 25 3:29 PM
Hi sree ram...
can you give me any example....
using these two...
Thanks
kaki
2007 Oct 25 3:30 PM
1) CHAIN & ENDCHAIN
this is used to validate many fields. For example, say you have 5 input parameter in a module program. you want to validate these fields.
All the validations are written in a single module. so you can use
Chain.
field <fieldname1>
field <fieldname2>
field <fieldname3>
field <fieldname4>
field <fieldname5>
module check_input
endchain.
The above syntax, will call module check_input for each fieldname.
2) FIELD & MODULE
This will be mostly used where u want to perform different validation.
for example, you have 5 fields. you need to validate these fields indivually in a separte module. Then u can go for this syntax
For example:
field <fieldname1> module check_input1
field <fieldname2> module check_input2
field <fieldname3> module check_input3
field <fieldname4> module check_input4
field <fieldname5> module check_input5
Regards,
Ferry Lianto
2007 Oct 25 3:36 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |