on 09-18-2007 5:25 AM
Hi,
I am modifying the ESS SP10's Leave application.
I am curious as to how FPM relates to Work Protect mode.
When I test out the application it is able to detect unsaved data, but where is the code that does this check? I have read about Work Protect Mode (http://tinyurl.com/2cbfk2) but when i searched the codes i could not find any references to the WDPortalWorkProtectMode class.
Does FPM call this class?
If FPM calls this class on my behalf, the question is how FPM knows I have unsaved data?
Does the isDirty method have anything to do with this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the link.
But does it work the same if my application uses the FPM framework and not just WD?
I thought that FPM should call the WDPortalWorkProtectMode class on my behalf, as I do not see any codes inside the standard ESS leave application that calls the WDPortalWorkProtectMode class directly. Yet when i try to navigate away from the ESS Leave Request page, it correctly warned me about unsaved data.
I am very curious how FPM accomplish this feat, in the hope that I can do the same as well.
Hi,
Yes you are right.
FPM detects that the application has unsave data thru the isDirty() method and calls the 'WDPortalWorkProtectMode' class for the application which has unsaved data.
If you open the FPM DC, you will be able to see the code for the same.The code snippet just checks the dirty flag and calls the workprotectmode method.
Regards,
Sharadha
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.