Skip to Content
author's profile photo Former Member
Former Member

Lifespan of popup window

Hello!

I want controller of a popup window be initialized every time when the window is opened. Is that possible?

I've defined Lifespan for the view "when_visible", but doInit is called only first time, the window was opened.

Of course, I could invalidate context on closing the window (as I manage to fire event, that the window can be closed), but may be there is a simple way to make lifespan working similar to "normal" views?

Thank you!

Best regards,

Nick

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2005 at 09:15 AM

    Hi nick,

    What kind of popup window do you want(Confirmation dialog,External, or a regular popup)?

    -wael

    Add a comment
    10|10000 characters needed characters exceeded

    • Hallo Nick,

      call <b>window.destroy()</b> instead of <b>window.close()</b>. Calling the close-method does not destroy the affected view controllers because the window is only closed but not destroyed. It's just invisible at the moment. Consquently the hook-method <i>wdDoInit()</i> is not called again by the Web Dynpro Runtime.

      Greetings, Bertram

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.