05-27-2008 1:41 PM
In the Control table i was making some changes in certain fields and then pressed update button. If there are any errors it displays the required message but makes all the fields and the rows of the table non-editable.... Is there a way to make it all editable after the error message comes so that i can modify it there itself?
05-29-2008 12:57 PM
hi,
there are solutions for your problem.
1) Remove it required property from your field .
2) if there is error message from ur code than use message type W instead of E.
3) and if you want to still show an error message than use
chain.
field fieldname module check_error on-input.
endchain.
and in coding of module check_error write ur code . in that code like that if condition is not satiesfied give message of type E. you will get only that field enable and rest of the screen are in disable mode.
if still there is prob tha reply me.
GIve Rewards if helpfull.
05-29-2008 8:05 AM
hi,
u can do like this..
If error comes, set one flag...
In PBO make one module...suppose disable..
MODULE disable OUTPUT.
LOOP AT SCREEN.
IF screen-name = <ur screen ele. name> AND f = 1.
screen-input = 1.
ENDIF.
ENDLOOP.
ENDMODULE. " disable OUTPUT
I think it shoud work...
Reward if usefull...
05-29-2008 12:26 PM
Hi,
You can do one thing
In the PAI of the screen you code like this....
CHAIN.
Field fieldname1.
Filed fieldname2 .
and so on............
ENDCHAIN.
like that give all the names of the fileds between CHAIN and ENDCHAIN.
After that if you enter a wrong value then also the fields which are between CHAIN and ENDCHAIN will be Editable.
*******************************************
Reward if helpful.
Regards,
Syed
05-29-2008 12:57 PM
hi,
there are solutions for your problem.
1) Remove it required property from your field .
2) if there is error message from ur code than use message type W instead of E.
3) and if you want to still show an error message than use
chain.
field fieldname module check_error on-input.
endchain.
and in coding of module check_error write ur code . in that code like that if condition is not satiesfied give message of type E. you will get only that field enable and rest of the screen are in disable mode.
if still there is prob tha reply me.
GIve Rewards if helpfull.
05-30-2008 10:51 AM
Write the fields in table control in cahin - endchain.
write the validations in the module validat.
chain: field1,
field2,
field3,
module validat on chain-request.
endchain..
Hope this wil solve the problem.
05-30-2008 11:16 AM
Hi,
You can do one thing
In the PAI of the screen you code like this....
CHAIN.
Field fieldname1.
Filed fieldname2 .
and so on............
ENDCHAIN.
like that give all the names of the fileds between CHAIN and ENDCHAIN.
After that if you enter a wrong value then also the fields which are between CHAIN and ENDCHAIN will be Editable.
*******************************************
Reward if helpful.
Regards,
Syed