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.
Thanks....

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
Regards,
Nicolas.

Similar Messages

  • Data loss popup - on SAVE button

    Hi Friends,
    basically on webui for any transactions we will have a SAVE button on the overviewset...  we can enhance that viewset and redefine that event handler SAVE to write our own logic...
    but when we do some changes to a transaction and hit standard BACK button( this will be available along with forward button, on right hand side top), it gives a data loss popup, do u want to save , with buttons, Yes/No/Cancel.
    if we press Yes, it saves the transaction too.. but how and where can we write the logic we wrote in SAVE button( on viewset ), when on data loss pop up, YES button is pressed on the pop up??
    Any thoughts
    RD

    Hi Sarat,
    thanks for you reply
    but could you please explain little more on this. which close event are you talking abou?
    i have say bt115H_SLSO/SOHOverview.  are you talking about the do_handle_event of this IMPL will trigger when i click yes in the popup??
    whic IMPL class i can catch this close event which you mentioned?
    htmlb_event_ex attribute of the close event of which IMPL's method..
    could you tell me how exactly this close event is catched?
    thanks
    RD

  • Javascript help needed (confirmation for cancel button )

    Hi guys!
    I am not good at javascript but am going to improve shortly :-). Now i need very quick fix.
    I'm using <html:cancel> button in Struts 1.1 and I'm using without thinking the following code:
    <html:cancel onclick="bCancel=true;" >
    <bean:message key="cancel.operation"/>
    </html:cancel>
    It is not that important though. I would like very much to alert user on possible loss of data (long multipaged form - could press mistakingly, who knows).
    Would you, please post the javascript code that is needed to accomplish this - just alert and if yes - cancel, no - leave alone?
    I'll really appreciate this.

    Thank you for your response.
    I also manage to write this. Is this correct?
    <script language="JavaScript">
    function ensure() {
    return confirm("Are you sure that you want to cancel this operation?");
    </script>
    <td colspan="3" align="center">
    <html:cancel onclick="bCancel=ensure();" >
    <bean:message key="cancel.operation"/>
    </html:cancel>
    </td>

  • 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 below fields.
    but if user enters the wrong data on InpuLIstOfValue text field and clicks on maginfier Glass,no results found on the popup window, so upon click of "CANCEL" button on popup window ,
    is there any way to remove the old data on InpuLIstOfValue Filed ?
    Basicaly i am looking for the capturing the CANCEL button event on the popUpwindow ,based on event status .
    PLase let us know if any hints ?
    Thanks

    Step by step:
    1. Create the converter class:
    package view.converters;
    import java.util.Collection;
    import java.util.Collections;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.convert.Converter;
    import org.apache.myfaces.trinidad.convert.ClientConverter;
    import org.apache.commons.lang.StringUtils;
    public class LOVConverter implements Converter, ClientConverter {
      public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) {
        if (StringUtils.isBlank(value)) {
          // cancel event was triggered, so do something
        return value; // if value is not an instance of String you need to convert it to its primary type (Number, Date, String, etc)
      public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value)
        if (value == null || /* value is empty in its primary type */) {
          // cancel event was triggered, so do something
        return value.toString();
      public String getClientLibrarySource(FacesContext facesContext)
        return null;
      public Collection<String> getClientImportNames()
        return Collections.emptySet();
      public String getClientScript(FacesContext facesContext, UIComponent uiComponent)
        return null;
      public String getClientConversion(FacesContext facesContext, UIComponent uiComponent)
        return null;
    }2. Declare the converter in faces-config.xml:
    <converter>
      <converter-id>LOVConverter</converter-id>
      <converter-class>view.converters.LOVConverter</converter-class>
    </converter>3. Your inputListOfValues should look like this (see the property converter="LOVConverter"):
    <af:inputListOfValues popupTitle="Search"
                          value="#{row.bindings.DepartmentId.inputValue}"
                          model="#{row.bindings.DepartmentId.listOfValuesModel}"
                          required="#{bindings.EmployeesView1.hints.DepartmentId.mandatory}"
                          columns="#{bindings.EmployeesView1.hints.DepartmentId.displayWidth}"
                          shortDesc="#{bindings.EmployeesView1.hints.DepartmentId.tooltip}"
                          converter="LOVConverter"
                          id="ilov1">After that, when the user clicks the Cancel button, both methods (getAsObject and getAsString) should be invoked, and then you would be able to reset the component value (using uiComponent parameter).
    AP

  • NO data change message during CANCEL button of ME52N

    Hi Gurus,
    When i do changes in ME52n then press save button i get error message. Then i press CANCEL button, instead of going to screen 0 it gives an information message ''No Data Change' which i dont want.
    Please give your suggestions.
    Regards,
    Milind

    has someone added an enhancement or exit coding?  Doesn't sound like standard SAP....sounds like error in someone's PF Status handling code.

  • Listener for cancel button of dialog

    Hi
         What shud i add as listener for the dialog , so that when i press cancel button the listener shud get executed?. Alos is there any listener to know if the user has pressed the close(x) mark of the dialog and closed the dialog. Any help wud be appreciable
    Thanks
    Veena

    try beforesubmit handler
    Ref:
    http://dev.day.com/docs/en/cq/current/widgets-api/index.html?class=CQ.Dialog

  • JSP Data table - Rendering for command buttons.

    Hi All,
    We are designing a JSP page where results from table have to be thrown on a data table. (h:dataTable)
    Based on one column value on the data table, we need to render a command button for each row of data table.
    For example, I select the employees from a table and throw it on data table.
    Only for those employees where address is not present, I need to enable an "Update address" command button.
    (Command button "Update address" is also part of data table.)
    Is it possible to accomplish this on a data table?
    If so how should we code the "rendered" tag of the command button in data table.
    Any help would be greatly appreciated.
    Thanks.

    Sounds like the JSF forum would be a closer alignment, but in general
    - retrieve your information from the database into a list of Employee beans.
    - Have your h:dataTable use the list of Employee beans as a datasource
    - have the rendered attribute of your update button depend on the value of employee.address maybe #{empty employee.address}
    cheers,
    evnafets

  • Big physical image size for thumbnails on blog overview page

    I have a problem with the physical size of the thumbnails on the blog overview page with iWeb '08 (version 2.0.3):
    In my blog overview page- see http://web.mac.com/steinfatt/site/Blog/Blog.html - the thumbnails are displayed with a width of about 182 px, but the images are not resized to this width by iWeb. iWeb only sets the width-attribute in the img-tag to this size, but the images themselves have a width of 630 px. As a result 878 KB of image data is loaded with the blog overview page.
    On the single pages of every blog entry iWeb resizes all pictures to the appropriate width of 400 px.
    The original images have a width between 621 and 2560 px and are transferred directly from iPhoto to iWeb via the media browser.
    Does anybody know about this issue and are there any solutions or work arrounds?

    To which size should I resize the images? And why does iWeb '08 resize my images to a 400 px width for the blog pages with a single message, but does not so for the blog overview page?
    I think, iWeb '08 should also resize the images to the appropriate value on the blog overview page (in my case to a width of 182 px).

  • "HISTORY DATA"tab in address menu on customer overview page

    Hi,
    In sap crm 6.0 system after you confirm the customer and go on to the customer overview page under the address menu, there is a  tab "HISTORY DATA" which gives the details of all the addresses stored for the customer till date.
    In sap crm 7.0 system, that tab is missing. Could anyone please help me in activating the same tab "HISTORY DATA" in 7.0 system.Please let me know what changes needs to be done. Thanks

    Right-click a blank part of any toolbar, and de-select '''Menu Bar'''.

  • How to remove the EDIT button from Overview Page

    Hi,
    I have a overview page for Service Request(SRQM_INCIDENT_H - component). Now, I want to remove the EDIT button from the overview page and want to place it for each assignment block.
    I have seen the there is concept calles VIEW_GROUP_CONTEXT. However, I am not sure how exactly I need to apply that and what code and where I need to write.
    Please help me.
    Thanks,
    Sandeep

    Hello Sandeep,
    we removed in our system a lot of the standard buttons in this overview page like this:
    METHOD in IMPL-Class: IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS
    Coding example:
    CALL METHOD super->if_bsp_wd_toolbar_callback~get_buttons
        RECEIVING
          rt_buttons = lt_buttons.
      CLEAR rt_buttons.
    * Alle Buttons außer die genannten werden an RT_Buttons angehängt und damit angezeigt.
      LOOP AT lt_buttons INTO wa_buttons.
        CASE wa_buttons-on_click.
          WHEN 'NEW_FROM_TEMPLATE' OR 'DIV_CREATE_COPY' OR 'AUTO_COMPLETE' OR 'AUTO_SUGGEST_PROBLEM'
                OR 'AUTO_SREACH_KNOWART' OR 'SENDEMAIL' OR 'PRINT_PREVIEW' OR 'OUTPUT' OR 'DISPLAY_OBJ_REL' .
    *     Do nothing
          WHEN OTHERS.
            APPEND wa_buttons TO rt_buttons.
        ENDCASE.
      ENDLOOP.
    Kind regards
    Manfred

  • 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,
    Jens

    Hi,
    one solution is to deactivate this in the customizing of the businessrole.
    Add function profile PERSONALIZATION with value ALL_DISABLED to disable all personalization functionality.
    There are some other values possible like:
    WA_ENABLED or PP_ENABLED
    Just test a little bit arround which is the correct one for your requirement. ALL_DISABLED deactivates all personalization.
    Kind regards
    Manfred

  • Blank row added after cancel button on create page

    Hi All,
    I have a create item page where I insert items into the item table in the database.
    On press of the cancel button on this create page, the control reaches a itemlist page with my old search criteria and result but with a new blank row added to it.
    Anybody know what's wrong?

    Sorry, I misunderstood your previous question. When the cancel button is pressed. I am using pageContext.forwardImmediately with parameters to forward back to my search page. Then in the search page controller I call the AM initQuery method to run the query. My initQuery method has the following code,
    StringBuffer whereClause = new StringBuffer(200);
    Vector parameters = new Vector(3);
    int clauseCount = 0;
    int bindCount = 0;
    setWhereClauseParams(null);
    if ((Program != null) && (!("".equals(Program.trim()))))
    whereClause.append("PROGRAM = :");
    whereClause.append(++bindCount);
    parameters.addElement(Program);
    clauseCount++;
    if ((PId != null) && (!("".equals(PId.trim()))))
    Number PIdNum = null;
    try
    PIdNum = new Number(PId);
    catch(Exception e)
    throw new OAException("AK", "FWK_TBX_INVALID_EMP_NUMBER");
    if (bindCount > 0)
    whereClause.append(" AND (P_ID = :");
    else
    whereClause.append(" (P_ID = :");
    whereClause.append(++bindCount);
    whereClause.append(")");
    parameters.addElement(PIdNum);
    clauseCount++;
    setWhereClause(whereClause.toString());
    if (bindCount > 0)
    Object[] params = new Object[bindCount];
    parameters.copyInto(params);
    setWhereClauseParams(params);
    executeQuery();

  • Browse for folder button in JSP Page

    Trying to create a browse for folder button in a JSP page. Anybody with some ideas on how to do this? Applet, Bean, some other way? Has anybody done this before? Is it even possible?
    Thanks in advance!

    We have done it with Struts before. Also seen it done with javascript.

  • I can't cancel my plan, because I can't find the cancel button on the page

    I don't have a cancel link shown on my account page as shown in your help document
    helpx. adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html
    Cancel your membership or subscription | Creative Cloud
    There is no way to contact support by chat or phone...all links end up in this forum.
    Please help me cancel my plan.
    Thank you.

    You might need to wait for the weekend to pass...
    Chat support - For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Creative Cloud support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html ( http://adobe.ly/19llvMN )
    Phone support | Orders, returns exchanges
    http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Ideas for a colour-based overview page

    Does anyone have any good ideas of how to create a page that is an overview of a production facility? It would be based on 1 or 2 tables, updated once each minute, and would show the status of each of 176 production units. Each unit would need to show 2 or 3 bits of information: they could all be colour-coded or all except one, which could be numeric. Ideally you would be able to click on the unit to go to detail pages on that unit. The colour codes could be simply colour or could be icons; there are probably advantages in each.
    Any thoughts on how to construct something like this?
    I should admit that I am still quite new to ADF. Using 11.1.1.2 at the moment but maybe 11.1.1.4 in a month or two.

    You can find a ton of potential student projects here:
    http://mindprod.com/projects.html
    Dunno if any of them fit your criteria - but it's a start...
    Good luck!
    Grant

Maybe you are looking for