‎2007 Jun 05 10:13 AM
Hy !
I have two checkboxes defined ad parameters in a selection screen.
I want one of them to be clear when the other is checked.
I tried
IF NOT sb_kks IS INITIAL.
sb_wks = ' '.
ENDIF.
Not working :(.
Suggestions>?
Thank you.
‎2007 Jun 05 10:23 AM
Hello Anda
If the two options are mutually exclusive then define them as <b>radiobuttons</b> instead of checkboxes.
PARAMETERS:
p_kks RADIOBUTTON GROUP radi DEFAULT 'X',
p_wks RADIOBUTTON GROUP radi.Regards
Uwe
‎2007 Jun 05 10:23 AM
Hello Anda
If the two options are mutually exclusive then define them as <b>radiobuttons</b> instead of checkboxes.
PARAMETERS:
p_kks RADIOBUTTON GROUP radi DEFAULT 'X',
p_wks RADIOBUTTON GROUP radi.Regards
Uwe
‎2007 Jun 05 12:10 PM
Hi Anda,
Try this code. It will work.
parameters: chk1 as checkbox user-command chk1,
chk2 as checkbox user-command chk2.
at selection-screen.
case sscr-ucomm
when 'CHK1'.
chk1 = 'X'.
chk2 = ' '.
when 'CHK2'.
chk1 = ' '.
chk2 = 'X'.
endcase.