cancel
Showing results for 
Search instead for 
Did you mean: 

Radiobutton in popup

Former Member
0 Kudos

Hi all,

is it possible to create a popup that contains a radiobutton group without creating a new View to embed?

thanks

GN

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

It is not possible to create radio button group in the pop up window.If you want to show radio button group you should create a view and use it as pop up window.

Thanks

Suman

Former Member
0 Kudos

Hi,

I tried to do what you suggest, but I should need to call the popup in method modifieview without pushing any button, unfortunately it dumps because in this method navigation is not posssible... isn't it?

Former Member
0 Kudos

Hi,

Yes you are correct we will get error if you write the logic for Pop window for view in WDDOMODIFYVIEW and also in WDDOINIT method.

the error is.

An instance of the view is already exists. i hope you are also getting the same.

We have no choice to make your view as pop up window,you have to create 2 views and 2 windows.

assign view1(empty view) to window1.

assign view2(with radio buttons) to window2.

Now write the below logic in the WDDOINIT of view1.

data:l_window1 type ref to if_wd_window_manager,
     result type ref to if_wd_window,
     l_cmp_api type ref to if_wd_component.

     l_cmp_api = wd_comp_controller->wd_get_api( ).
     l_window1 = l_cmp_api->get_window_manager( ).
     
     result = l_window1->create_window(
          modal                = abap_true
          window_name          =  'WINDOW2'
*          TITLE                = TITLE
*          CLOSE_BUTTON         = ABAP_TRUE
*          BUTTON_KIND          = BUTTON_KIND
*          MESSAGE_TYPE         = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
*          CLOSE_IN_ANY_CASE    = ABAP_TRUE
*          MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
*          DEFAULT_BUTTON       = DEFAULT_BUTTON
            ).

    result->open( ).

Create application for view1 and then execute.Now your view will be pop up.