2010 Aug 03 11:45 AM
Hi All,
I have defined 3 Check Boxes in the selection screen and one box will be ticked as 'X" by default.
I need to put restriction so that only any one should be selected as 'X' whenever user wish to select.
Hence any time, when user selects a box, other two should be unchecked.
How to put this kind of control?
Regards
Pavan
2010 Aug 03 11:49 AM
2010 Aug 03 11:56 AM
Hi Keshav,
Initially thought of replacing the checboxes with radio Buttons, as the functionality desired will be readily available with Radio Buttons.
Then thought of giving a try with checkboxes for this kind of restrictions...
Now realised not to put extra lines of code to attain the radio functionality using checkboxes...!!!
Thanks...
Regards
Pavan
2010 Aug 03 11:58 AM
I think you should go for 'Radiobutton'
But if U want check box then
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF cb_option1 = 'X'.
CLEAR cb_option2.
MODIFY SCREEN.
ELSEIF cb_option2 = 'X'.
CLEAR cb_option1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
2010 Aug 03 12:03 PM
Decided to go for Radio Buttons rather than adding extra lines for checkboxes..!!