Hitting 'Save' in EditForm opens PDF document

I created a custom document library that stores scans of invoices as PDF-A documents. The library has a custom content type with some custom fields and the list's schema also links to a custom EditForm.aspx.
In the EditForm I am using a JavaScript function named PreSaveAction for some custom validation. The save button itself is not customized.
Now on some clients in the customer's network a weird effect occurs: Every time a user hits the save button of the EditForm, the browser redirects to the PDF's URL instead of the source URL, effectively opening the
PDF in the browser.
IE debugging doesn't lead to any errors. The last JS function called, before the PDF opens, is in line 2090 of SP.UI.Rte.debug.js:
RTE.Imports.ExecuteOrDelayUntilScriptLoaded(RTE.Canvas.$F1_0,"sp.ribbon.js")};
but that seems to be normal behaviour.
BTW, i am not opening the EditForm in a SP Dialog (NavigateForFormsPages="TRUE").
Has anyone ever encountered such an effect?

Hi,
sorry for the late reply. Actually the whole story was much easier than I thought it would be. The missing peace, that I've forgotten to mention, is that I created the Edit-Buttons via JavaScript and there I simply didn't supply a"Source" url parameter.
So appending the following to the anchors href value did the trick:
 + "&Source=" + window.location.href;
Interestingly the default behaviour in absence of that parameter seems to be to redirect to the file's url.
Btw, the initial reason to append the edit buttons manually was the fact that sharepoint does not render edit buttons if the user hasn't AddListItems and DeleteListItems permissions on the list. For all users, who had that permissions, everything worked
fine because in that case I didn't manually create the edit buttons.
If anyone knows a more elegant solution, than creating them via JavaScript, I would appreciate to hear from that.

