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

How to get the unsaved state in a web dynpro application

How do I get the workprotect APIs dirty flag in a web dynpro application? Is there an event I can subscribe to?

I want a mechanism to know if the data on a Web Dynpro screen changed since it loaded.

Thanks

Sid

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 28, 2005 at 06:07 PM

    Hi

    You can use the workprotect API's.. Refer this link

    http://help.sap.com/saphelp_nw04/helpdata/en/17/76d93f130f9115e10000000a155106/frameset.htm

    Well here you can use these API's in any of the hook methods. For instance on loading of the WebDynpro Component in the wdDoInit() method if you say something like

    WDPortalWorkProtectMode.setApplicationDirty(true);

    Then you cannot navigate away from this WebDynpro iView in the Portal until you say

    WDPortalWorkProtectMode.setApplicationDirty(false);

    But anyway the above link would help you acheive it. But ensure that in the Portal WorkProtect Mode setting you choose the kind of setting that you need.

    regards

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

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.