cancel
Showing results for 
Search instead for 
Did you mean: 

WorkProtect message string

former_member190457
Contributor
0 Kudos

Hi

I am using workprotect and would like to have a different message than 'you have unsaved data'.

Can I control that somehow from my WDPJ app?

Thanks a lot

Vincenzo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please check the following link.

http://help.sap.com/saphelp_nw70/helpdata/en/88/585d420447e054e10000000a155106/content.htm

Also you can use isChangedByClient() method which is available for a node element. This method returns a boolean value. So if any of the attributes for a particular element changes it will return true. You can loop through the node for checking each element for the node size. Depending on the return value you can display your custom message.

Hope this helps.

thanks & regards,

Manoj

former_member190457
Contributor
0 Kudos

Thanks for replying,

I am currently using isChangedByClient, but it works only for input fields.

Drop down lead selection change is not detected.I'd rather not have to code a change detection method for each drop down.

Any other suggestion about change detection and popup custom string?

Thanks a lot

Vincenzo

Former Member
0 Kudos

Hi,

For dropdowns you can add action method for onSelect event. In this you explicitly set a common global variable or a context attribute to true. Check this variable or attribute as well in your validation method.

Hope this will help.

thanks & regards,

Manoj

Answers (1)

Answers (1)

former_member190457
Contributor
0 Kudos

In the end it cannot be done other than doing it manually.