cancel
Showing results for 
Search instead for 
Did you mean: 

clicking on 'tray' leads to 'Unsaved data' message

former_member186444
Participant
0 Kudos

I have a tray on a Web dynpro ABAP screen. If it is clicked (without any other action taking place) and then the browser close button is clicked, we are prompted with an Internet Explorer 'You have unsaved data' message'. I've tried to use the 'l_portal_manager->set_application_dirty_flag' method but the message still appears.

Any ideas?

thanks,

Malcolm

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member186444
Participant
0 Kudos

I managed to solve this by implementing OSS Note 1757546.

Thanks for the responses.

Former Member
0 Kudos

Hi,

Usually the method you used handles the message you are getting.

What code have you written in this method?

-Manish

former_member186444
Participant
0 Kudos

Hi Manish,

there's is no code attached to this and it is an Internet Explorer message.

Malcolm.

Former Member
0 Kudos

You tried this code:

data lr_componentcontroller type ref to ig_componentcontroller .

data L_API_COMPONENTCONTROLLER type ref to IF_WD_COMPONENT.

data L_PORTAL_MANAGER type ref to IF_WD_PORTAL_INTEGRATION.

L_COMPONENTCONTROLLER =  WD_THIS->GET_COMPONENTCONTROLLER_CTR( ).

L_API_COMPONENTCONTROLLER = L_COMPONENTCONTROLLER->WD_GET_API( ).

L_PORTAL_MANAGER = L_API_COMPONENTCONTROLLER->GET_PORTAL_MANAGER( ).

call method L_PORTAL_MANAGER->SET_APPLICATION_DIRTY_FLAG

exporting

DIRTY_FLAG = ABAP_FALSE

call method L_PORTAL_MANAGER->SET_WORK_PROTECT_MODE

exporting

MODE  = NONE

Refer this:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/b76f4169e25858e10000000a1550b0/content.htm

-Manish


former_member186444
Participant
0 Kudos

oh yes, I have tried that but it did not work for me.

Thanks.

Former Member
0 Kudos

This one also:

call method L_PORTAL_MANAGER->SET_WORK_PROTECT_MODE

exporting

MODE  = NONE

Also try this:

CLOSE_WINDOW overrides the WorkProtect mode in the portal, that is, for CLOSE_WINDOW=TRUE there is no WorkProtect popup

-Manish


former_member186444
Participant
0 Kudos

anyone?