2007 Jun 06 7:40 AM
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.
2007 Jun 06 7:43 AM
2007 Jun 06 7:43 AM
2007 Jun 06 7:43 AM
Use screen table and change the attributes of screen as required.
2007 Jun 06 7:47 AM
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.
2007 Jun 06 7:55 AM
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.
2007 Jun 06 8:02 AM
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.
2007 Jun 06 8:08 AM
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.
2007 Jun 06 8:15 AM
Hi,
Still its not working can you please give the code.
Regards,
Yogesh.
2007 Jun 06 8:23 AM
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
2007 Jun 06 8:57 AM
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