Prompting users to save

Is there a way to implement an iView that can detect when a user has entered data into controls, and then navigates to another page without having saved the data by clicking the save button?  Requirement is to stop the page navigation and prompt the user to save.  I'm curious to know if any of the Java, BSP/ABAP, or .NET development tools could help in this regard.  Any help would be greatly appreciated.

Hi Brian,
this is (should be, didn't install it yet) a feature from EP6 SP3 on. You have to use the EPCF (within this, the so called work protect feature) to set the dirty-flag; with SP2, when the dirty flag has been set and the user wants to navigate, another window opened (so that the not saved data won't get lost). SAP had implemented your disired behaviour for it's own special cases, but from SP3 on, this should be a standard feature; also see https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/enterprise portal client.pdf and http://help.sap.com/saphelp_nw04/helpdata/en/37/50fb5066f9db43b3b5d5fc8de0c051/content.htm.
Hope it helps
Detlev

Similar Messages

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

  • Prompting user to save changes before leaving jsp

    Folks,
    I want to be able to prompt the user to save changes on the page that he's on, before he navigates to a different one. one idea i explored is using the body onUnload event. the problem is that my page is split into multiple jsps with tiles, and the body tag is in a common tile that i can't really access.
    Any other ideas on how to do this?
    Thanks,
    Nilesh

    nthali wrote:
    well, onbeforeunload seems to be an IE specific event. we have some customers using firefox etc.It works in at least IE 5.0, FF 1.5 and Safari 1.3. Only not in Opera yet, because it very strictly follows the w3 standards. It doesn't support the onunload either though, which was also invented by Microsoft and adopted by FF and Safari, only a bit earlier than the onbeforeunload.
    And as I already said, the onunload is already too late. The browser will (already) be closed regardless of the (outcome of the) warning message.

  • How to prompt users to save changes?

    Hi,
    I am using WAD to develop planning layouts for BIIP.
    I am curious as how to prompt the user to save the changes thay made to the data on the layout if they decide to navigate away from the page.
    Any suggestions?
    thank you

    Hi AG
    Did you find the place choosing the options? I didn't remenber them all, you can try to search these options.If you want to change the default value of this option, you can go to System Administration --> System Configuration --> Service Configuration --> Applications --> com.sap.portal.epcf.loader --> services --> epcfloader. Set the value of Workprotect.mode.default, which default is 1, and other three options are related to 2, 3, 4.
    Best regards.

  • How to prompt users to save changes to layouts

    Hi,
    I am using WAD to develop planning layouts for BIIP.
    I am curious as how to prompt the user to save the changes thay made to the data on the layout if they decide to navigate away from the page.
    Any suggestions?
    thank you
    Message was edited by:
            AG

    They can use Acrobat to save the form.
    If they only have Adobe Reader, they need to Reader extend the form, to enable Adobe Reader to save the form with data.
    Jasmin

  • ARD 3 not prompting user to save changes on restart

    Hello! I have ARD 3 and when I send out a restart command and select the radio option "Users can save changes or cancel restart" it acts as if I didn't select this, and instead selected "Users lose unsaved changes".
    This has never worked for me. If working properly, it SHOULD actually show up on the affected computer a dialog popup of some sort providing the user just those option: to save changes or cancel restart.
    What is wrong/going on, and how do I fix it?
    Thanks ahead of time,
    Sam M.

    nthali wrote:
    well, onbeforeunload seems to be an IE specific event. we have some customers using firefox etc.It works in at least IE 5.0, FF 1.5 and Safari 1.3. Only not in Opera yet, because it very strictly follows the w3 standards. It doesn't support the onunload either though, which was also invented by Microsoft and adopted by FF and Safari, only a bit earlier than the onbeforeunload.
    And as I already said, the onunload is already too late. The browser will (already) be closed regardless of the (outcome of the) warning message.

  • ARD 3 not prompting user to save changes even when told to

    Hello! I have ARD 3 and when I send out a restart command and select the radio option "Users can save changes or cancel restart" it acts as if I didn't select this, and instead selected "Users lose unsaved changes".
    This has never worked for me. If working properly, it SHOULD actually show up on the affected computer a dialog popup of some sort providing the user just those option: to save changes or cancel restart.
    What is wrong/going on, and how do I fix it?
    Thanks ahead of time,
    Sam Marcus

    Slava Natapov wrote:
    Samita wrote:
    Whenever a user changes some items in Block_1 and presses save button, the values from non_db items get copied to the db_items (based on view) and commit_form is called. Try to copy values to the db_items not in save button, but in WHEN-VALIDATE_ITEM of non_db items.- I created the non-db items becoz, it was asking me 'Do you want to save changes', even when I only queried data from the view (becoz i was doing some computations while displaying the items. and the form assumed that the DB items were begin changed ). Inorder to get rid of that problem, i used mirror_items (non-db) for all the db items.
    So under this scenario, when i copy values to the db_items in WHEN-VALIDATE_ITEM trigger of non_db items, the form considers the db_items are changed and asks 'Do you want to save changes' even when the user has not made any changes and only queried data.
    Edited by: Samita on Dec 9, 2009 10:12 AM

  • JavaScript to prompt user to save as PDF

    I am making changes with code to the file. I want the user to be prompted to save as a .ai file first. I have that down. Now I am wanting to have the user immediately be prompted to save as a pdf with only the optimize for fast web view option selected. I believe it is an adobe preset of Smallest File Size.
    The reason for wanting the prompt is because I want to save the files in 2 different locations.
    Here is my code so far.....
    var doc = app.activeDocument;
    // Save as .ai file 
    var fileName = doc.fullName; 
    var thisFile = new File(fileName);
    var saveFile = thisFile.saveDlg();
    doc.saveAs (saveFile);
    // Save as .pdf file
    var pdfSaveOptions = new PDFSaveOptions(); 
    pdfSaveOptions.pDFXStandard=PDFXStandard.PDFXNONE; 
    pdfSaveOptions.compatibility = PDFCompatibility.ACROBAT5; 
    pdfSaveOptions.preserveEditability = false; 
    var pdfFile = new File(fileName); 
    doc.saveAs(pdfFile, pdfSaveOptions);
    AI CS4 Windows 7 64bit

    is the folder structure existing already?
    if so, things are simple.
    if the job number and name are in the file the you could pull that from the doc rather then manual entry at the prompts.
    (please note this has no testing to check folders exist etc...)
    var job = prompt("Enter Job Name");
    var num = prompt("Enter Job Number");
    aiFile = "D:\\"+job+"\\"+num+"\\AI\\Schematic.ai"
    pdfFile = "D:\\"+job+"\\"+num+"\\PDF\\Schematic.pdf"
    var newaiFile = new File(aiFile);
    var doc = app.activeDocument;
    doc.saveAs (newaiFile);
    var pdfOpts = new PDFSaveOptions();   
    pdfOpts.pDFXStandard=PDFXStandard.PDFXNONE;
    pdfOpts.compatibility = PDFCompatibility.ACROBAT5;   
    pdfOpts.preserveEditability = false;
    var newpdfFile = new File(pdfFile);   
    doc.saveAs(newpdfFile, pdfOpts);
    if you want the script to create the folders then its a little harder.
    Javascript will not do this and you need some other work around.
    something like this...
    if (Folder(qfolder).exists){
    app.activeDocument.saveAs( saveName, saveOpts );
    }else{
               //alert("about to try bat");
               batpath= 'call "C:\\Adobe Scripts\\MakeDirectory.bat"';
                battemp = new File("C:\\Adobe Scripts\\tempBAT.bat");
                battemp.open("w");
                battemp.writeln(batpath + " " + qfolder);
                battemp.close();
                battemp.execute();
             //alert("Had to Create Folder, Please press OK to continue...");
                $.setTimeout = function(func, time) {
                        $.sleep(time);
                        func();
             $.setTimeout(function(){ app.activeDocument.saveAs( saveName, saveOpts )},200);
    the MakeDirectory.bat is just:
    ECHO OFF
    CLS
    IF %1=="" GOTO BLANK
    SET savepath=%*
    MKDIR %savepath%
    GOTO FINISH
    :Blank
    ECHO No Folder provided
    GOTO FINISH
    :FINISH
    the tempBat.bat is used to call the MakeDirectory.bat with the folder name as an argument.

  • Applescript prompting user to save only on some computers

    I have an applescript that does some workflow on some images. One some computers, the script completes just fine (opens a RAW file and saves a JPG), on others, Photoshop is prompting the user w/ the Save dialog box instead of just saving and closing the document. Is there a preference I'm missing that forces that save dialog box to always show instead of just proceeding with the script?
    Save script snippet
    open thePhoto as Camera RAW with options {class:Camera RAW open options, bits per channel:eight}
    set myJPGPath to dropLocation & nameWithoutExtension & ".jpg"
    set myOptions to {class:JPEG save options, embed color profile:true, format options:progressive, quality:12, scans:3}
    save current document in file myJPGPath as JPEG with options myOptions appending no extension without copying
    close document 1 saving no

    Have a look in the dictionnary for preferences (script preference): "user interaction level.
    You can check on each station for this property and be sure it's the source of the problem.
    I had this problem because i had some script that was setting it to "never interact" (in a batch, you dont want to handle "link missing dialog by exemple) but was not setting it back to "interact with all" (wich can be a problem depending of the scenario you are handling).

  • How can I use wpg_docload.download_file and prompt the user to save it?

    Hi,
    Posted about this a couple of weeks ago with a text file and got the following code (where x.zip=x.txt) and it worked fine. Problem is that I need to do this with zip files, and when I run the code below, it simply displays the zip file, rather than prompting the user to save the file. Have tried every mime type under the sun. No joy.
    The How to Upload and Download Files in an Application Advanced Tutorial for Release 3.2 does not work for APEX4. Simply creating a file browse item leads to Error ORA-20999: P3_FILE_NAME has to have a valid BLOB column as source. and so I cannot follow that tutorial to get further clues on how to make this work.
    Susan
    Thanks and here's the wpg_docload.download_file code that displays a binary file:
    declare
    lob_loc bfile;
    v_length integer;
    fname varchar2(100) := 'x.zip';
    l_blob blob;
    des_offset number := 1;
    src_offset number := 1;
    begin
    lob_loc := bfilename('CELFILES_9906', fname);
    v_length := dbms_lob.getlength(lob_loc);
    DBMS_LOB.createtemporary(l_blob, FALSE);
    dbms_lob.open(lob_loc, dbms_lob.lob_readonly);
    DBMS_LOB.LOADBLOBFROMFILE(
    dest_lob=>l_blob,
    src_bfile=>lob_loc,
    amount=>v_length,
    dest_offset=>des_offset,
    src_offset=>src_offset);
    owa_util.mime_header('application/zip', false);
    htp.p('Content-length: ' || v_length);
    htp.p('Content-Disposition: inline; filename="' || fname || '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( l_blob );
    DBMS_LOB.freetemporary(l_blob);
    EXCEPTION WHEN OTHERS THEN
    DBMS_LOB.freetemporary(l_blob);
    RAISE;
    end;

    I downlod blobs like this without issue (using IE7 and FF):
    owa_util.mime_header('application/octet', False);
    HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
    htp.p('Content-Disposition: attachment; filename="'||v('P20_FNAME')||'"');
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (l_blob);
    ...Remember, that it's your browser's MIME type settings that determine whether to pop up a save diaglog box. In FF 3.6 > Tools > Options > Applications > Content type. The set action for each mime type.

  • INM Impressario - prompt user to choose where to save

    Hi all,
    I have created a PDF from a template on the fly, and I want to prompt the user to choose a folder where they can save the PDF which has been created from template.
    With jpegs I have used BUDDY API, but I have not had much luck using BUDDY API with INM Impressario, can you suggest a way I can do this, and also if there are any known issues with Buddy API and Impressario.
    Thanks
    I am using"
    D11.5 (PC, XP)
    Impressario v4
    Buddy API 4.07

    Hi Mike,
    I looked at the manual again and it says the following:
    "Save with dialog
    Parameters: Event: mouseUp or mouseDown
    Impressario sprite is in channel: channel that contains the Impressario sprite
    Description:
    Opens a Save dialog box, to allow the user to save the current PDF document displayed in the sprite channel specified. The PathType is automatically set to Absolute.
    Usage:
    Drag this behavior onto a button or background object in a frame that contains an Impressario sprite"
    The way my movie works is that, you can navigate through lots of different products which contain, images, synospsis and lots of other data which are changed dynamically as the user selects a different product.
    Then if the user wants to have a hard copy of all the data on the product page they are on, they click the 'download pdf' button, at that point Impressario creates the PDF from a template using the assets already loaded into the product page.
    At the moment I am able to specify where to save it using the 'savefromTemplate' function of impressario.
    When I try and use Buddy API I dont get any error message, but I dont get any PDF either

  • EditForm.aspx Save button prompts user to open/save document.

    Hi,
    Here is the senerion where i am working on.I am saving a document to a sharepoint 2010 document library from an windows user control and soon after saving i am redirecting that saved document to editform.aspx  so that metadata can be applied
    to that document.But when i am trying to save the document form editform.aspx it is prompting to open/save the document to the hard disk.
    so my question is how can i override the save functionality in editform.aspx of an sharepoint document library so that it should't prompt to  open/save document.
    Dillu

    I know this is very old and I had a similar issue with creating an upload button for a client.
    <div class="ms-uploadbtnlink">
    <button onclick="javascript:window.location='http://adventureworks.com/_layouts/Upload.aspx?List={05D72EF7-0026-48C2-BE40-464B7F30CA21}&RootFolder='" type="button">
    <nobr>
    <img alt="Upload a Document" src="/_layouts/Images/uploaddoc.png"/>
    <span>Upload a Document</span>
    </nobr>
    </button>
    </div>
    I tried everything listed here and nothing worked. Opening the upload form in a dialogue solved my issue.
    Here's the updated code:
    <div class="ms-uploadbtnlink">
    <button type="button" id='upload-vendor-doc'>
    <nobr>
    <img alt="Upload a Document" src="/_layouts/Images/uploaddoc.png"/>
    <span>Upload a Document</span>
    </nobr>
    </button>
    </div>
    <script type="text/javascript" language="javascript">
    function openModalDialog(modalUrl, width, height) {
    var options = SP.UI.$create_DialogOptions();
    options.height = parseInt(height);
    options.width = parseInt(width);
    options.url = modalUrl;
    SP.UI.ModalDialog.showModalDialog(options);
    var URL = "http://adventureworks.com/accounting/VI/_layouts/Upload.aspx?List={05D72EF7-0026-48C2-BE40-464B7F30CA21}&RootFolder=";
    document.getElementById("upload-vendor-doc").onclick = function() {
    openModalDialog(URL, 800, 1000);
    </script>
    Hope that helps someone.

  • HOW DO I CHANGE THE FONT OF "Message to Display" IN THE Prompt User for Input

    Hi,
    HOW DO I CHANGE THE FONT OF "Message to Display" IN THE  Prompt User for Input?
    Thanks for your help 
    XN 

    Right click and select Open front panel >> Convert.
    Change the vi as you need. then you can save it as a normal sub-vi.
    If you have Labview 8.6, maybe (i am not sure) you can edit the express vi. Express vis are supported in 8.6

  • How do i create a form in live cycle E4 that i can save as a PDF that the user cannot save over?

    How do i create a form in live cycle E4 that i can save as a PDF that the user cannot save over?

    You can't. If the file is made read-only via the file system, the user will prompted to save as a new file if they attempt to save.

  • Prompt user, when hitting with SUBMIT button

    Hello folks,
    I have application with student record, on 1st page user enters student's name and on 2nd page user enters students grade and their are two buttons on 3rd page saying SAVE and SUBMIT, with the hitting of both the buttons students record enterred by the user will be INSERTED into DB table.
    Now I want to add a functionality saying, student_name as mandatory filled <b>only when user hits SUBMIT button</b> on 3rd page, hence user cannot submit leaving mandatory filled as empty. So I want to prompt a window on 3rd page with the student_name item where user can enter student's name and hit OK button the same prompted window which will help user to SUBMIT that particular student.
    any idea how to achieve it, how to validate and prompt user, when user submits students without entering mandatory items/fields.
    Thanks
    Deep.

    Hi Dan,
    Thanks for replying, yes I'm very aware about your reply but I'm having req. so was trying to implement same into my current application.
    I tried a small example into apex workspace to better understand have a look into it:-
    workspace :- deepapex
    username :- [email protected]
    password :- walubu
    application "Prompt_only_for_Submit"
    I kept validation on page 3 if user doesnt enters student_name(on page 1) upto here it's working perfect than I started implementing JavaScript to open a prompt, but I want to open this prompt only when user doesnt enters student_name on page 1 and not everytime, also within this prompt I was looking how to have text_box item where user can enter student_name on page 3 where he actually forgotted to enter on page 1, so this new student_name item will go into insert process and hence this will be done, I'm away of the logic but really lacking to implement it.
    So if you can help little it will be glad to you.
    Thanks
    Deep.

Maybe you are looking for

  • Printing from InDesign asking for computer login password

    Hi. Just got new MacPro, CS4 Design Premium. Every time printing from InDesign asking for computer login password. Never happened with CS3. Is there any way to avoid job holding in printer's dialog box, waiting for authentification?  No problems prin

  • How to resume the location bar after I hid it?

    [http://i210.photobucket.com/albums/bb39/jasontcm/Untitled.png] (The cleard icons are my bookmarks) I unclicked the location bar and the meun bar from the right click box. After this, I cannot open this right click bar again. How can I resume them? P

  • ILife 06 compared to iLife 08

    I have been reading that iMovie 08 will not be compatible on my iBook G4. If I purchase iLife 08 and load it will I still have the use of the old iMovie? Or should I just keep what I've got and continue to use 06. Thanks for advise.

  • Switch on problem Macbook pro

    Hi I have problem with my macbook pro. Afew days back did this: https://www.youtube.com/watch?v=DAs88OhFOMU It take some time but always switch on but nowday nothing only sometimes for afew sec works then switch off like here: https://www.youtube.com

  • New GL functionality in SAP Upgradation in Asset Accounting

    Hi Team, My client is using 4.7EE version they want to upgrade system with ECC6.0. But there is a problem with Depreciation areas. There business is there in multiple countries. Globally they want leading ledger and locally they want non leading ledg