Skip to Content
avatar image
Former Member

How to refresh a view/viewset/window manually

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 18, 2005 at 06:06 AM

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

    (wddomodifyview-mthood)

    Though this might help you too.

    Best Regards,

    Nibu.

    Message was edited by: Nibu Wilson

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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