on 01-24-2007 10:17 AM
Hello,
I'm using NW2004s SP9. I have a view which opens a modal window through a custom controller. The implementation of the popup is ok, I have two buttons and I can close the window.
My problem is: I'm calling the opening code from a view and the code in my view should wait until the window is closed and then continue like this:
1. main view: button in view is pressed
2. main view: open modal window and wait
3. modal window: wait for button click
4. modal window: close modal window
5. main view: continue in my method
It is possilbe to split my method in two parts, but I'm looking for a nice way to call this second method. The wdDoModifyView method is not possible because it is static. Calling an event is also not possible because the view has no event controller.
What is the best way to coninue?
Regards, Nils.
Create an event on a controller(Componet or Custom) and method to fire that event.
Call that method from the popup view on click of button to fire that event.
Create a event handler method in parent view to handle that event and call the second method inside the event handler mathod.
Hope it helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.