Application Development and Automation 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: 
Read only

push button

Former Member
0 Likes
461

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
437

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.

3 REPLIES 3
Read only

Former Member
0 Likes
437

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.

Read only

Former Member
0 Likes
438

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.

Read only

Former Member
0 Likes
437

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