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 : Can it be marked as selected ?

Former Member
0 Likes
974

Hi Guys,

There are 2 pushbuttons in my screen that are going to work as a pair.

My question is u2013 once the user chooses on of the buttons how can I display that one as u201Cchosenu201D one ?? Like in checkbox we have tick mark to be shown as u201Cchosenu201D, how can we do that with a pushbutton ? Is this possible ?

Any hints are greatly appreciated.

Thanks,

Sandip.

1 ACCEPTED SOLUTION
Read only

Sathya_Gunasekaran
Contributor
0 Likes
901

Hello Sandip,

I am not so sure about your requirement. I' m just giving a try..

Once the user clicks on the button, U will be in the same screen?

You can go for Enable/Disable option...... I mean once the button is clicked U can make it disabled..

If my answer is not relevant....please ignore.

Thanks and regards

Sathya

Edited by: Sathya Gunasekaran on Mar 18, 2009 11:47 AM

Hi Guys,

There are 2 pushbuttons in my screen that are going to work as a pair.

My question is u2013 once the user chooses on of the buttons how can I display that one as u201Cchosenu201D one ?? Like in checkbox we have tick mark to be shown as u201Cchosenu201D, how can we do that with a pushbutton ? Is this possible ?

Any hints are greatly appreciated.

Thanks,

Sandip.

5 REPLIES 5
Read only

Sathya_Gunasekaran
Contributor
0 Likes
902

Hello Sandip,

I am not so sure about your requirement. I' m just giving a try..

Once the user clicks on the button, U will be in the same screen?

You can go for Enable/Disable option...... I mean once the button is clicked U can make it disabled..

If my answer is not relevant....please ignore.

Thanks and regards

Sathya

Edited by: Sathya Gunasekaran on Mar 18, 2009 11:47 AM

Read only

0 Likes
901

Hi Satya,

thanks for responding.

Actually it will stay in the same screen but the button should show as "selected". Disabling is an option but will not look good, and can be confusing too.

Regards,

Sandip.

Read only

0 Likes
901

Hi Sandip,

You can add an icon on button which shows that it wasn't selected, then if user press it, change the icon to "selected" one. As you look at any selection screen with select options parameter there is an icon which perfectly suits your requirement.

In PAI use FM ICON_CREATE in turn creating these two icons and then pass the text returned with this fm to your button.

The two mentioned icons are:

ICON_DISPLAY_MORE

ICON_ENTER_MORE

In this way you ensure that your program is not only functional but makes it look&feel as standard SAP applications.

Regards

Marcin

Read only

0 Likes
901

As far as i understand your problem, you can add the icon_okay to the pushbutton once its selected. If the other Pushbutton is selected you can remove the ICON_OKAY button from first button and add to other Pushbutton. In this manner you can easily show the users that which button has been selected without disabling option.

Regards,

Kanchan Patil.

Read only

MarcinPciak
Active Contributor
0 Likes
901

Hi Sandip,

I know it might be inappropriate from my side asking for appreciation, but please note that if you mark the thread as aswered and any of the post helped you to resolve your issue, it is expectable that you assing some points to people helping you. This is a way of saying thank you in SCN and applies to all threads, not only this one.

Regards

Marcin