cancel
Showing results for 
Search instead for 
Did you mean: 

Need "Do you want to save popup" (yes/no) at close of WEB UI window and on Navigation bar

former_member202771
Contributor
0 Kudos

Hi Experts,

I have a requirement where in a popup should be thrown to save the unsaved data or not.

This should happen

- When the user clicks the navigation bar on the left hand to move to another Workcenter

- When the user clicks the "Close" button of the browser to close the current session

Please share your expertise.

Thanks and Regards,

Anil Supraj

Accepted Solutions (1)

Accepted Solutions (1)

navn_metts
Active Participant
0 Kudos

Hi Anil,

Please go though below link. It will help you in understanding how to raise a data loss popup. You can use the same in your case also.

Br,

Navn

former_member202771
Contributor
0 Kudos

Hi Naveen,

This data loss popup seems helpful. I will try this out.

one more question. Is there any way on how to find out which method is getting called when we close web ui session or when we click a button on navigation bar ?

Thanks,

Anil

former_member202771
Contributor
0 Kudos

Hi Naveen,

I have these code blocks already in place. Aso an additional check is in place for bypassing the popup.

  lr_access = cl_crm_uiu_bt_channel_asp_fac=>get_instance( ).

  lv_data_loss_enabled = lr_access->if_crm_uiu_channel_aspects~is_data_loss_enabled( ).

* Enable Data Loss Popup

  super->do_cleanup_context( ).

* disable dataloss popup (if active before)

  IF lv_data_loss_enabled = abap_true.

    SET HANDLER on_before_wa_content_change ACTIVATION abap_false.

  ENDIF.

Disable data loss condition is failing for me. Is there any such configuration where this flag is enabled/disabled ?

This is always catching a negative case for srqm_incident_h component. it also has a comment-“for IC, the data loss should not happen message is shown as comment”.

Is there some standard configuration or anything like restriction of popup based on component.

Can you please comment.

Thanks,

Anil

Answers (1)

Answers (1)

former_member202771
Contributor
0 Kudos

Hi Experts,

How do I get a Data Loss Popup on close of browser ?

Thanks,

Anil