cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh a view/viewset/window manually

Former Member
0 Kudos

Hi Experts,

I have a applcation that has a viewset containing 5 views.

From one of these view I click on a button and it opens a Window as popup.

After closing the popup, I want to disable the button so that popup cannot be opened again and activate SAVE button.

Now here is the problem. I have all the coding in my wdDoModifyView, but its not triggered.

I know that we cannot call wdDoModify view manually.

So is there any workaround by which the complete window/viewset is refreshed on closing the popup, thus triggering the wdDoModifyView.

Thanks a lot for the suggestions in advance.

Regards,

Shubham

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Shubham,

Can't you make use of events to achieve the same? Create an event in your component controller, subscribe to that in the parent view, write all these code in that event handler and then trigger this event when you close the pop-up window. I hope this would serve your purpose.

Quoting from one of Valery's answer - "wdDoModifyView is invoked only for application start time & action round-trips but not for internal WD round-trips (as an example: selection in table that has no onLeadSelection action handler causes request/response but wdDoModifyView is not invoked)".

()

Though this might help you too.

Best Regards,

Nibu.

Message was edited by: Nibu Wilson

Former Member
0 Kudos

Hi Nibu,

Thanks for the help.

But there was a problem in my code.

It was going in wdDoModifyView, but one "if" condition was not met.

Its working now.

Regards,

Shubham