Confirmation of changes before pagination

1. I have a report with a checkbox added to each row (generated with apex_item.checkbox function.
2. As pagination I use "row ranges ... in select list with pagination"
Now I would like the application to ask the user, if he/she really wants to leave the page without saving,
- but only if the pagination select list is changed or the pagination buttons are pressed
- and if any of the checkboxes was changed.
Even though I read this thread Challenge: Save "dirty" form before navigating away I could not really figure out the solution.
Maybe Vikas or Vishal M. or ? could once more post their smooth solution for this in a new thread? I think that this would be especially useful for many developers. Thanks a lot in advance!

<p>See Saving session state during pagination for an alternative approach. Frankly I don't remember the solution I used in that other thread either. It was not very robust, it was IE-specific and quite a bad hack overall.
<p>But, in general, try to stay away from this sort of stuff. Pagination is meant to get the next set of rows, period. It is not meant to save anything on the current page. It uses HTTP GET, which is supposed to be idempotent operation

Similar Messages

  • Confirmation in DA before refresh of a PPR region

    Apex 4.1.1.00.23
    I am working with an app that I am upgrading from v3.2 to 4.1.1.00.23 and I have a page/region that had some javascript in it that I am trying to move away from manual JS and into dynamic actions.
    The region in question is a tabular form with PPR turned on and the problem I'm having is that I wish to check if any of the checkboxes are checked and if so, display a confirmation message to the user before the region paginates. I want that if the user does NOT press OK to the confirmation that the pagination is cancelled.
    So I have a DA as:
    1. Before refresh of my region
    2. Conditional based on javascript expression (I have my own JS on the region that checks if any checkboxes are checked and it does work for sure) that checks if at least one checkbox is checked.
    <script language="javascript" type="text/javascript">
    function verifyCheckboxes()
      var checkboxes=document.getElementsByName('f01');
      if (checkboxes==null)
        return(false);
      else
        var vBoxChecked=false;
        for (var i=0;i<checkboxes.length;i++)
          if(checkboxes.checked)
    vBoxChecked=true;
    break;
    return(vBoxChecked);
    </script>
    3. If any are checked, prompt the user with the confirmation "are you sure you want to leave this page?". This action is defined as type "confirm".
    4. If the user presses cancel, the page should not continue.
    Steps 1-3 work fine. Step 4 doesn't happen...no matter what the user chooses (OK or cancel), the region paginates.
    I have worked with confirmations before on "before page submit" and it works like this...cancellilng in the confirmation box cancells the submission. I figured this would work similarly with "before refresh" of a region, but it does not.
    Is this an Apex bug that the confirmation OK/Cancel always allows the region to refresh (different behavior than with a confirmation used before page submit)?
    Ideas on another soution for what I'm trying to do?

    Well I guess the situation is that "before refresh" fires after the signal to refresh the region has been heard by the server.
    In other words, when I paginate through the region, I click the link to paginate, it wants to refresh but encounters my DA that fires before the region actually refreshes. This is fine. My code fires correctly and prompts "are you really sure...?". Problem is, the answer from the confirmation is ignored (either OK or cancel permits the pagination to continue).
    When I've used a confirmation with a "before page submit" in this same manner, answering "cancel" to the confirmation would also abort the submit process.
    So I want the same sort of "cancel" action to abort the region refresh in this case, but seems like it's ignored.

  • Vendor Master Confirmation of Changes - FK09 - automatically

    Hi All,
    I am trying to create a DIFF extract of vendor master each time a vendor is changed or a new vendor created. For this I used the LFA1-UPDAT & LFA1-UPTIM fields. But these fields are not a part of the process of vendor creation in t-code XK01 -- unless I mark one of the fields sensitive. But if I do make the field sensiitive then the person creating/changing the vendor needs to go to tcode FK09 and confirm/reject the changes for the UPDAT and UPTIM fields to be updated.
    Is it possible to programmatically confirm the changes in FK09 upon save of the new/updated vendors.
    Is there a user exit defined where I can do this? If yes, can somebody help me how to go about it.
    Thanks in advance,
    Arpita

    hi
    Can you please help me with a simliar issue,
    we currently have Ap clerks creating vendors on SAP  using Xk01 but there is no approval step before the SAP vendor is ready for use.
    Is there a way to get these approval steps?
    Or is there a way that we can limit the role and it should cause a notification to the manager that there is a vendor that needs to be approved. and only once the vendor is approved then that will allow for the clekrs to process invoices to
    Kind regards
    muhamemd

  • Unable to read changes before commit

    I have a mix of insert and select statements for a particular transaction operation.
    I need to insert to table 1 a set of five records. ie. five inserts to table 1.
    Then i need to sum up a column in table 1, this may have certain records which were inserted recently and some might be older ones.
    This sum needs to be inserted into another table 2.
    In my code i maintain the sequence of inserting, fetching the sum and inserting. I confirm the sequence by giving System.out.println().
    But since everything runs inside a container managed external transaction controller.
    Even though i see the System.out.println's in proper sequence, the suming query is happening before.
    At the end, i have Before JTS completion, followed by my insert sqls, followed by After JTS completion.
    Clearly the problem is, the fetch is happening before i insert, in JTS.
    So how do i make sure, that the fetch happens after my first insert.

    I assume that you are using the TopLink UnitOfWork. The UnitOfWork defers committing all changes to the database until the commit (beforeCompletion in JTA), so any queries you perform will not see any of these changes until after the commit. It does this to optimize the commit, maintain referential integrity, avoid deadlocks, avoid holding pooled connections, etc.
    You must either:
    - perform the inserts and the sum query in two separate transactions
    - compute the sum from the objects in memory
    - use a database session and insertObject instead of a unit of work
    To compute the sum in memory you may wish to use a conforming query in TopLink to query the new objects that have not yet been inserted to the database.
    In the 10.1.3 release, there will be support for a non-deferred unit of work, and a writeChanges() unit of work API to write changes before the commit.

  • Confirm Application Change problem

    Since downloading and installing Security Update 2009-004, Mail repeatedly brings up the Confirm Application Change dialogue box. I click on Change All (which I assume is the right answer to keep access to my various passwords) and Mail either freezes or becomes unresponsive for several minutes before launching the dialogue again. I click Change All again, and Mail freezes once again or belatedly brings the dialogue box back up. The same happens with Safari when I first launch it. Any suggestions? The Security Update has pretty much rendered Mail unusable.

    The problem with archive and installing, is that you may be left with applications that are older than some of their kernel extensions until you perform a followup combo update to the same version you had before.
    It is unknown at this time where the file damage is.
    Furthermore, we don't know how full your hard disk is. If it is too full, there might be directory damage too. Also, if you ever force restarted your computer, had a kernel panic, or it unexpectedly shut itself down, that can damage the directory too. Before doing any further investigation, backup* your data.
    Here are some resources that might help you*:
    http://www.macmaps.com/badram.html
    http://www.macmaps.com/directoryfaq.html
    http://www.macmaps.com/diskfull.html
    - * Links to my pages may give me compensation.

  • My iphone was stolen so I decided to delete my device in find my iphone,  but the it has not yet been deleted bec the device is not connected to the internet yet. Can I undo my changes before it will be deleted from icloud? Thank you

    Hi Suport,
    My iphone was stolen yesterday so I decided to delete my device in find my iphone,  but the it has not yet been deleted bec the device is not connected to the internet yet. Can I undo my changes before it will be deleted from icloud? I want to undo the changes because I may find my phone when it connects to the internet. Thank you
    See image below:
    email is [email protected] for questions thank you Apple. I hope you could help me.

    Sorry, you can't undo your action remotely.

  • Pdfmaker changes my pagination from my Word 2007 document

    When I use pdfmaker in Word 2007 it changes the pagination from my Word document.  For example, the first page of my document ends up being 2 pages when I convert the file (text shifts).  If I just do file > print > Adobe PDF, the file looks exactly like the Word document.  The problem with that though is I need my table of contents linked and then I have to do that manually.  I've set my default printer to Adobe PDF, but it still doesn't make a difference.  Any help would be greatly appreciated!

    What version and update of Acrobat? It might be a simple update of Acrobat will do the trick. I am not why PDF Maker would be different, but PDF Maker is no longer a preprocessor for the Adobe PDF printer with AA9. Thus there may indeed be an issue -- probably related to the link embedding. You might try unchecking all of the options in PDF Maker and seeing if you get a good result. If so, then put things back in until it breaks. Not the best solution, but maybe a useful workaround.

  • I have been working and the word program does not respond how do i save changes before forcing

    I have been working a word document and now the program does not respond, can I save the changes before forcing to close the application?

    no

  • I want to change my apple store to saudi arabia Because my store was in saudi arabia but changed before to use gift card now I have 0.27$ but I DONT need it   The Error was you have a store credit balance you must spend your balance before you can ch

    I want to change my apple store to saudi arabia Because my store was in saudi arabia but changed before to use gift card now I have 0.27$ but I DONT need it   The Error was you have a store credit balance you must spend your balance before you can change stores and I have saudi credit card Used it before

    Click here and request assistance.
    (78468)

  • Problem in actions change before ear retro date 1.4.2011 acc to controlreco

    HI Experts,
    Got an issue while performing an action "International assignent reentry".
    One of my employee has returned from international assignement.While performing an action   "International assignent reentry"
    i am getting an error  "Change before earlist retro date 01.04.2011 according to control record ss".It is showing while updating the payroll area and personnel subarea in 0001 IT.
    We are trying to do action with the date 15.07.2011.
    In pu03  earliest pers. RA date mentioned as 01.04.2011,earliest MD change,bonus change as 15.07.2011.
    In control record ..earliriest retro accounting period as 01 2011 which is April 2011.
    Now control record is on Exit mode.
    Please advice me to resolve the problem.
    Regards,
    Sairam.

    HI
    Thanks for the reply.If we remove  the  date in earliest per. retro accounting..what are the implications.
    in pu03 ..earlist pers. RA date is maintained as 01.04.2011
    We are doing an action with efective from 15.07.2011.
    Why the system is showing an error ""change before earliest retro date  1.4.2011 acc to control record to PY area ss.""
    After deletion of date in the field of Earlist pers. RA date from puo3 ..after doing the action..shall we put the date as 01.04.2011 in the fiels.
    Please advice.
    Sairam.
    Even after deleting the  Earl. pers RA date also ..we are getting the same error.
    The payroll control record is in exit mode.
    Please advice.
    Sairam.
    Edited by: sathyasairam on Jul 18, 2011 1:54 PM

  • Prompt user to save change before abnormally closing the application

    Hi,
    I've some trouble prompting user to save change before abnormally closing the application (logging off, shutdownding machine...). I tried to use Runtime.getRuntime().addShutdownHook() and it doesn't seem to work. Here's part of my code. Help please!!!
    program print out "1" and stays in a "dead-lock" mode...
    private void shutdown() {
    boolean saveConfig = true;
    if (saveConfig) {
    System.out.println("1 ");
    int answer = JOptionPane.showConfirmDialog(null,
    "Configuration has been changed. Do you want to save
    configuration before exit?",
    "Save Config"
    JOptionPane.
    YES_NO_CANCEL_OPTION);
    JOptionPane.showMessageDialog(this, "Can't connect to unit. Error in Heal unit!", "Error", JOptionPane.INFORMATION_MESSAGE);
    System.out.println("2 ");
    if (answer == 0) {
    savefileButton_actionPerformed();
    jMenuFileExit_actionPerformed();
    else if (answer == 1) {
    jMenuFileExit_actionPerformed();
    else {
    return;
    else {
    int answer = JOptionPane.showConfirmDialog(itself,
    "Are you sure you want to exit? ",
    "Exit",
    JOptionPane.YES_NO_OPTION);
    if (answer == 0) {
    jMenuFileExit_actionPerformed();
    else {
    return;
    private class MyShutdownHook extends Thread {
    public void run() {
    shutdown();
    // add shutdown hook
    MyShutdownHook shutdownHook = new MyShutdownHook();
    Runtime.getRuntime().addShutdownHook(shutdownHook);

    doesn't much matter. shutdown hooks are not guaranteed to run or be able to finish.

  • Error as IBAN required when the user confirms the changes to Vendor master

    Hi,
    After making the change to vendor bank details in master user is managed to save the changes with out any errors. Now another user is trying to confirm the changes, here is system is throughing error as IBAN is required for vendor master..
    Scenrio is Co code belongs Switzerland and the vendor country Kuwait..
    Can anybody through some light, to solve the issue without generate or maintaining the IBAN, Since we dont have IBAN no provided for vendor.
    Thanks in advance..

    Hi Murali
    Please check the configuration in FBZP payment method in Country/Payment Method in Company code. In that you can mandaatory the fields like address/IBAN for master records. Pls check that setting  try to save the master.
    Regareds
    Surya

  • VOWizard-Bug: WHERE Clause not modified on EO add if manually changed befor

    VOWizard-Bug: WHERE Clause is not modified on adding a EO (with association) if it was manually changed before
    Testcase:
    - Create a VO based on 2 EO (Association already defined) --> Jon in WHERE Clause automatically created by Wizard
    - Then modify the WHERE clause, e.g. change an equal to outer join.
    - All works fine.
    - Then add a EO (also Association defined) and chose some attributes.
    - Test and wonder why there are much more rows in the result than expected.
    - Look into the Query-Tab and control the WHERE clause: Wizard forgot to add the new join... and therefore we get a cartesian product between the old view and the new added EO...
    Possible solutions to fix the Bug:
    1. add the JOIN ;-)
    or
    2. at least display a warning that the JOIN is not automatically created!
    Regards, Markus
    GE Medical Systems

    Hi Markus-
    Once the where clause has been customized, we don't update it in the interest of not messing up the user's custom code. However, we should probably warn the user in the types of cases you mention above that he will need to update the where clause manually to include the new information. We will add this in a future release.
    Thanks,
    Ray

  • In CO06 tcode if confirmed quantity change it becomes '0'

    Hi All,
    In SD, if the confirmed quantity change from 200 to 100 it becomes '0' in CO06 tcode, after becomes '0' in the table level the entry is getting deleted.why it is happening, is it functional related or  technical related, if technical where it will happen. Generally how it will happens in the business scenrarios. this program is standard one SAPMV45A so in which exit we can find the related information.
    Please provide detailed scenario and in the technical (abap) point of view where needs to check and what needs to be done for this issue in the technical side if it is abap related issue.
    Thanks,
    V.V.

    Hi,
    You can achive with sales order save userexit, we have done same thing, but something differnt, like when creating delivery if system dont have stocks to deliver for some items then those items will have to place reason for rejction during delivery creation. Thats thing i did at MV50AFZZ/ ZB.
    We have defined new reason for reection for this requirment, used to for this purpose.
    Let me know if any questions

  • I want to change my apple store to saudi arabia Because my store was in saudi arabia but changed before to use gift card now I have 0.06$ but I DONT need it The Error was you have a store credit balance you must spend your balance

    I want to change my apple store to saudi arabia Because my store was in saudi arabia but changed before to use gift card now I have 0.06$ but I DONT need it The Error was you have a store credit balance you must spend your balance

    You can try contacting iTunes Support and ask them if they can remove the balance from your account so that you can change countries (we are fellow users here on these forums) :  http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

Maybe you are looking for

  • In RoboHelp 11 Responsive HTML5, is it possible to have 2 different language outputs in one generated output file?

    In RoboHelp 11 Responsive HTML5, is it possible to have 2 different language outputs in one generated output file, similar to WebHelp where the use can select the language from a drop-down list? In Webhelp output you could create multiple Content cat

  • How do I print more copies, grayscale, or on special media with The Lorax Daily Print Activities?

    If you want to print multiple copies of an item, or choose a different paper type or print setup (like black and white printing), do the following: Load the printer with your media and make sure the printer is on, Open The Lorax Daily Print Activitie

  • Backing up essbase data

    Good morning Is there a way to back up the data in Essbase while the user is still actively using the database? Currently we use scripting to export the database (these are ASO cubes) but sometimes the export fails due to users actively sending or re

  • End User Rules

    Hi Experts, When I wanted the end users to have access to a Rule, I'm used to add the rule name to the endUserAccess Attributes in the SystemConfiguration object. And it works fine. But the FAQ page in Sun IDM partner space says that if you specify u

  • Using Record Statistics for session/Interface inside of package

    Oracle DB / ODI. I have a package starting with Interface. In the second step I want to know how many records was inserted/updated by first interface. Let say those numbers will be used on second interface. How can I do that? Is there any way to get