2008 Apr 08 12:22 PM
Hi,
I have three fields in screen.
say f1, f2 and f3.
i fill f1, f2 and f3.
now there is a validation for f1 and f3. these fields are linked. and if the entered value is not liniked then it displays a error.
and screen is again available for input.
but second time only F1 and F3 allows values to be entered. and not F2. Second time after error message field F2 goes into display mode and is not editable. and shows only previous value.
can anybody help here. is there any setting i need to take care off.
Thanks in advance.
Hem
2008 Apr 08 12:29 PM
Hem,
Not seeing you code, this is an educated guess.
Your chain statement in the PAI routine must contain all the fields that are editable IF there is an error.
Therefore, you likely have coded
CHAIN:
FIELDS: F1, F3.
MODULE EDIT_F1_F3.
ENDCHAIN.
If you want F2 to be editable before the error is complete corrected, add F2 to the Chain list
CHAIN:
FIELDS: F1, F2, F3.
MODULE EDIT_F1_F3.
ENDCHAIN.
2008 Apr 08 12:27 PM
hi,
how ur F1 and F3 linked? means u checking valur from Database table?
2008 Apr 08 12:29 PM
Hem,
Not seeing you code, this is an educated guess.
Your chain statement in the PAI routine must contain all the fields that are editable IF there is an error.
Therefore, you likely have coded
CHAIN:
FIELDS: F1, F3.
MODULE EDIT_F1_F3.
ENDCHAIN.
If you want F2 to be editable before the error is complete corrected, add F2 to the Chain list
CHAIN:
FIELDS: F1, F2, F3.
MODULE EDIT_F1_F3.
ENDCHAIN.
2008 Apr 08 12:31 PM
hi...
use CHAIN ENDCHAIN command.
chain.
field: f1,
f2,
f3.
endchain.
dis will make all ur 3 fields open for input after an error msg.
reward pts if useful
Regards
winnie
2008 Apr 08 12:38 PM
use chain and endchain
in PAI event
chain.
field f1 values (list of values).
field f2 values (list of values) .
field f3 values (list of values).
endchain.
dis will make all ur 3 fields open for input after an error msg.
reward pts if useful
Regards
prasanth
2008 Apr 08 12:40 PM
Hemaraaja
Write the following like under Process After Input event.
Regards,
Venkat.O
Chain.
field:f1,f2,f3.
module validate.
Endchain.
2008 Apr 08 1:02 PM
Thanks to all you buddies .... i have rewarded you all....thanks for your contribution and time.
-Hem
2008 Apr 08 1:04 PM
Use ur three options F1,F2,F3 in the Chain --- Endchain.
This will allow u to process the input even if there have any errors.
Regarding the validation thing for F1 and F3, use these two things in the PAI to check the validations, u can also go for chain --endchain for these two conditions as well.
reward if useful..