‎2006 Jun 23 1:15 PM
hi,
i want the push button on selection screen with icon,The text on the pushbutton should vary depending on the radio button checked.
thanks,
kiran.M
‎2006 Jun 23 1:33 PM
Hi again,
1. With ICONS.
2. U can change the icons also (along with text)
on click of radio button.
3. just copy paste
4.
report abc.
type-pools : icon.
parameters : a radiobutton group g1 user-command RB DEFAULT 'X',
b radiobutton group g1.
selection-screen : pushbutton /1(20) button1 user-command BUTN.
*----
at selection-screen output.
IF A = 'X'.
concatenate ICON_CHECKED 'RADIO A' INTO BUTTON1.
ELSE.
concatenate ICON_NEGATIVE 'RADIO B' INTO BUTTON1.
ENDIF.
regards,
amit m.
‎2006 Jun 23 1:24 PM
Hi kiran,
1. just copy paste to get a taste of it.
2.
report abc.
parameters : a radiobutton group g1 user-command RB DEFAULT 'X',
b radiobutton group g1.
selection-screen : pushbutton /1(20) button1 user-command BUTN.
*----
at selection-screen output.
IF A = 'X'.
BUTTON1 = 'RADIO A'.
ELSE.
BUTTON1 = 'RADIO B'.
ENDIF.
regards,
amit m.
‎2006 Jun 23 1:33 PM
Hi again,
1. With ICONS.
2. U can change the icons also (along with text)
on click of radio button.
3. just copy paste
4.
report abc.
type-pools : icon.
parameters : a radiobutton group g1 user-command RB DEFAULT 'X',
b radiobutton group g1.
selection-screen : pushbutton /1(20) button1 user-command BUTN.
*----
at selection-screen output.
IF A = 'X'.
concatenate ICON_CHECKED 'RADIO A' INTO BUTTON1.
ELSE.
concatenate ICON_NEGATIVE 'RADIO B' INTO BUTTON1.
ENDIF.
regards,
amit m.
‎2006 Jun 23 1:53 PM
hi,
To add the icons you need to include the type pools ICON
parameters : p_radio1 radiobutton group grp user-command RB DEFAULT 'X',
p_radio2 radiobutton group grp.
selection-screen : pushbutton /2(15) button1 user-command BUTN..
at selection-screen output.
IF p_radio1 = 'X'.
concatenate ICON1 'FIRST RADIO BUTTON' INTO BUTTON1.
ELSEIF p_radio2 = 'X'.
concatenate ICON2 'SECOND RADIO BUTTON' INTO BUTTON1.
ENDIF.
Regards,
Richa