cancel
Showing results for 
Search instead for 
Did you mean: 

Closing Popup window at user action

Former Member
0 Kudos

Hi Experts,

In my application to Display popup i am using the another window of same component. I dont want to use the standard button kind to close the window. In that pop window view , i created OK button, ONACTIONOK i have to close the popup window. How can i Program it .Please help me out.

Thanks,

Dayakar Padibandla

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check these threads

Edited by: Manas Dua on Feb 19, 2010 8:08 PM

Former Member
0 Kudos

hi manas ,

Thank you.

Answers (1)

Answers (1)

arjun_thakur
Active Contributor
0 Kudos

Hi,

Use this code:


method ONACTIONACTONOK .
      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.

endmethod.

Regards

Arjun