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.

Similar Messages

  • How can I force the browser to prompt user to open or save a pdf document instead of opening it in the browser window?

     

    Change the MIME type for pdf from application/pdf to something else, such as application/octet-stream.
    You can change MIME types through the administration server or by editing the mime.types configuration file. The Administrator's Guide at http://docs.iplanet.com has more information.

  • How to avoid lo-gin prompt while check in the document and saving doc while opening the document?

    Hello
    I might be missing something to configure or verify but many times I have faced below situation :
    When I click on document in document library either its just opens or first save to disc and open.
    When I check in a document , its asking for credentials but sometimes doesn't
    Can anyone please describe the reason behind above behaviors ? how to avoid saving doc while opening and lo-gin prompt while check in the document?
    Thanks and Regards,
    Dipti Chhatrapati

    It the sharepoint site accessed through firewall
    http://support.microsoft.com/kb/2756625
    You can try adding below registry
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters\AuthForwardServerListAdd the site to Trusted Sites Zone instead of Intranet Go to Control Panel >> User Accounts >> Manage Your Credentials and remove any credentials storedMake sure your office and IE Is same build (64 or 32)http://www.techrepublic.com/blog/smb-technologist/prevent-unwanted-credentials-prompts-with-sharepoint-document-libraries/ checked that 'basic authentication' is unchecked under Central Administration -> Application Management -> Authentication
    ProviderOr tryhttp://social.technet.microsoft.com/Forums/office/en-US/45feb132-c304-4521-8b79-42236a829aab/login-prompt-appearing-when-opening-office-documents?forum=sharepointadminlegacy
    If this helped you resolve your issue, please mark it Answered

  • Open PDF document with a click of a button

    Hello All,
    I am trying to open a pdf document which is located on the Unix server when a button is clicked. The Button is of Item Style 'Button', the file is at a location for example /tmp/user/.
    Can anyone please suggest with some already existing examples. I looked for a few in the OTN forums but everything was pointing to involving BI Publisher. But my requirement is to open an already existing document with a click of a button.
    Please suggest.
    Thanks
    Kris

    Wahid,
    Thanks, the button is not only opening the document but before that the button click should merge the Pdf documents into one. The PDF merge is happening, but when I have a URL in the button its killing the merge functionality.
    I used the HttpServletResponse and servletoutput stream to open the merged PDF document. Its working on my local machine, I need to try it on the server.
    I was trying to use the XMLIMporter command to upload the OAF oage which already exists in the server. But this did not work for me. Since I am new to OAF may be Im missing something. Below is the XMLIMporter command.
    java oracle.jrad.tools.xml.importer.XMLImporter SearchPG.xml -username apps -password pwd -dbconnection " (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hostname.com)(PORT=1111))(CONNECT_DATA=(SID=ora_sid)))" -rootdir $JAVA_TOP -rootPackage /Server/apps/comn/java/classes/customDir/module/page/webui/
    The Search Page is in /customDir/module/page/webui/ this folder. Is Framework bounce needed in this case.
    Thanks again.
    Kris

  • How to open office document in read only mode

    Hi,
    I've a library that contains Excel Documents. I've create an access group with read permission.
    A user belonging to this group can open a document in Excel, do changes and save back the document to the library. This is not what I want.
    I want to allow users to open the document but not save it back to the library. How can I do it?
    Best regards.

    To check at the document level...
    1) Navigate to the document library and choose a random document that a user in that group should have access to
    2) Go to "View Properties" of the document. Choose "Shared With"
    3) Than choose "Advanced"
    This will bring up the specific permissions for a specified document. 
    Also for a test, try creating another permission level for a test user. 
    1) go to "Site Settings" 
    2) Choose "Site Permission"
    3) In the ribbon choose "Permission Levels"
    4) Choose to "Add a permission Level"
    5) Give the level a name... and only give it the access to read. Add a test user and see if you still get the same results. If not than you have you fix.
    Let me know if this helps
    Thanks, Danny Hickman IT Support Specialist

  • Open a document in read only mode

    HI All,
    I created a panel in which we have
    edit box which shows the document path
    Browse button to allow a user to select an indesign document
    "Open read only" button.
    My requirement is that after selecting an Indesign document if user click to "OPen read only" button then it will opened selected document in read only mode.
    I will be highly thankfull to all community memeber if anyone can give me some hint to achieve this.
    Regards,
    Alam

    Alam,
    If you change the attributes of the file before opening it to read only the file will be opened as read only by Indesign. And then you could place a responder that could clear this read only flag when the file is being closed so that the permissions are restored to the original state.
    Manan Joshi
      - Efficient InDesign Solutions -
    MetaDesign Solutions
    http://metadesignsolutions.com/services/indesign-development.php

  • Oracle EPM 11.1.2.3: Only R&A Administrator Can Open IR Documents

    Windows 2008 R2, SQL Server 2008 R2
    I am trying to use a test user to test for problems in a new maintenance release from 11.1.2.1 to 11.1.2.3. My test user was not provisioned individually, just using WORLD for roles. WORLD is in these roles:
    Analyst
    Dynamic Viewer
    Explorer
    IR HTML Viewer
    IR WebClient Viewer
    Interactive Reporting Viewer
    The test user was unable to open IR documents, so I began modifying the user's provisioning. If I put the user in the Reporting and Analysis Administrator role, I can open IR documents. If I remove the Reporting and Analysis Administrator role and add the Content Manager and Schedule Manager roles to the user's provisioning, I can't open IR documents.
    I remember the 11.1.2.1 documentation had a one-liner (in the thousands of pages of docs) about how security changes had been made that prevented users from opening IR documents (and how to fix it). I haven't yet found the documentation about this for 11.1.2.3. If you know how to make this work properly, please share.

    Apparently 11.1.2.3 has the same problem 11.1.2.1 had.  Support said (and it worked):
    1. Stop EPM services.
    2. Backup the table V8_CSS_ROLE
    3. Execute the following SQL queries against Reporting & Analysis relational database:
    update V8_CSS_ROLE set ROLE_ID='0000011ed1cf2e7a-0000-4dc0-0a8f1415' where CSS_IDENTITY='native://DN=cn=HAVA:0000011ed1cf2e7a-0000-4dc0-0a8f1415,ou=HAVA,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE';
    update V8_CSS_ROLE set ROLE_ID='0000011ed1cd5c8f-0000-4dc0-0a8f1415' where CSS_IDENTITY='native://DN=cn=HAVA:0000011ed1cd5c8f-0000-4dc0-0a8f1415,ou=HAVA, ou=Roles,dc=css,dc=hyperion,dc=com?ROLE';
    4. Start EPM services.

  • Can't open Office documents from network share

    Dear,
    I have a user named X that can't open Office documents from two specific shares. We call this shares T and U.
    When the user X opens Office documents the error message is "...xlsx can't be opened". The problem is not client specific because when I login on the same client I can open the documents without any problem. If you copy the file to your desktop it
    opens fine.
    Any idea?

    Anybody?
    We have a problem with a customer that they can't open Office documents(Word,Excel etc.) on Windows 8 image on a network share. The error message is just that they can't open the document. The documents are on a sharepoint site and we can open the documents
    within the site and also we can open the Office documents on a Windows 7 image.
    I think there is a group policy for Windows 8 for this but I don't know for sure?
    Anybody?

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

  • Reporting who has opened a document/file in a repository

    Hi all,
    is it possible maybe with a portal component to see which user has opened a document in a repository?
    Best regards
    Joerg Heyne

    Hi Vivek,
    thats my first problem: The rep. service did not appear atomatically in portal after deploying.
    Could please check my portalpp.xml file and probably send me yours?
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="de.gesis.portal.SampleService,com.sap.netweaver.bc.crt,com.sap.netweaver.bc.rf,com.sap.netweaver.bc.util,knowledgemanagement,portalapps"/>
      </application-config>
      <components/>
      <services>
        <service name="RFServiceWrapper">
          <service-config>
            <property name="className" value="de.gesis.portal.RFServiceWrapper"/>
            <property name="startup" value="true"/>
          </service-config>
        </service>
      </services>
    </application>
    thanks and regards
    Joerg

  • Cannot open Excel documents in Sharepoint 2010 Enterprise

    We keep having this recurring issue where sharepoint will not allow users to open Excel documents. They receive the error:
    "Unable to process the request. Wait a few minutes and try performing this operation again".
    I did some research and it turns out that a simple reboot causes the issue to subside, but it comes back again.
    Any ideas?

    ProTranslating-Frank,
    Please try these links
    You
    can set the time you want to Recycle under Recycling > Specific Times
    The solution is to disable the ASP.NET Impersonation again.
    Thread 1
    Thread 2
    Similar Blog
    Hope these will help you
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

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

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

  • How do I save PSD files created in windows so MAC users can open and work

    I have been designing photoshop files for sale to photographers online and all of my work has been created in a windows 7 system. I had a photographer contact me saying that the PSD was trouble to open and that the fonts would not work on his MAC computer.
    Can someone supply me with information on creating/saving windows PSD files so that a MAC user can open them and also use the fonts I supply with the files.
    The files I create are multilayered PSD's and contain fonts for windows PC use and I don't want to exclude MAC users from utilizing my work.
    Any help appriciated.
    Bqwhitten

    Just save.  There is no difference in files between platforms.
    There are some Windows-centric font formats that aren't portable, by any OpenType or TrueType font will be portable between platforms.

  • "Open VI Reference" Option "Prompt user to find missing subVIs"

    I am using "Open VI Reference" to dynamically load a VI. For the "option" control of the "Open VI Reference" node, I pass "0x10" or "10" in hexadecimal, which supposedly "prompt user to find missing subVIs." Nevertheless, I don't get a prompt message dialog when I intentionally pass an invalid or missing VI path. Instead I just get an Error Code 7. What does this option "Prompt user..." suppose to do?

    Make sure you set the properties on the integer input into the “options” control to the “Open VI Reference” to be a Hexadecimal format (right-click on the “options” control input, select Format and Precision…, then select Hexadecimal). Now, if you re-run your VI and wire in a VI with a missing subVI, the Open VI Reference will appear with a dialog that will prompt you to browse to the missing subVI. This is exactly the same message LabVIEW displays when it attempts to open a VI and cannot find its subVIs.
    I’ve attached a simple example program to demonstrate. Enter the path to the “number extractor.vi” as the VI to open. You should see a dialog prompt appear asking for the “Search 1D Array – Complete.vi”.
    Hope this helps!
    Attachments:
    openVIRefExample.zip ‏20 KB

Maybe you are looking for