Skip to Content
author's profile photo Former Member
Former Member

Set Image for Button of Popup window

Hi

How to set the image for button. which is located on popup window.

I am using below button kind

CO_BUTTONS_OKCANCEL - Buttons for 'O.k.', 'Cancel'

I need to set image for OK and Cancel button

Thanks in advance

shravan

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2009 at 12:50 PM

    Hi, When you subscribe to button event you can set the image. As i am not in front of the system i cant give you the exact name, but guess it should be image_source property. Please check subscribe_to_button_event method.

    " subscribe to button event
    DATA:  l_api TYPE REF TO if_wd_view_controller.
      l_api = wd_this->wd_get_api( ).
     
    lo_window->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_ok
                  button_text   = 'Accept'      " your button text
                  image_source = 'Icon' " YOur image
                   action_name       = 'OK'
                   action_view       = l_api
                   is_default_button = abap_true ).
     
      l_popup->open( ).
    Radhika

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2009 at 01:06 PM

    Due to some problem the posts were repeated....

    Edited by: Radhika Vadher on Sep 6, 2009 6:36 PM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.