12-12-2007 2:29 PM
Hi,
I placed a Check box and Text Box in a Screen in Moudule pool.
when the user press the Check Box then the Text box should enable otherwise it should disable.
if i give function for a check box then wheather it will trigger when the user press it or not ?
How can we do it?
Regards,
Satya.
12-12-2007 2:42 PM
hi,
Write code in PBO event of the screen where you have placed text box and chk box.
Because for every click on the checkbox textbox operation should be performed.
you jsut check
***Flow Logic for that screen starts
process after output.
MODULE user_command_1400 OUTPUT.
***Flow Logic for that screen ends
MODULE user_command_1400 OUTPUT.
if v_chck = 'X'.
LOOP AT SCREEN.
IF screen-name = 'CANCEL'. "Text box name
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
Please reward points if useful.
Thanks
Sivaparvathi
12-12-2007 2:46 PM
Hi
If you assign a function code to the checkbox the PAI (and then PBO) will be triggered automatically without to press enter;
if you don't assign a function code the user'll have to press enter key after choosing the checkbox.
In the PBO insert a module like this:
MODULE MODIFY_SCREEN.
IF <CHECK BOX > = SPACE.
LOOP AT SCREEN.
IF SCREEN-NAME = '<TEXT BOX>'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ENDMODULE.
Max
12-12-2007 3:11 PM
Hi,
It is working fine. in the first screen I am taking input in a text box and validating it and it is right then i am calling the next screen.
In the second contains the check box. If am checking the box it is enableing the text box . but if am uncheck the box it is coming out of the screen.
why it is coming out of the screen ?
regards,
satya.