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: 

Handling Check Boxes in the selection screen

Former Member
0 Kudos
105

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

4 REPLIES 4

kesavadas_thekkillath
Active Contributor
0 Kudos
78

Why not radio button ? it meets your requirement.

0 Kudos
78

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

Former Member
0 Kudos
78

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.

Former Member
0 Kudos
78

Decided to go for Radio Buttons rather than adding extra lines for checkboxes..!!