on 12-21-2011 4:30 PM
Hi,
I have a view 'A'. On click of a button in 'A' a pop up window is opened. The pop up window has an OK button which closes the pop up window. My requirement is along with closing the pop up window, I need to get the main view refreshed. That is for example:if the pop up is for confirming success of submission, i need to get the status changed(say from 'viewed' to submitted' )in the main view(view A). Right now, the status change is reflected only after refreshing the view.
thanks,
Shifa
HI
On click of ok button invalidate your whole context nodes.and set relevant visibilities which were in initial screen.
Invalidate nodes after you destroy the window.
Hope it helps.
Thanks and regards
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes, I am closing the pop up using an event handler which comes into action on click of OK of pop up. Then the pop up closes and the parent view remains. I need to navigate to another view. for that I tried fire plug out on action of OK of pop up. But the issue is, in the new view which is to be opened, nodes are created dynamically..Even though, before calling the view I am resetting all nodes,I am still getting duplicate nodes exception. Any solution?
Thanks
I thought you already got the solution based on the previous post. Any way I am pasting my solution again for you in this post.
Please implement the following logic:
1. Create an event in one of the controllers - component or custom
2. Create a method to fire this event in this controller
3. On click of close button, fire the above method (for this you need to add the controller in the reference of pop up view)
4. Now in the view from which pop up is called, create an event handler with subscribed event in the controller (for this you need to add the controller in the reference of view)
5. Now in the event handler you can close the window followed by firing plug to the required view
Regards,
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.