Posts

Showing posts with the label Document Libraries

Useful Tip: Add a link to Create a New Document From a Content Type Template

I found a blog post by Andy Burns that explains how to find and use the javascript from the 'New' button on a Document Library with managed content types to add a link to any page which will open a new document from the template. As the "add new document" link on the summary toolbar of a List or Data View Web Part links to the Upload page of the document library, i used the javascript from the new button instead to create a link that opens a new blank document from the content type template associated with the document library.  This meant that the default save location for the document was set to the document library. Andy's post explains how to incorporate the javascript behind the 'New' button into a link on a different page. The issue that I was attempting to resolve is that I wanted to use the link in client applications outisde of SharePoint.  this meant that I couldn't use javascript, as the function called was not available to the applica...

Metadata not saving after editing properties - Document Metadata Error

Metadata Error: Metadata not saving on item in Document Library after editing Properties Scenario: I came accross an issue in a Document library where i was unable to update the document metadata properties using the SharePoint interface.  The Edit Item page worked fine, and I was able to set the metadata to the values i required, but after pressing ok to save the metadata the new values weren’t being saved into SharePoint (reverting back to the previous value).   The issue was on multiple documents, but not specific to a folder within the library or dependent on certain metadata properties.  The majority of documents in the library work fine when applying changes to metadata. After troubleshooting the issue a little, I found that I was able to update the metadata when editing the document using Office 2007.  After saving the document (stored in SharePoint), the metadata would be applied as expected.  I was also able to replicate the issue in a separate ...