cancel
Showing results for 
Search instead for 
Did you mean: 

FPM and work protect

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
0 Kudos

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.

Sharadha1
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks.

I have awarded you 10 points for your answer.

As as aside, how do I open the FPM DC as mentioned by you?

Sharadha1
Active Contributor
0 Kudos

Hi,

The code will be inside either the xssfpm or xssutils DC inside the SC 'SAPPCUI_GP'. These two DCs have the code for the FPM.

Regards,

Sharadha

Answers (0)