Similar Messages

  • Why can't I save text I've entered into a PDF file?  When I hit "Save As", only the PDF document is saved, but not the text i typed into the document.  I'm using Windows 8.

    Why can't I save text I've entered into a PDF file?  When I hit "Save As", only the PDF document is saved, but not the text i typed into the document.  I'm using Windows 8.

    THANK YOU!
    Jan Whitfield
    The College Planning Center
    250 Palladio Parkway, Suite 1311
    Folsom, CA 95630
    (916) 985-0453
    www.TheCollegePlanningCenter.com

  • I installed Firefox 3.6. Since then, I am unable to open pdf documents in Firefox. I get a black page. I tried opening the same document in Internet Explorer. It worked fine. I recently installed Nuance's pdf reader and thought that might be the problem.

    I installed Firefox 3.6. Since then, I am unable to open pdf documents in Firefox. I get a black page. I tried opening the same document in Internet Explorer. It worked fine. I recently installed Nuance's pdf reader and thought that might be the problem. Uninstalled it. Still have the problem with Firefox.
    == This happened ==
    Every time Firefox opened

    How about if you right click on the PDF and select Save Link As..., and then open it locally from within Reader? Does it work ok then?  That might be a workaround until the issue within the browser is resolved.
    Rob Jaworski
    Intl Program Manager

  • How to open pdf document in other window by using java script

    Hello All,
    I am working in R12 Application.
    My jdeveloper version is 10.1.3.3.0.3
    I want to open pdf document in other window on clicking the button
    for that i have written following code in process request of the controller:
    pageContext.putJavaScriptFunction("doFilterSwitch", "function doFilterSwitch(){window.open('/t01/oracle/TEST/inst/apps/TEST_appsdev2/logs/appl/conc/out/545042.pdf'); }");
    OAButtonBean moHelp =(OAButtonBean)webBean.findChildRecursive("Download");
    moHelp.setOnClick("doFilterSwitch()");
    but when i hit download button it gives me the below error:
    The webpage cannot be found
    HTTP 404
    Most likely causes:
    There might be a typing error in the address.
    If you clicked on a link, it may be out of date.
    What you can try:
    Retype the address.
    Go back to the previous page.
    Go to and look for the information you want.
    More information
    please help me out
    Regards,
    sheetal

    Instead of giving the link in Process form request, give the link directly in Destination URI property of the button and in target property write _blank.
    Note : use normal button not submit button

  • I can not open pdf documents

    If I want to open a pdf document I get the following error-message:
    "Error during page elaboration. A problem occurred during reading this document (109)"
    I have Adobe Reader V8. I removed the version 8 and installed version 7, but I still can not open the document.

    I can not open .pdf documents unless I save them first.  But sometimes I can't download the file first - I get an error message that says that my version of Adobe can't open a .pdf in a web browser...
    Help

  • How do you save a multiple page pdf document?

    I have about 30 single illustrator pages (cs3) and need to save them as one pdf document, with multiple pages if possible. please can someone talk me thru this, all the stages please.
    thanks

    What I usually do is this: Make pdfs of your files. Open the first one in Acrobat and then Insert (Cmd-Shift-I) the other files one by one After the first one. Then resave under another name. Now you've got a multiple page pdf.
    The other way is to page-tile an Illy file, print to eps and then use Distiller. The result will be a multi-page pdf with each tile as a separate page.
    I recommend the first method though - it allows you to have different page sizes within a single pdf (if that's what you want). If you want all pages to be of the same size you just use the same artboard size on all Illy files.

  • I am having a problem opening pdf document.  I get error message: "Adobe Reader has stopped working"

    I am having a problem opening pdf document.  I get error message: "Adobe Reader has stopped working" then I get Windows is looking on line for a solution, but then my document closes. I tried uninstalling and reinstalling Adobe Reader XI, rebooted my computer but this did not help.  I get the same message. What to do?

    Can you open Reader by itself?  If so, check if disabling Protected Mode improves the situation [Edit | Preferences | Security (Enhanced)].

  • Can not open pdf documents...

    can not open pdf documents..., when i use my laptop without restart two,three day's....???????
    why is that ??????????

    AmS-Haz wrote:
    I mean, when I install the Adobe Reader 8 previous problem occur, as same as Adobe Reader 9, I did not use or install Adobe Reader 8 &
    Adobe Reader 9 both are concurrently....
    Do you have, or have
    had, both Reader 8 and Reader 9 installed
    at the same time in your machine? If you have, you must
    do as graffiti
    suggested in a previous message.
    Extra line breaks kindly provided by the software.

  • Adobe Reader 11.0.03.37 hangs and freezes opening PDF documents

    When opening PDF documents with Adobe Reader 11.0.03.37, it hangs and freezes for a few minutes.  Is anyone else experiencing this and is there a fix or work around?
    We have Windows 7 Professional 64-bit operating systems.  It takes a moment for the Adobe Reader to unfreeze itself but will eventually.
    Thanks!

    Found a fix for my problem.  It wasn't the Protected Mode issue after all.  The fix is to disable In Product Messaging.
    Here is the fix for the problem.  Now maybe Adobe can address this issue in the future release or patch/update.
    Try it on yours and see if it doesn't fix it also.
    The following below link provides the information I am about to share with you.
    But open Adobe Acrobat Reader without opening a PDF file. So just open Adobe Reader application by itself.
    1. Click on EDIT
    2. Click on PREFERENCES
    3. Click on GENERAL Category
    4. UNCHECK "Show me messages when I launch Reader"
    5. CHECK "Don't show messages while viewing a document"
    This should fix your problem as it fixed mine. See the link below for more information. Looks like I will be doing a regedit script for our network users to get rid of this problem. UGGGHHH!!!!!!
    Hope this helps!
    http://www.adobe.com/devnet-docs/acrobatetk/tools/PrefRef/Windows/IPM.html?zoom_highlight= IPM

  • Opening pdf documents in SOLAR01

    Hello All,
    Is there a way to open pdf documents in SOLAR01.
    If I try this now, an internet browser is opened which after a while will show:
    <i>The page you are looking for is currently unavailable</i>
    1) is it so that the solmandocumentation service needs to be enabled to show pdf documents.
    2) is there a way to open pdf docs in adobe reader directly (without IE).
    Thanks for the help,
    Jurjen

    Hi
    You can view all pdf doc in solman itself just select the same and click display icon or just double click it it will open in solar01 or solar02 itself but wait for some time to get it loaded.
    whereas if you want to open the doc in explorer just click the attributes and generate url and paste the same in explorer.
    You can view in explorer this way.
    If you are facing any issue in the above standard procedure please contact your basis team for the same.
    Please reward points.

  • Opening pdf documents in browser impossible

    Hi there all,
    have problems opening pdf documents in safari window. On all of my macs (except for the macpro) pdf docs open in the safari browser window using the pdf plug-in. Installed plug-in list tells me that adobe pdf-viewer plug-in is available. Why doesn't it work ? Running Firefox, same problem. Application asks what to do : open with preview app (standard), but no other possibility, although I have latest adobe reader app. installed, as well as acrobat professional 8.xxx.
    What is going wrong ? It seems pdf plug-in is not found or recognized. Help !

    Hi
    You can view all pdf doc in solman itself just select the same and click display icon or just double click it it will open in solar01 or solar02 itself but wait for some time to get it loaded.
    whereas if you want to open the doc in explorer just click the attributes and generate url and paste the same in explorer.
    You can view in explorer this way.
    If you are facing any issue in the above standard procedure please contact your basis team for the same.
    Please reward points.

  • Opening PDF Document in New Window

    Hi,
    I have requirement to open pdf document in new window. I'm using Travel Expense form. I'm using the FM PTRM_WEB_FORM_PDF_GET. When I give 'X' to i_display_form, it displays the pdf document in same session or window. But I would like to open the pdf file in new window.
    The FM gives me pdf data of type RAWSTRING. Is there any FM or class where I can pass this data and open it in New Window.
    Can anyone please suggest on this.
    Regards,
    JMB

    download it using  gui_download and use cl_gui_frontend_services=>execute to execute that pdf file

  • Uable to open PDF document in proper format on blackberry browser

    We are trying to open a document hosted in MOSS document library using blackberry browser. The document type can word, excel, power point, pdf. But when we are trying to open PDF document using blackberry browser the document is displayed as long string of text message rather than PDF document and strips all the formatting.
    But if we email the same document and try opening that in blackberry then it works fine. Please share your thoughts, how we can properly render these documents on blackberry browser. Because this is a show stopper for our solution approach in which user can open any document on his blackberry.

    mreynaud wrote:
    I read your post on Blackberry Support Forms and I'm wondering if you ever found a practical solution to opening PDF documents in the Blackberry Browser?
    mreynaud, did you read my answer dated 04-22-2009 12:45 AM ?
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Open PDF document through JavaFX

    Hello All,
    I want to open pdf document when user clicks on "Help" link in JavaFX. PDF document is usually locally stored on user's machine.
    How I can achieve this ?
    thnx in advance,
    Venky

    Will it work for Linux ?No, of course.
    I think you must do something like:
    var params = [ 'cmd', '/c', pdfFilePath ]; on Windows
    var params = [ 'open', pdfFilePath ] on Mac
    var params = [ 'gnome-open', pdfFilePath ] on Linux with Gnome
    var params = [ 'kde-open', pdfFilePath ] on Linux with KDE
    then your Runtime.getRuntime().exec(params);
    You can catch exceptions if you are not sure of the platform (particularly Gnome vs. KDE): if raised, try something else...
    That's how Processing does its open() function. (Untested in JavaFX...)

  • Can I set up safari to automatically open PDF documents in the pages app?

    Can I set up safari to automatically open PDF documents from the internet into the pages app?

    No - and you can't open pdf files in the Pages app on the iPad anyway as far as I know. You can export a Pages file as a pdf but you can't open them in Pages.

