Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Check Box in Module Pool

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.