cancel
Showing results for 
Search instead for 
Did you mean: 

Pop Up

Former Member
0 Kudos

Hello experts,

Can i close a pop up on action of a button within the pop up, if so ? could you please tell me how to do i achieve the same.

Thanking you in advance.

Tamanna K .

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try the following code:

data lo_api_controller type ref to if_wd_view_controller.
  data lo_window type REF TO IF_WD_WINDOW.

  lo_api_controller = wd_this->wd_get_api( ).
  lo_window = lo_api_controller->GET_EMBEDDING_WINDOW( ).

*close window
  lo_window->CLOSE( ).

hope this helps.

Regards

Manas

Former Member
0 Kudos

Thank Manas..

I wrote the same code but it throws me an error that the result type of the function method cannot be converted into the type

lo_window.

any suggestions?

Thank U

Regards/-

Tamanna K.

Former Member
0 Kudos

hi,

Try this :

data:
     l_api type ref to if_wd_view_controller,
     l_window_ctlr type ref to if_wd_window_controller,
     l_popup type ref to if_wd_window.
     l_api = wd_this->wd_get_api( ).
     l_window_ctlr = l_api->get_embedding_window_ctlr( ).
     if l_window_ctlr is bound.
     l_popup = l_window_ctlr->get_window( ).
     l_popup->close( 'l_popup' ).
     endif.

l_popup is the name of my Pop Up Window .

Former Member
0 Kudos

Thank U loads

Regards/-

Tamanna K.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

try this code


w_this->POPUP_WIN->close( ).
// where POPUP_WIN is the name of window in which ur POUP view is embedded

regards,

amit