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

Similar Messages

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

  • Save input data from popup modal MVC

    Hi I am trying to save data from popup. When I execute my controller side data is not saved. Please see code below:
    View:
    @model IEnumerable<Model>
        <h2>Manage Dimension</h2>
           <link href="@Url.Content("~/Content/Gridmvc.css")" rel="stylesheet" type="text/css" />
           <script src="@Url.Content("~/Scripts/gridmvc.min.js")" type="text/javascript"> </script>
          <script src="@Url.Content("~/Scripts/js/bootstrap.min.js")" type="text/javascript"> </script>
          <link href="@Url.Content("~/Content/bootstrap/css/bootstrap.min.css")" rel="stylesheet" type="text/css" />
          <link href="@Url.Content("~/Content/bootstrap/css/bootstrap-responsive.min.css")" rel="stylesheet" type="text/css" />
    @using (Html.BeginForm())
        @Html.AntiForgeryToken()
        @*<html>*@
        <body>
            <hr />
            <div class="table-responsive">
                <table class="table table-striped  table-hover">
                    <thead>
                        <tr>
                            <th>
                                ID
                            </th>
                            <th>
                                Name
                            </th>
                            <th>
                                Value
                            </th>
                            <th>
                                Action
                            </th>
                        </tr>
                        @foreach (var item in Model)
                            foreach (var i in item.Values)
                                <tr>
                                    <td>
                                        <span data-bind="text: ID">@item.ID</span>
                                    </td>
                                    <td>
                                        <span data-bind="text: Name">@item.Name</span>
                                    </td>
                                    <td>
                                        <span data-bind="text: Value">@i.Value</span>
                                    </td>
                                    <td>
                                        <button type="button" class="edit-mode" data-toggle="modal" data-target="#myModal" id="c.ResellerId">edit</button>
                                    </td>
                                </tr>
                </table>
                <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                <h4 class="modal-title" id="myModalLabel">Edit/Add Dimension</h4>
                            </div>
                            <div class="modal-body">
                                <div id="dialog-form" title="Create new user">            
                                    <form>
                                        <fieldset>
                                            <label for="name">Name</label>
                                            <input type="text" name="name" id="name" value="" class="text ui-widget-content
    ui-corner-all"><br /><br />
                                            <label for="email">Value</label>
                                            <input type="text" name="value" id="value" value="" class="text ui-widget-content
    ui-corner-all">
                                        </fieldset>
                                    </form>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                                <button type="button" class="btn btn-default"  id="inviteRequest">Save changes</button>
                            </div>
                        </div>
                    </div>
                </div>  
                <br />
                <br />
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal" data-toggle="modal" data-target="#myModal" data-bind="click: Save">Add</button>
                </div>
                <script src="~/Scripts/App/Modal.js"></script>
                @*<script type="text/javascript" src="https://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js"></script>*@
                @*<script src="@Url.Content("~/Scripts/js/bootstrap.min.js")" type="text/javascript"> </script>*@
                <script type="text/javascript">
                    $(document).ready(function () {
                        $('#inviteRequest').click(function () {
                            console.log(1);
                            $('#myModal').modal('hide');
                            $.post('/ManageDimension/Create', { "Name": name, "Value": value })
                            alert("You clicked me!");
                            window.location.reload(true);
                </script>
            </div>       
        </body>
    </html>
     Controller:
      [HttpPost]
            public ActionResult Create( DataModel dimension)
                if (ModelState.IsValid)
                    db.Save(dimension);
                    return RedirectToAction("Index");
                else
                    return View(dimension); 

    Hi,
    This is a forum for Visio.
    To get more professional support, I recommend you post this question in MVC forum.
    http://forums.asp.net/1146.aspx/1?MVC
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who
    read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Greta Ge CHN
    TechNet Community Support

  • How to handle custom component data on overviewset save button CRM UI

    Hi,
    I have added a custom component to a standard view which is enchanted.
    I can handle any data with my buttons on the component but after editing data
    i need the save the data when the save button on the overview(top) is pressed.
    I have redefined save button of overview but i cant get my data.
    My node name is Root. I think i couldnt bind it to overview.
    How can i do that?
    Thank you

    Probably it can be done by
    http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebUITechnical-CreatingTableViewInWebUI
    i am trying
    Thank you

  • How do I create a save button to hide a dropdown and pass on the dropdown data to a label?

    Hi InDesign Scripting Experts!
    I'm desparetly looking for some help to get this issue resolved.
    Essentially I've a lot of PDF forms that've been designed by using InDesign CS4 and then converted to an interactive PDF via Adobe Lifecycle. The final 2 page PDF form has multiple textfields, a drop down and a save button. The users partially fill-in the form, select their name from the dropdown and then hit the save button prior to sending the PDF form to the client.
    The Save button does the following:
    - Passes on the data from the drop down to a label
    - Hides the drop down and
    - finally, hides itself ('Save' button)
    I understand InDesign CC has a lot of the Livecycle capability built-it. Hence I'm trying to design the inteactive PDF within InDesign CC. The textfields, dropdown etc. are easily done. The part that I'm stuck on is to get the 'Save' button to perform the above listed tasks.
    Any help will be greatly appreciated.
    Cheers

    Elizabeth,
    Presuming that editing the exisiting BOSTON is not an option, you may:
    1) Create a nostroke/nofill rectangle that covers all all word, then give it a white fill;
    2) In the Transparency palette flyout tick Make Opacity Mask with Clip unticked and Invert Mask ticked.
    That should remove the BOSTON from sight so you can retype it.
    You could use a black fill and leave Invert Mask unticked (if the black is black enough).

  • Is it possible to save a data portion starting from when a "save" button is pressed?

    Hi,
    The below attached vi acquires data from a sensor. The sensor signal output can be reset to zero and the data saved into a file. However, the saved data comprises the data portion starting from when the vi starts running until the "stop" button is pressed. Is it possible to save the data portion starting from when the "save" button until the "stop" button are pressed?
    Best regards,
    Ninjatovitch
    Solved!
    Go to Solution.
    Attachments:
    Sensor Signal Acquisition.vi ‏52 KB

    this should be in 8.2
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    RandomNumberSubVI.vi ‏8 KB
    savefilewhenselected.vi ‏11 KB
    f.txt ‏1 KB

  • What are the setting for Save button for saving plan data in WAD template

    Hi,
    i created SAVE button in Webtemplate for saving plan data.But this button is not
    active.is there any setting for this?
    thanks in advance
    chandu

    Hi Chandu,
    The settings to Configure the  Save function.
    Right click the Button Group Item ® Properties ®  * Button    ® 
    Type Caption  ‘Save’ ® Command    ® Select ‘All Commands’ Tab ® 
    De-select ‘Execute Planning Function’ and then select checkbox ‘Save
    Changed Data’ ® Double click on ‘Save Changed Data’ ® OK ® OK ® Save your template.
    *pls assign points,if info is useful*
    Regards
    CSM Reddy

  • Tring to save data for n iterations, beginning when SAVE button is pressed

    OK, I'm STILL struggling with this vi.  (See post from 12/16).  I've cleaned up the code considerably, and better defined what it is I want to accomplish.  When the vi begins, I want to immediately begin displaying on the front panel 3 values: Indicated Flow Rate O2, Indicated Flow Rate N2, and Helium Concentration.  When the operator presses the SAVE button, I want the next n iterations to be saved to file.  N is determined by the Measurement Duration (in minutes) divided by the measurement interval (in seconds).  After the desired number of data points are saved, the operator can press the stop button, at which time the vi goes to frame 1 of the sequence, shuts off the Helium Solenoid and returns the detector to standby.  The whole key to this vi is being able to monitor the data in real time, and decide based on measurement criteria when to begin saving the data, initiated by pressing the SAVE button.  Somehow, I know I need to initiate the save with the case statement, and then save the data (n-1) more times.  When I tried a loop within a loop, I just saved the same data for the given # of iterations, and then the displays began updating again.  Is this making any sense at all?  I'm beginning to understand what an aneurism feels like.
    Attachments:
    Master He Concentration 12_20 V5.vi ‏88 KB

    One possibility solution is attached. Basically, we have a shift register that contains zero and regulates a case structure. Case zero is empty. If save is pressed, we feed a positive, nonzero number to it , which triggers the default case that (1) saves a data point and (2) decrements the shift register. This contiunes until the shift register reaches zero again.
    Modify as needed.
    btw: there is no reason for any local variables, use direct wires.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Master_He_Concentration_12_20_V5MOD.vi ‏75 KB

  • Save data into user defined table while save button is triggered in VF01.

    Hi experts,
                  I got a requirement related to performance in our business process.Before saving the billing document in vf01 that means all the data is entered in vf01 and ready to click on save.
             While we click on SAVE button the data is transfered to the related tables like VBRK,VBRP,KONV,VBKD.......so on.
              I created a sales register depending on the above tables.As there are many records it is taking time and if we give 2years data to be displayed it is going to run time.For this i created a ztable and tried to insert in to ztable in the background by an abap program.Till this it is fine but in the database the table i created is taking more space when compared to other tables like vbrk,vbrp,konv,ekko,ekpo.....(huge data tables).
                So i decided to insert the required data of VF01 tcode into ztable simultaneously while they are being saved in VBRK,VBRP,KONV,VBKD.
                    In what way i have to proceed to insert required data of vf01 into my own ztable when we save button is triggered.Pls help me with a sample code if possible.
                  If possible please let me know why ztable is occupying more space in database as  i mentioned above.
                    Helpful answers are rewarded without failure.
    Thanks,
    Anand.

    What is the purpose of all this? Why do you need to duplicate the data in some Z table?
    If this is for some kind of reporting purposes, then look into using the Logistics Info System:
    http://help.sap.com/saphelp_470/helpdata/en/c1/37544e449a11d188fe0000e8322f96/frameset.htm

  • Replace save button with update, after data is added in db.

    I am forking on a AIR desktop application with sqlite database.
    I have a form created in a custom component which have 2 buttons save and update.
    I have created a class to handle all database related functionalities.
    when i click on the save button of the form, data is inserted into the table.
    So far it's working fine.
    No when data is inserted in database, i want to disable the save button, and activate the update button on the form. To run the update query i need id of the last added row, which i can obtain from lastInsertRowID on SQLEvent.RESULT event.
    My question is how can i pass this ID from my class to the custom component?
    Best Regards,
    Alok Jain

    Hi Alok,
    You can create a public bindable property in your custom component. And set this property from a class which handles your DB activitis. You can find explore BindingUtils class if you want to run some function when a particular property value is changed.
    Hope this helps.

  • How to save data in html format while user click a save button in jsp page

    Hi All,
    I have the following requirement
    If user click on the Save Button it should display a window which allows the user to select the directory and the data is stored in the Internet Explorer Format.
    Could please anybody suggest me how to impletment the above requirment in jsp page.
    It's very urgent. Please replay ASAP.
    Thanks
    Rajeshwari

    Analyzing ur ques ...
    If user click on the Save Button it should display a window which allows the user to select the directory and the data is stored in the Internet Explorer Format.hmmm..
    There is no html object type which supports directory selection for download. There is only an input type="file" which however is related to an upload scenario.
    By downloading the file using output stream u can achieve what you want.
    You simply need to do the following things ..
    a) Write to an output stream
    b) Set the content type to "text/html" for your response
    Example ....
    response.setContentType("text/html");
    response.setHeader("Content-disposition",
    "attachment; filename" +
    "Example.html" );
    javax.servlet.ServletOutputStream stream = res.getOutputStream();
    StringBuffer text = new StringBuffer(1024);
    text.append("some text . . . ");
    text.append("more text . . . ");
    stream.write(data);
    stream.close();

  • How to call a popup window when click save button

    Hi, expert
    the scenario is :
    we we create a order , we click the 'save' button,
    then there will show a popup window,
    in the window, there are buttons like 'confirm' , 'cancel' and also show some info about the order.
    how can i do that.
    Thanks
    Oliver.

    Hi ,
    Try to redefine the method and use the IV_TEXT parameter in the CREATE_POPUP_2_CONFIRM method (usaully comes from the Component Controller ).
    Regards
    Vikranth

  • Throw a popup message just after pressing SAVE button?

    Hello
    I want to throw a message IMMEDIATELY after clicking the SAVE button by user, so, i put JS as below in the Pre-Save event of the form, but its not working, directly am getting the file-download manager dialog box, pls. let me know how to achieve my requirement?
    app.alert ("Pls. dont forward this file after saving on your local machine, its against norms")
    Thank you

    Try
    below script on  javaScript and PreSave event of the form
    xfa.event.cancelAction = 1;
    xfa.host.messageBox("Pls. dont forward......");
    Regards,
    Jay

  • Data loss in original documents

    Hi, we are running R/3 46C with DMS.
    Typical functionality is as follows:
    Using the online vault (ftp server), we checkin and out the originals from the DMS. We use MS Word/Excel as workstation applications to create/update the originals. e.g. the original is checked-out and opens as a MS Word document within the SAPGUI (Inplace DM configuration). A temporary copy is created on local workstation. Employee then updates the original and does a 'save and exit'. This checks the original back into the vault, deletes the local copy from workstation and exits the transaction.
    The issue is as follows:
    Person A opens the original, updates it and saves and exits. Person B (or the same person A) opens the same original document within couple of seconds or so after person A has saved and exited. In this case, person B doesnot see the updated content. So person B has no clue that the content was updated. If person B updates the content and saves it,
    the content updated by person A is lost. There seems to be a performance issue resulting in potential data loss. The trace files for sapftp indicate good performance without any timeouts etc. between the workstation and the online vault (ftp server).
    Not able to nail the cause. Any ideas or suggestions will be appreciated.
    Thanks
    Nirmal

    Hi Iring,
    I appreciate your suggestion. I think I understand it, however, in my case, the issue is after the original is checked into the vault. Once a user has updated the original and checked it into the vault (using 'save and exit' button), the transaction ends successfully, with a message "Document Info record <doc typ> <doc number> changed". This gives an impression that the original has been checked-in and the contents have been saved. If I open the same original within couple of seconds of the first save, the original does show as checked-in. However, intermittently, I would not see the content that was changed as part of the first save.
    The ftp log shows no errors and indicates good performance.
    Regards
    Nirmal

  • Avoid pressing save button while conversion

    Hi All,
    I am using FlashPaper at my work. I need a help from you all
    , to convert the files to .swf or .pdf is there any possibility to
    convert directly except the following possibilities.
    1) using ant for batch of files dir conversion
    2) using the word and print option , disadv: every time the
    document to be converted is openning in flashpaper and we have save
    then.
    3) the other possibility is we can convert the files using
    the FlashPaper option which will be in word or ppt etc so that
    after pressing save button it wll convert, here also we have the
    disadv that we cannot use this since everytime we have to press
    save.
    4) another possibility is by right-click on the doc and say
    convert to .swf or .pdf then flashpaper will show you an filedialog
    where you have to give the filename and press save.
    these are the posibilities to convert to .swf or .pdf files
    but we cannot use these conversion are there any other possibility
    to convertion please let me.
    Its really important for me.
    Bye
    Mahi

    Hi Lai.
    U can use the badi ME_PROCESS_REQ_CUST.
    In this badi u implement the badi and use the method check.
    as u can say the sample code
    data: l_item_list type mmpur_requisition_items,
            l_item type mmpur_requisition_item.
    data: ls_header type mereq_header,
            l_item_akt type mereq_item.
       l_item_list = im_header->get_items( ).
      loop at l_item_list into l_item.
        " Get Items
        l_item_akt = l_item-item->get_data( ).
        if l_item_akt-zzusr01 is initial.
          message 'Please enter your enhanced field u can give here in your enhanced tab u can give ' type 'E'.
        endif.
    Note : Here zzusr01 is the filed wht u extended in the eban .
    Then wht system will do when they save or check the  PR , One popup will come with the error  as u write.
    Regards
    Rajendra

Maybe you are looking for