cancel
Showing results for 
Search instead for 
Did you mean: 

Create Checkboxes in a Popup

Former Member
0 Kudos

Hi everybody,

is it possible to create ckeckboxes in a popup an bind them to a node? Until now i have a view for my checkboxes.

regards,

Sid

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sid,

Yes to can create checkboxes in the PopUp.

1.Create a separate view and design as per your requirements.

2.Create a window.

3.Embed the view in the window

4. write the following code to call the popup window.

  • Popup
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component  TYPE REF TO if_wd_component.
      DATA lo_window         TYPE REF TO if_wd_window.
     
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      lo_window         = lo_window_manager->create_window(
        window_name          = 'W_POPUP' " your window name 
        message_display_mode = if_wd_window=>co_msg_display_mode_selected
        button_kind          = if_wd_window=>co_buttons_ok
        message_type         = if_wd_window=>co_msg_type_none
        default_button       = if_wd_window=>co_button_ok
        ).
      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
                   action_name       = 'ON_OK
                   action_view       = l_api
                   is_default_button = abap_true ).
     
      lo_window->open( ).

Regards,

Radhika.

Answers (1)

Answers (1)

mariano_gallicchio2
Participant
0 Kudos

Check this link:

Then you should use the popup-window object to insert the elements!

Hope it helps

Edited by: Mariano Gallicchio on Jul 1, 2009 9:48 PM