Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 03, 2015 at 09:46 AM

    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.

    Raising Data Loss Popup for Custom Component

    Br,

    Navn

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Nov 05, 2015 at 06:45 AM

    Hi Experts,

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

    Thanks,

    Anil

    Add comment
    10|10000 characters needed characters exceeded