2007 Sep 17 6:08 AM
Hiii
i had a query i have two check boxes if i select one then second must be gray if i nselect second one first must me disabled
please send me the dummy code
thanx in advance
Regards
hitesh
hi,
As per your requirement, you have to use radiobutton,
so that at a time u can select only one of it.
Because check boxes are used for multiple selection.
thanks
Dharmishta
2007 Sep 17 6:10 AM
hi,
As per your requirement, you have to use radiobutton,
so that at a time u can select only one of it.
Because check boxes are used for multiple selection.
thanks
Dharmishta
2007 Sep 17 6:14 AM
hi Hitesh,
i am sending dummy code here..
according to ur req.
u change this code and use it.
This code should be written under AT Selection-screen output Event.
and i think u need to use Radio buttons for ur req. instead of Check boxes for selecting.
&----
*& Form modify_screen
&----
text
----
form modify_screen .
**Modify the screen
loop at screen.
if p_bdc = c_x.
if screen-name = 'P_SESSN' or screen-name = '%_P_SESSN_%_APP_%-TEXT'.
screen-active = '1'.
endif.
else.
if screen-name = 'P_SESSN' or screen-name = '%_P_SESSN_%_APP_%-TEXT'.
screen-active = '0'.
endif.
endif.
modify screen.
endloop.
endform.
<b>Reward points if useful </b>
Cheers,
Chandra
Message was edited by:
Chandra
2007 Sep 17 6:15 AM
Hi,
User command for check box as given below
PARAMETERS: p_alvrep as checkbox default ' ' user-command check, "for detail report.
at selection-screen output.
loop at screen.
if screen-name = 'S_REGION-LOW'.
if p_alvrep = 'X'.
screen-ACTIVE = 0.
refresh S_REGION.
else.
screen-ACTIVE = 1.
endif.
modify screen.
endif.
endloop.
2007 Sep 17 6:15 AM
2007 Sep 17 6:27 AM
Hi,
check the below code:---
Rb_cost & rb_price are the radio button & cb_sanka & cb_sanfe are the check box.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF RB_COST = ' '.
IF screen-name = 'CB_SANKA'.
SCREEN-input = '0'.
ELSEIF SCREEN-NAME = 'CB_SANFE' .
SCREEN-input = '1'.
ENDIF.
ELSE.
IF screen-name = 'CB_SANKA'.
SCREEN-input = '1'.
ELSEIF SCREEN-NAME = 'CB_SANFE' .
SCREEN-input = '0'.
ENDIF.
ENDIF.
Modify screen.
ENDLOOP.
2007 Sep 17 6:28 AM
PARAMETERS: zc1 as CHECKBOX MODIF ID z1 , zc2 as CHECKBOX modif id z2.
at SELECTION-SCREEN output.
if zc1 = 'X'.
loop AT SCREEN.
if screen-group1 = 'Z2'.
screen-input = 0.
MODIFY SCREEN.
endif.
endloop.
ELSEIF zc2 = 'X'.
loop AT SCREEN.
if screen-group1 = 'Z1'.
screen-input = 0.
MODIFY SCREEN.
endif.
endloop.
endif.
after checking a check box, hit enter,other 'll b grayed..
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |