Work protect  Feature?

hi,
Please explain work protect feature in Portal. I am new to portal. please explain in detail
Regards,
Bob

Hi Bob,
To avoid losing unsaved data when navigating from one iView to another, the SAP Enterprise Portal provides the work-protect mode. Having unsaved data in an application is also called “dirty state”. In this feature you can protect unsaved data by setting a page flag that causes new objects to open in new windows during navigation.
Some more info...
Workprotect mode is a feature of the portal framework which can be used via javascript API by the applications which are running in the portal. This javascript API is the EPCM file.
If you want to use the workprotect mode of the portal you have to define a variable in your javascript which will hold the status of the dirtyFlag.
var dirtyFlag = false;
Now u can tell the portal that you will take part of the workprotect mode by subscribing to a special event of the portal.
epcm.subscribeEventReliable("urn:com.sapportals.portal:workprotect","inquiryProtection",window,"my_protectionHandler");
Now define a javascript function:
function my_protectionHandler( event ){
return dirtyFlag;
What will happen:
You have subscribed to an portal event which will be thrown when the user will navigate. In order that the portal knows which javascript function it must call to the your dirtyFlag you tell him the name of your function, ie. my_protectionHandler.
The only thing is now that you have to set the dirtyFlag depending on your business.
This is the workprotect function for portals.
Regards,
Pooja.
Message was edited by: Pooja S

Similar Messages

  • Work protect - admin settings in Portal?

    Hi,
    Is there any config for switching on work protect mode?
    I have a 2 portals with ESS ERP2004 that behave differently.  eg under Personal Data > Address Data if I make a change and hit exit
    Portal 1
    I get a pop up box asking if I want to continue and loose changes
    Portal 2
    a new portal is kicked off leaving the edited address open in the orginial window.
    I'm guessing this might be due to different setting in work protect mode but not sure where the setting is. 
    TIA
    J

    hi,
    Are you asking where the work protect feature has to be changed?
    Go to personalize link - > work protect mode.
    1. protect unsaved data
    2.choose action in popup on unsaved data
    3. discard unsaved data.
    select any and restart the browser.
    There is also workprotect apis
    Regards,
    Ganesh N

  • Work Protect Mode for IAC/BSP iViews

    Does anyone know how I can enable Work Protect Mode for BSP or IAC iViews in the portal?
    It works correctly as per the desired mode level for WDP iViews, but when a user makes changes on a form on a BSP/IAC and navigates away from the page, no pop-up appears.
    Is some JavaScript required in the BSP to set the page as "dirty" or to subscribe to the Work Protect event handler in the portal, or is there a simpler way to enable this or a similar feature?
    Thanks,
      Tom

    Hello friends,
    I have same issue.. I have applied Work Protect Mode to 3.. but it doesn't work for IAC iViews.
    Is your issue resolved by any mean..
    I cant apply Java script code on every back-end application...
    the issue again... is this doesn't come when user directly logs in through ITS. over there user gets the alert. but only when user moves from Portal the work protect mode doesn't.
    It  became very urgent issue.
    I appreciate any help..
    Regards
    pankhuri

  • Work Protect Mode for transactional iView...

    Hi Experts,
    Please help me to understand significance and features of Work Protect mode in portal.
    How to implement it.
    But main point is, is it possible to implement Work Protect Mode in Transactional iViews, i.e. let say we have created one transactional iView for SU01 tcode, which opens in New Window.
    Now if I directly close that window then ideally one popup should come telling the data is not saved.
    Also let me know if there is any other way to achieve my requirement.
    Appreciate for help.
    Regards,
    Ravi

    Hi Ravi,
    Thanks for your response.
    Kindly suggest what vaue we should give in this property "workprotect.mode.default".
    I was going through one link : [http://help.sap.com/saphelp_erp2004/helpdata/en/37/50fb5066f9db43b3b5d5fc8de0c051/content.htm]
    Also are you sure this setting will enable WorkProtectMode for Transactional iView as well.
    Regards,
    Ravi

  • Does the macbook pro have a password protect feature?

    i'm debating whether or not I need the Kensington ComboSaver Notebook Lock for college. if the macbook pro has a password-protect feature... maybe i don't need the lock

    How would they know there was a password?  Are you hoping to be able to say, "Excuse me, sir, but please don't steal my laptop, it's password protected."  A thief wouldn't care, even if they slowed down to listen... they'd just erase your hard drive and sell the machine.  (Or maybe not even erase the hard drive.)
    Password protection is possible on many levels, some more secure than others, but none will discourage theft.  Password protection's role is to protect against things ranging from casual snooping to determined spying, and the method used determines what can be protected against.  For true data security, you must use encryption.
    However, if you're looking to keep your laptop from getting stolen, you need to simply keep it close, or locked up when not adequately close.  A security cable would be a good investment for leaving a computer unattended in a dorm room or apartment.

  • Group Work List Feature in SharePoint 2013

    Hi ,
      I want to use Group Work list feature in SharePoint 2010 calendar list in SharePoint 2013 to schedule meeting with resources such as conference room. But Group Work list feature is not present in 2013. how to achieve resource schedule in 2013
    SharePoint calendar list.
    Thanks in Advance.
    nspkaran
    NSPKARAN

    This application help manage the booking of meeting rooms, office equipment
    http://igotta-it.com/
    http://office.microsoft.com/en-us/store/booking-of-resources-WA103893832.aspx
    MCTS,MCPD Sharepoint 2010. My Blog-
    http://www.sharepoint-journey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful

  • Why can't I remove the Work Offline feature?

    I keep getting an error message when I open a new Firefox window which says: Offline mode, Firefox is currently in offline mode and can't browse the Web. Uncheck "Work Offline" in the File menu, then try again.
    I do not have the "Work Offline" feature checked. I can not open my Home Page or any other website. I've never had this problem before & I need to know why Firefox has stopped working. Do I need to reinstall the program or is there something else I can do?

    You can create a new Boolean pref with the name network.manage-offline-status and set the value to false.
    You can right-click on the about:config page to open the right-click context menu and use "New > Boolean" to create a new Boolean pref.
    Name: network.manage-offline-status<br />
    Value: false
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    See also http://kb.mozillazine.org/about%3Aconfig

  • Clear flag of Work Protect Mode

    Hi there,
    I'm using work protect mode functionality in my WD ABAP application. The problem I'm facing at the moment is that I would like to clear this flag explicitly before I trigger a navigation. The scenario looks as follows:
    1. I change data on my OIF screen.
    2. I press a button to navigate to an OCI catalogue and suspend the current WD application. (Navigation is done inplace)
    3. Some data has been chosen and the navigation back to the WD application (resume) is done --> Application is set to dirty
    4. Now I want to navigate to the OCI catalogue again. Before navigation is done, the dirty flag is set to false explicitly.
    Even though the dirty flag is set to false, the work protect mode is doing his job and opens the OCI catalogue in a new window, which is intended be displayed inplace. Now to my question:
    Is there a way how I can clear the Work Protect Mode or set it to false explicitly?
    Kind regards,
    Albert

    Not sure if it will solve your particular problem, but have you tried setting the Work Protect Mode to APPLICATION_ONLY?
    More info here: http://help.sap.com/saphelp_nw70/helpdata/EN/45/b76f4169e25858e10000000a1550b0/frameset.htm

  • Customizing the work protect mode

    Hi,
    I have a problem in customizing the sap providing work protect mode. When I activate the work protect mode, a pop up is coming up and the default radio button selected is to open the unsaved data in a new window. Can you please let me know can we change the default selection by any option like
    1. modifing the com.sap.portal.epcf.loader. par file
    2. By any configuration. etc..
    please help me .
    Regards,
    Rambabu

    I don't think there is a configuration available to change the default selected radio button.
    You will need to make the changes in the par file com.sap.portal.epcf.admin.par
    u2022     Download the com.sap.portal.epcf.admin.par
    u2022     Unzip the com.sap.portal.epcf.admin_core.jar and edit the WorkprotectPopup class
    Thanks,
    Shanti

  • Work Protect Popup coming up on Confirmation Page

    I understand how the Work Protect options works, and we have chosen to enable it in our ESS installation.  However, since the install of SP14 for ESS I have noticed the Work Protect Popup coming up for some countries when trying to leave the Confirmation Page via the "What do you want to do next?" links.
    The links on the backend have not changed, and I would assume since I'm on the confirmation page, the transaction should be complete and no issue with data saving should be present.  Also, it depends on which link I hit as to whether or not the popup appears. 
    For example, in Taiwan, when completing a Personal Data application change, I come to the Confirmation screen and am asked "What do you want to do next?" with the standard options
    1. Go to Overview Page
    2. Go to Areapage
    3. Go to ESS Homepage
    If I select the Overview Page, the request is executed without issue.  However, if I select either of the other two options, I get the Work Protect mode popup asking how I want to proceed. 
    Has anyone else seen this issue?  And if so, any idea how it is corrected?

    I am a colleague of Robert Bimonte's.  FYI, the SAP Development team in China has provided a fix for this bug.  In the interface controller implementation of the Overview, Detail, and Review views, the "isDirty" method must be modified to include this code:
      public boolean isDirty( )
        //@@begin isDirty()
            return wdThis.wdGetVcPerBankTWDetailController().isDirty();
        //@@end
    The 'return' statement above replaces the 'return true' value.  This fixes the problem for most of the applications.  One exception is for the Taiwan Personal ID's application, which you must make the fix described above, plus add the 'isDirty' method to the Component Controllers of the 3 views as well.

  • Work Protect Mode

    Hi All,
    I have a requirement to display the work protect mode pop up when the user clicked on the log off link or user directly closes the window.
    Do any of you can confirms if this can be achieved by any means.
    Thanks in advance.
    Best Regards,
    Sash.

    Hi Sash,
    It can be achieved, but it will require some custom development.
    What you need to do is trigger the popup from the logoff link (before the logoff popup I guess) and from the body onunload event.
    The logoff link is inside the masthead, you can add a script there and call it before the logoff script is called.
    Body onunload is a little bit trickier, because you don't have access to the body tag... But what should work is add a script that changes the body onunload function. You could place this script also in the masthead.
              function addUnloadEvent(func) {
                var oldonunload = window.onunload;
                if (typeof window.onunload != 'function') {
                  window.onunload = func;
                } else {
                  window.onunload = function() {
                    if (oldonunload) {
                      oldonunload();
                    func();
    The function you need to create would be something like this:
              function workprotectPopup() {
                   if (EPCM.getDirty()) {
                        EPCM.popupOnUnsavedData();
    You can then add it to the onunload by using:
              addUnloadEvent(workprotectPopup);
    Regards,
    Johan

  • Work protect mode and wedynpro ABAP

    Hi,
    Does anyone know how the work protect mode should work for webdynpro abap?
    We are using webdynpro abap ivews for travel. When i click on the exit button within travel I get a pop up. If I navigate away i.e click on personal information I don't get a pop up.
    When I navigate away form a webdynpro java iview to personal information I always get a pop up.
    Shouldn't this happen  for webdynpro ABAP ivews as well?

    Hi
    In webdynpro java we have the class like WDPortalWorkProtectMode. But I could not be able get that in ABAP. Can you please help me by providing the name of the Class.
    Regards,
    Srikanth.

  • Work Protect Mode Pop up

    Hi,
    I would like to get the source for the Work Protect Mode pop up that we see in the portal.
    Can anyone point out where can I get the actual source code?
    Regards
    J

    Hi Kai,
    Thank you for the response...
    I am not sure of the location of the text you suggested, but I found that
    text is maintained in CL_FPM_CONFIRMATION_REQUEST abap class. this text is divided in to two text 1) This application contains unsaved data which may be lost. and 2) Do you want to continue without saving the changes? And append this is the class constructor.
    We can change the text here... But thought changing the text is not a solution for my issue, so I need to address the root cause....
    I contacted SAP (raised an OSS message) and working with them on this, as of now we modified our logic in Value Determination BADI and it is working fine 90%
    Update: modified Value determination BAdi and V_T77SP_2 table entry to solve this issue!
    Thanks,
    Pradeep

  • Work Protect mode and browser navigation?

    Through testing we have noticed some behaviors with Work Protect that I did not expect. Can anyone help?
    We are on EP6 SP18. When changing data (ie. setting the dirty flag) on applications (CRM PCUI for instance) and then clicking some other link, button, etc. anywhere within the browser content area, the Work Protect mode fires correctly and pops up a confirmation warning.
    However, in these cases:
    (1)user clicks forward/backward browser buttons
    (2)user manually enters URL in address bar
    (3)user close browser
    (4)user clicks mouse buttons for backward/foward navigation (such as 3rd or 4th mouse button programmed to do back/forward)
    ...Work Protect does NOT fire and catch those events.
    Is this truly a limitation of Work Protect or should we investigate further? I can not find any definate wording of the above issues/limitations in any of the documentation (help.sap.com or on service.sap.com in notes).

    Hi
    In webdynpro java we have the class like WDPortalWorkProtectMode. But I could not be able get that in ABAP. Can you please help me by providing the name of the Class.
    Regards,
    Srikanth.

  • Issue with Work Protect Mode

    Dear All,
    I am using SAP EP 6.0 SP21.I have enabled the work protect mode.
    Problem:I am in JSP page ,  I am trying to navigate to top level tab by selecting the option "Open in new Window" its navigating fine. I am closing the new window again from parent window i am trying to open 2nd lavel tab,instead of opening the 2nd level tab its openings the again top level tab, which i was slected before.
    But if i am navgating to top level then its working fine , it also works fine while navigating only in 2nd level.
    Only problem is after navigating from top level ,again navigating to 2nd level its not working.
    Please suggest,
    Thanks & Regards
    Manoj Sahoo

    It solved by upgrading the support pack.
    Regards
    Manoj SAhoo

Maybe you are looking for

  • Z77A-GD65 hangs on A2 at post...

    About a week ago i started getting this hang on boot, it will show the codes down in the bottom right of an otherwise blank screen and it stops at A2, it will sit there for anywhere from 30 seconds to 3 minutes, then the post finishes it shows the sp

  • Creating master detail rows

    using adf/bc with jsf. I have defined a master detail relationship between two entities. This relationship is a composition relationship. The entities are related by a view link which link the master and detail view objects. i have a need to create/i

  • Http-XI-File:  "The requested resource does not exist"

    i have a http-XI-File scenario, where i m sending a request from the HTTpClient application(i obtained that HTTPClientApplication from SDN itself), when i send the request, i receive a response in the internet explorer as "The requested resource does

  • How to transfer Notes from iPad 1 to the New iPad (3)

    Been using iPad 1 and have 221 Notes in the All Notes Account. The Gmail Account shows 6 Notes. The On My iPad Account shows 215. Just got the New iPad today. Could not transfer all the Notes over to the new device. No problems with  Contacts and Cal

  • ITunes full-screen option goes black

    Whenever I choose >full-screen< for watching movies in iTunes the screen goes black. I have sound but no visuals... Any ideas?