cancel
Showing results for 
Search instead for 
Did you mean: 

Handling multiple popups

Former Member
0 Kudos

Hi,

I have searched through the forum but couldn't get the answer that i need. Hence this posting..

My requirement is to generate a popup(A) from main view with 2 buttons yes/no. While selecting "no", it should trigger a 2nd popup(B). This popup(B) has 2 buttons as well. OK/Cancel. Upon selecting "Cancel" button, it should go back to popup A instead of main view.

Any suggestions would be greatly appreciated.. Thanks

ASujo

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Seems to me that this thread is exactly representing your case.

[|]

Former Member
0 Kudos

Baskaran,

It certainly does look like my scenario except that i am looking for a clue on how to achieve it.. Looking at your earlier response,

1. Created 2 Component controller ,public attributes go_popup1,go-popup2 of type if_wd_window.

2.Create a method close_popups and implement code to close first go_popup2 and then go_popup1.

3.On cancel_yes handler method call the close_popups method.

Which method should i use to first close the popup2 ? Should it be created in component controller as well ?

Thanks

ASujo

Former Member
0 Kudos

i do not understand this

" Which method should i use to first close the popup2 ? Should it be created in component controller as well ? "

go_popup2 hold the instance of the popup2.

If your question is about closing only popup2 then you might create totally three methods in close_popup1, close_popup2 and close_popups which calls above two methods.