cancel
Showing results for 
Search instead for 
Did you mean: 

Can i close when button click in html page ?

Former Member
0 Kudos

Hi, Experts.

There are some components and applications.

1. First component : A1

First application : A2 from A1 component

- A1 component have some input fields and buttons.

2. Second component : B1

3. I want to appear a popup that is A1 component in B1 component.

So I used a method that is "cl_hrrcf_wd_services=>construct_wd_url" with A2's url. (-> popup html page)

Popup was success but when i clicked a "close" button, do not working in html page.

Can I close when butotn click in html page?

How to close the html page?

Help me please.

Thanks.

Regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You need to create an event handler method say CLOSE_POUP. In this method you need to write the code as below to close the Popup window:

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( ).

l_popup = l_window_ctlr->get_window( ).

if l_popup is bound.

l_popup->close( ).

endif.

Former Member
0 Kudos

Thank for your answer.

But not working yet.

Try a debugging..

l_popup was initial after "l_popup = l_window_ctlr->get_window( ).".

so l_popup was not bound.

how can i bind this?

Former Member
0 Kudos

Hi yuntae ,

Apologies for wrong code. I had provided the code to close the Internal Pop up window in my earlier post. Have a try on Exit Plug on window level.

Also Check out the thread [external window and CLOSE Event |;, check out the Roel suggestion.

Hope it helps.