Maybe you are looking for

  • HT5826 How do I sync specific ePUB files to a specific iPad?

    I have read several threads on the topic and nobody seems to have an answer yet. I have a FAMILY itunes account that we have all used for years. All purchases are available to every one in the family. We each have our own computer (Mac and Windows).

  • UCCX 8.0 with Oracle Packages

    Hi All, I'm implementing a UCCX 8.0 IVR application to be integrated with Oracle 11g database. I have a requirement to call some packages on the Oracle database to retrieve some values and integrate it with the IVR script. Is there a way to call Orac

  • Filter the Tabledata Entries

    All, I have a table, which has 100 entries, I want to filter the Rows programmatically. The prgram will set the filter value not from user. How to do that? Note: I dont want to show the Filter in the table and user will not have any control. BM. Mess

  • SKype Phone Not working

    Hello I am trying to get in contact with ebuynow. I bought a skype phone from them less than a year ago. They have not gotten back to me in a week and I am afraid I am unable to get into contact with them. Is there anything that skype's end can do so

  • [Solved] Systemd - Overrides settings of Gnome-Power-Manager?

    Hello! I've always used the following to lines to tell Gnome-Power-Manager not to suspend my laptop, when the lid is closed: org.gnome.settings-daemon.plugins.power lid-close-ac-action 'blank' org.gnome.settings-daemon.plugins.power lid-close-battery