Data loss popup for cancel button on overview page


Hi Experts,
Data loss popup generally appears on UI, when i try to navigate with out saving the changes. This is a standard SAP behaviour.
But, i come across the requirement where this data loss popup should also appear on clicking the 'Cancel' button on overview page on UI.
I understood that, this popup will be triggered by the methods ON_BEFORE_WA_CONTENT_CHANGE & IF_BSP_WD_EVENT_HANDLER~HANDLE_EVENT of the window impl class.
Please suggest how can i make this popup work in case of Cancel button as well.


Hi bkvs,
Usually when you click the "Cancel" button that means you don't want to save your entry... hence displaying the dataloss popup doesn't make really sense to me. However, you may want the user to confirm that he really wants to cancel.
So I would suggest to redefine the EH_ON_CANCEL method of your view, to display a simple confirmation popup before you actually cancel everything. This wiki will show you how to do it:
Creating popup message in webclient UI - CRM - SCN Wiki

October 11, 2015

Data loss popup for cancel button on overview page

Hi Experts, Data loss popup generally appears on UI, when i try to navigate with out saving the changes. This is a standard SAP behaviour. But, i come across the requirement where this data loss popup should also appear on clicking the 'Cancel' butto

InputListofValue PopUp window CANCEL button event capture ?

HI All , Jdeveloper version 11.X.6. i have explained the outline of issue below: User enter some data on InpuLIstOfValue text field and click on the maginfied Glass, the pop opens and selects some data and click 'OK' ,it will display appropriately on

Supressing Drag&Drop for Assignment Blocks in Overview Page

Hi Experts, in the standard setup it is possible to change the order of assignment blocks in a Web UI Overview page by means of drag and drop. Does anybody know how this feature can be suppressed if not desired? Thanks, JensHi, one solution is to dea

On click of cancel button avoid execution of query

Hi, I am going from one jsff page to other on click of a button In the second page i am coming back to the 1st page on click of the cancel button But on click of this cancel button my query is getting executed again and is taking long time to come ba

How can we create a OCA button for Overview page?

Hi Experts,    Please help me with all the steps for creating an OCA button for Overview page. I have already tried it for table view in Viewset and it is working fine but how to do that in Overview page. Thanks and Regard, Pranoy KumarHi Pranoy, You

ADF Input Date - To remove cancel button while clicking glyph

Hi Guys, In the Input date if we use the <af:ConvertDateTime> then in the popup we will have time zone,OK and Cancel Button. In this i want to remove the Cancel Button. Why i want to remove is in the popup the Close button is already fullfilling the

LOV cancel button displays 'No Data Found'

I have 5 fields on a form where the users can search different information based on what they type into the search fields. Once they have their search criteria they hit a 'Search' button, I have a when_button_pressed button trigger on the search butt

Message popup cancel button

Hi I am using the message popup step in TestStand in the beginning of my sequence. I defined 2 buttons - "OK" button and "Cancel" button. The "OK" button works fine but the "Cancel" button does not function as desir

Javascript Confirm popup Yes, No button instead of OK and Cancel?

Hi, I wrote javascript for confirm popup like below: var answer = confirm ("Are you sure you want to delete this item ?"); It is showing OK Cancel button popup , but I want to display Yes No buttons on popup insted of OK Cancel buttons... Apprec

When will apple bring back the onscreen cancel button for incoming calls?

when will apple bring back the onscreen cancel button for incoming calls?No one here would know, as there is no one from Apple here. Suggest such to Apple using this: other 2 answers

HT5527 Each time I try to change my plan & purchase for ICloud storage the cancel button is my only option...the done option never lights up, how to I do the upgrade then?

I am unable to purchase a downgrade or upgrade since the cancel button is my only option..cannot get to "done", what can I do to get upgrade completed?If you wish to continue your current storage level, the instructions are here: http://support.

Health data loss

Hi, I am using iOS 8.1.1. Last night, everything works fine. But today, when I booted up the Health app, my data was gone, and also the dashboard was reset. I have recorded weight and BMI for almost two months. Actually, it was not the first time thi

ActionListener,action  called for all buttons.

hi, I have developed my own toolbar in that i have my own buttons as input type='image' I have attached action and actionListener for that tag. Problem... If i give action or actionListener to one button it is invoked for all the buttons but i did't

Application Panel Cancel button

Hi, We are using Cancel button provided by Application Panel to navigate back to the previous page (From Create page to Search page). As we hit the cancel button, we launch a popup to continue or stay on the same page. As soon as the popup is launche

User-defined F4 Search - cancel button in the title bar

Hi, I implement user-defined F4 search for my WD application. F4 view comes from another component (as described in the tutorial). Everything is fine, I see that view popuped when F4 is clicked for an input field. My problem is, how to make visible t

Popup for Datagrid

Hi all, I need a help regarding popup for displaying my data grid which has too many columns.Right now the whole data is not being diplayed because of too many columns. I want to use an expand all icon, which when clicked opens a popup containing the

Downgrade Admin to "Managed with parental controls" - no data loss?

I want to change my daughter's iMac account (originally my wife's computer) from "Admin" to "Managed with parental controls." Is this possible while saving all of her school work/music/etc. which are now under the admin login/account?

Popup with four buttons

Hi, I'm a newbie in ABAP and I want to create a popup with only four buttons (with my options), like a questionnaire, but without cancel button. I see the function C102_POPUP_TO_CONFIRM, I want something similar but without cancel button. can someone

[DATA LOSS] I closed the Tab Groups and all my tabs dissapeared. How can I recover the tabs in Firefox 26? Would you please just delete this feature?

Thank-you in advance for reading all of this. A slip of the mouse in trying to return to the left-most tab caused the tab groups feature to take over the window. I completely failed to comprehend what I was looking at and closed the thing by clicking

How to remove default Apply, OK and Cancel buttons in portlet edit mode.

Hi, Iam facing problem in customizing default edit mode of portlet, my question is how to remove those default buttons and how to implement our own links for SAVE and CANCEL functionality. Because if we implement our own <form> in edit JSP page then