Save confirm message appearing twice due to doSubmit behaviour

I am using the IE onBeforeUnload event on the body tag to confirm whether the user really wishes to leave if there are changes made to the page. However, in circumstances where htmldb uses the doSubmit procedure (eg: when clicking a sub tab) the message appears twice. I found that this is because the the following statements in the doSubmit procedure
flowSelectAll();
and
document.wwv_flow.submit();
are both triggering the onBeforeUnload event for some reason. If I insert a flag in between these statements the problem is solved. However since doSubmit is a htmldb core javascript procedure, I dont want to modify it. Is there any other solution to the issue that anybody knows of? Please help....

figured out that it was not because of the flowSelectAll() but the anchor tag of the page and the wwv_flow.submit() that causes the onBeforeUnload to fire twice. Anyway the problem at the core remains the same. If anybody knows of any way to tackle this problem without changing the doSubmit function, your help will be much appreciated. Thanks.

Similar Messages

  • HT1498 Where does the confirmation message appear?

    The rental instruction article is not very clear without visual cues or elaboration.  When and where does the confirmation message appear after renting a movie?  Do I have to keep my Apple TV on while waiting for the confirmation?  Also, my movie "top shelf," that the article refers to, is crowded with advertisements or movies with numbers under them (which I have not rented), depending on what the writer means by the "top shelf."  Sheesh.

    Your 'question' is rater unclear but here. Go watch this video, around the 5:10 mark you might get your answers, if what you're asking is how to rent a movie.
    http://www.youtube.com/watch?v=i_GUuJyyyRQ

  • PO Sch line & PO Confirmation line appearing in Due list

    Hi SNC Expert,
    We were working with SAP support for improving performance issues in Quick view and Alert Monitor.
    We applied couple of OSS notes and moved to Production in last 1 month.  Suddenly, we have started observing in the Due list  (in the FTR download file)  we are getting the below entries.
    ORTYPENAME     ORDERID     ITMID     SDLID
    Purchase Order     400699664     10                    1
    PO Confirmation     400699664     10                 2  (this line is coming extra now)
    In the past we use to see on the Purchase Order line in Due list.    Can you please help me address this issue.  Is there any Config or setting that can ensure the Duel list has only line for Purchase Order Schedule line i.e. Request line only..
    This is a Production issue , a sincere Thanks in Advance for helping.
    Thx
    MJ

    Jay,
    Here's what I feel.
    When the fields you want to populate are not on the Idoc you wnat to use, check other idoc types.
    If that does not help , then maybe depending on your project you might have to add additional segments with those fields ( enhance the existing orders05 ) and use user exits to populate those segments.
    As far as Process code FM etc go, if you don't have the fields in that Idoc , its no use what process code you use.
    Also if you do not want to enhance the Idoc type , you can figure out fields which are unsed in your idoc type and use fileds which are similar functionality.
    I have used totally different fields to populte data, only make sure there is a document out there ( requirements doc. etc ) which explains the need for this and justifies using different fileds.
    Best way to go is adding Z segments to your idoc.
    regards

  • Global error message appearing twice

    I'm using the techniques from Steve Muench's toy store demo for saving a global error as an attribute error, so that it can be presented to the user next to the attribute. I have an employee form, and when the user enters a primary key that is already in use, it should flag that as an attribute error next to the employee id field. However, I'm getting the primary key error as a global error, and it's printing twice. Any ideas would be grealy appreciated!
    Thanks,
    David

    I corrected the problem by doing the following:
    1. created a commit action in my ui model and renamed it to save.
    2. put a UniquePkValidationBean on my primary key so that the overridden setAttributeInternal method would throw a JboException
    Thanks,
    David

  • Mail has random messages appearing in trash

    The problem I found is a serious bug that I've had for a long time. On occasion, I'd go to the trash and find random messages I'd never deleted in there. Sometimes rebuilding the trash mailbox would make it go away, sometimes it wouldn't. If it didn't, I'd simply empty the trash, thinking it was just misplaced garbage. Sometimes the message would disappear after emptying and sometimes it would stay right there, requiring two or three attempts to get rid of it. Sometimes I had to select it specifically to delete it while the generic empty trash would fail to get rid of it.
    I decided recently to double check those messages and found the messages were real saved messages that were both simultaneously in the trash and in the proper mailbox and not just old mail I had gotten rid of long ago. Trying to drag the message in the trash back to its proper folder wouldn't work as it wouldn't highlight the folder, preventing me from moving the message back. Oddly enough, right-clicking and selecting move does work and the message vanishes from the trash.
    The distressing fact was that I found the messages in the trash weren't random garbage after all. If I were to empty the trash, the same message would also vanish from the original mailbox!?? I'd been deleting messages I wanted to save for months, not realizing I was getting rid of the real thing. Yes, it was careless of me not to check when the problem first started cropping up.
    One odd thing I noted just recently was that while the duplicate trash messages can appear from any mailbox, the last several were all dated September 18, 2008 even though they had come from different mailboxes (note all mailboxes I save messages in are IMAP folders on MobileMe). Some of the messages that appeared mysteriously in the trash were even Apple RSS messages that Apple Mail tracks by default.
    Has anybody seen this and does anyone have any idea how to stop this from happening? I've rebuilt my mailboxes any number of times and it doesn't seem to fix this problem.

    I'm not sure how this message appears twice, but I definitely did not hit "post message" twice. It did take about five minutes before it posted, though.

  • Exporting to PDF - Selection Formula confirmation message

    Hi,
    We're using Crystal Reports 11 from within a Delphi 7 application which, on a timed schedule, loads data into a MS SQL server database and generates and prints or e-mails a report of the data loaded in PDF format. This process should be automatic and not require monitoring but we're now seeing the report generation being stalled by a confirmation message appearing when the report is generated. The message reads:
    Confirm
    Selection Formula for {Report Name} to Printer   // or To Export
    {Selection Formula Here}
    Continue?
    (RETRY=edit with Crystal, All=copy to clipboard)
    Buttons: Yes No Retry All
    Any help appreciated.
    Thanks,
    Garry

    I'm wondering if this could be easily fixed by going to the links panel and then use the "Copy Links To" and set up a new links folder for the job.
    That would copy all the links and then relink to that folder - right?
    Perhaps that's a quick way to get rid of this problem.
    It could be anything though - I've had weird, but not this problem, of files that are on a server can cause link problems.
    I don't know - it's a one of those have to sit down and look at the files to see what's going on situation - like Bob already said.

  • How to disable confirmation message when submitting a pdf form

    How do I disable the confirmation mesage, so that the user does not get at message like " you form has been recieved"  each time data is submitted?
    The reason for my question, is that i have a pdf form that i'd like to fill out offline, store the settings (data) in an array and the when I get online again run a loop that populates the form with the values storen in my array and submits them one at the time to formscentral.
    I'm able to make the loop work just fine, however I do not want to see the confirmation message each time data is submitted,  because my loop is paused each time the confirmation message appears, and the only way to resume it, is to click "ok".
    Hope someone can provide me with some help here

    Hi,
    >>however I do not want to see the confirmation message each time data is submitted,  because my loop is paused each time the confirmation message appears, and the only way to resume it, is to click "ok". 
    Sorry, disabling the confirmation message is not possible.  The confirmation is always enabled.
    Thanks,
    Lucia

  • Message of Tab A ( save message) ,appear in Tab B( in another tab)

    when i add some attribute in tab ( A )and without saving , if i changed to another tab ( B ), then , the save message dialog box appears in tab B, it has to appear in tab A, then after user confirmation, tab has to changed... bt, in my application as the save message appears, tab is also changed.....
    My code is sucessfully implemented in Jre 1.5 bt when i swithed to 1.6, it produce this bug..
    and also pls tell me
    whether the behaviour of JOptionPane is changed from Jre 1.5 to Jre 1.6..
    because.. while doing debugging.in 1.6 for JOptionpane.showconfirmdialog, or optiondialog
    ..the application goes into a loop,(when resumed, the message appears but tab also changed ),
    which is not happed with Jre 1.5
    pls help me

    Hi,
    You can try making the Date Field in Item Details  and Requisitioner as Mandatory if it serves your purpose for the situation - I .
    Please check the following :
    SPRO>IMG>MM>Purchasing>Purchase Requisition>
    Click on Define Screen Layout at Document Level
    Highlight the Document Type
    Go to Details and click on Deadline Monitoring
    Check the Date as Required Entry for Requisition, Delivery & Release Date.
    ( The user will need to Enter Release Date Manually)
    Similarly this can be maintained for RFQ and PO as well.
    This will give you the Tracking of the Processing Time with respective dates.
    Hope this helps,
    Best regards
    Amit Bakshi.

  • When I close Photoshop CS6, the following message appears: "Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file.

    When I quit Photoshop CS6, the following message appears:
    " Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the ‘Get Info’ command in the Finder to ensure the file is unlocked and you have permission to access the file. If the problem persists, save the document to a different file or duplicate it in the Finder."
    If I try to change the Workspace in PS6 from Essentials to any other Workspace, the following messsage appears:
    "Could not apply the workspace because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the ‘Get Info’ command in the Finder to ensure the file is unlocked and you have permission to access the file. If the problem persists, save the document to a different file or duplicate it in the Finder."
    I have checked the Sharing and Permissions section of the "Get Info" panel accessed from the Finder and I have set Read and Write Privileges for my user account for Photoshop CS6. System and Admin are also set to Read and Write.
    I have a MacBook Pro with OS X Version 10.9.5 and have all available updates for Photoshop CS6, Lightroom 5 and Bridge CS6.
    I tried uninstalling the program and downloading it again and reinstalling, but nothing changed.
    Can you help?
    Thanks,
    cjpnm

    You may get better help in Photoshop General Discussion
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll
    If FINDER means Mac, read below (and try to give more information when asking a question)
    Mac 10.9.3 workaround https://forums.adobe.com/thread/1489922
    Enable Mac Root User https://forums.adobe.com/thread/1156604
    -more Root User http://forums.adobe.com/thread/879931
    -and more root user http://forums.adobe.com/thread/940869?tstart=0

  • On execute query a save message appears

    hi,
    i have an item which is enabled only when enter_query is pressed. a number is given in that item which then populates the rest of the items of the same datablock when execute_query is pressed. now if i change the item/number then the message appears ' do you want to save changes'. i would like the system message NOT to appear. also i would like for that number/item to be executed. i have wriiten a code for the execute query.
    any help would be nice.
    also thanks in advance for your help.

    i have tried the execute_query(no_validate) but here the form get completely cleared. No_Validate is not even a valid parameter for Execute_Query.
    i would like the same number to be executed when the execute_query pressed the second time.You don't execute a number. Do you mean that you would like the form to re-query using the same number as the query-where input?
    i have written a script for execute_query in the key-exeqry trigger. Why don't you post that code here? It is very likely that whatever you are doing in that script is causing your message to appear.

  • Using Message Built-In - Message dialog box appears twice

    Hi all,
    I'm using the message built-in to display messages in forms.
    I use the message command twice to make it appear as a dialog box.(Using it once displays it in status bar)
    Eg.
    Message('Hello World');
    Message('Hello World');
    Sometimes, the dialog box appears twice instead of once.
    Is there a way to solve this ?
    Regards,
    Sam

    With an alert, you can write up to 200 characters in the alert box. With a message, you can write up to 255 characters, and if you want the message to pop up in an alert box, you can write a double message. I use:
    Message('Hello World');
    Message(' ',no_acknowledge);

  • Do you want to save changes - appears twice in master-detail form.

    Hello.
    Sometimes ago i wanted "Do you want to save changes" message in my own language.
    So i created trigger:
    if :system.form_status IN ('CHANGED') then
         alert_response := show_alert('CHANGES');
         if alert_response = alert_button1 then
              commit_form;
         elsif alert_response = alert_button2 then
              clear_block(no_commit);
         elsif alert_response = alert_button3 then
              raise form_trigger_failure;
         end if;
    end if;
    I call that trigger in many other triggers like enter_query, ...
    Everything worked fine until i created form with master_detail block.
    The problem:
    I have a form with two blocks. One master, one detail.
    If i change something in detail block, go to master block item and press enter_query problem appears.
    First i get the message "Do you ..." in my language. When i press NO or CANCEL i get again the message "Do you ..." in original (english) language?
    Why is that?
    Should i call my trigger somewhere else and not just in enter_query trigger (for this problem) or is checking form_status not enough?
    Thanks.

    When you create relation, 3 procedures are automatically created for you.
    Check_Package_Failure, Clear_All_Master_Details and Query_Master_Details.
    When you execute clear_block(no_commit) on the master block -
    Clear_All_Master_Details will fire.
    If you check Clear_All_Master_Details you will find following code there:
    Go_Block(curblk);
    Check_Package_Failure;
    Clear_Block(ASK_COMMIT); -- This statement causing "Do you want to save changes" to appear

  • Hello! I want to set up an appointement with Genius Bar but when i choose the available date and try to confirm there is this message appears : We're sorry. There was an error processing your request. Click OK to try again. HELP ME PLEASE

    Hello! I want to set up an appointement with Genius Bar but when i choose the available date and try to confirm there is this message appears : We're sorry. There was an error processing your request. Click OK to try again. HELP ME PLEASE

    I have called the store with the same problem but the answer is this must be done on line. I was told to use a different browser but it has made no difference - I am still having the same problem

  • HT1600 confirmation message does not appear

    Using AppleTv, after choosing a film to rent, does not appear the confirmation message.

    After respondents hit submit they should see the customized confirmation message/page. Can you send the link to the form to [email protected] so we can take a look at it.
    Is this a problem for everyone? or just a few people? Can you provide the OS/browser type/Browser version of the users having problems.
    Thanks,
    Randy

  • After I make a trailer or movie on my Iphone 4S and try to save it to the camera roll, I get a message that "an error occurred during export".  The message appears after the piece has seeminly finished exporting.  What am I doing wrong???

    After I make a trailer or movie on my Iphone 4S using IMovie and try to save it to the camera roll, I get the message "An error occurred during export."  The message appears after the piece has seemingly finished exporting.  What am I doing wrong????

    I appreciate you taking the time to copy and paste boilerplate responses to increase your points in this forum, but I've already read all those support articles in depth; but you have barely read my post at all. Please don't guess a fix. Only someone with the latest versions of iMovie, iOS, iPhone, Yosemite, and MacBook Pro is qualified to troubleshoot this, because anyone would immediately see that the following option no longer exists:
    Open iMovie on your Mac, and choose File > Import > iMovie for iOS Project.
    Read my post before you reply: It clearly says in the title and within my post that I can neither export nor import through iTunes without receiving an error message. So your response neither solved my question nor helped me whatsoever.

Maybe you are looking for