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: 

How to make the Entry in the test box with check of Radio button

Former Member
0 Kudos
179

Hi All,

How to make test box hidden with the use of Radio button. For Eg., I have two radio button and two text boxes. If i check the first radio button then the first text box should be visible not the other. Similar for the other one too.

This should happen in the Selection screen itself.

Regards,

Yogesh.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
120

hi,

I think u need to use loop at screen.

9 REPLIES 9

Former Member
0 Kudos
121

hi,

I think u need to use loop at screen.

Former Member
0 Kudos
120

Use screen table and change the attributes of screen as required.

Azeemquadri
Contributor
0 Kudos
120

use :

for the text box use modif id .

loop at screen.

if rad1 = 'X'.

check screen-group1 = "modif id for tect box".

screen-active = 'X'.

modify screen.

endif.

endloop.

0 Kudos
120

hi,

for the text box 1 .

loop at screen.

if rad1 = 'X'.

check screen-name = "text boxname in caps".

screen-input = 0. "for making gray

or

screen-invisible = 'X'. "to make it invisible

modify screen.

endif.

endloop.

in the same way for tet box 2 also.

0 Kudos
120

hi,

for the text box 1 .

<b>at selection-screen output.</b>

loop at screen.

if rad1 = 'X'.

check screen-name = "text boxname in caps".

screen-input = 0. "for making gray

or

screen-invisible = 'X'. "to make it invisible

modify screen.

endif.

endloop.

in the same way for tet box 2 also.

Former Member
0 Kudos
120

hi,

in PBO Event

at selection-screen.

if rad1 = 'X'. [for textbox 1]

loop at screen.

if screen-name = 'text boxname2'.

screen-invisible = 'x'.

modify screen.

endif.

endloop.

else.

if rad2 = 'X'. [for textbox 1]

loop at screen.

if screen-name = 'text boxname1'.

screen-invisible = 'x'.

modify screen.

endif.

endloop.

if useful reward some points.

with regards,

suresh.

Former Member
0 Kudos
120

Hi,

Still its not working can you please give the code.

Regards,

Yogesh.

0 Kudos
120

hi, r u working on report or module pool.

if it is a report it will work.

at selection-screen output.

loop at screen.

if rad1 = 'X'.

check screen-name = "2 text boxname in caps".

screen-input = 0. "for making gray

or

screen-invisible = 'X'. "to make it invisible

modify screen.

endif.

endloop.

loop at screen.

if rad2 = 'X'.

check screen-name = "1 text boxname in caps".

screen-input = 0. "for making gray

or

screen-invisible = 'X'. "to make it invisible

modify screen.

endif.

endloop.

u write this before start-of-selection.

it will work

Former Member
0 Kudos
120

check this .


PARAMETERS : R1 RADIOBUTTON GROUP RG USER-COMMAND R DEFAULT 'X'.
PARAMETERS : R2 RADIOBUTTON GROUP RG .




selection-screen begin of block b1 with frame.
parameters : a(10) type c modif id abc.
parameters : b(10) type c modif id abc.
selection-screen end of block b1.


selection-screen begin of block b2 with frame.
parameters : c(40) type c modif id def.
parameters : d(20) type c modif id def.
selection-screen end of block b2.


at selection-screen output.


IF R1 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'DEF' .
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.

IF R2 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC' .
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.

Regards,

Vijay