sharepointdocumentlibrary

SharePoint custom context menu in custom list appears on folders and not just files

I have created a custom list here is the List Template: <ListTemplate Name="CustomDocumentLibrary" DisplayName="Document Library" Description="" BaseType="1" Type="10101" OnQuickLaunch="TRUE" SecurityBits="11" Sequence="110" Image="/_layouts/...

Create a document library with external persistence

I would like to create a custom document library where I use the standard UI but implement a different persistence layer. Basically fetch and display documents from a different source system. This way I can use my existing object model but leverage the great office integration within SharePoint. I found a decent article here but they ar...

How do you get file details in a SharePoint ItemEventReciever in the ItemAdding Event?

I would expect something like this to work but the ListItem, BeforeProperties, AfterProperties are all null/empty. I need the file name and file content. public class MyItemEventReceiver : SPItemEventReceiver { public MyItemEventReceiver() {} public override void ItemAdding(SPItemEventProperties properties) { SPListItem ...

Display a success message to user in a SharePoint Document Library after validation in ItemAdding Event

When validating a document in the ItemAdding event there are many ways to display errors to the user, but there doesn't seem to be a way to display successes to user, like a validation was successful. An info message to the user at the top of document library would be great. public class MyItemEventReceiver : SPItemEventReceiver { p...

SharePoint Document Library Provisioning

I have come across an issue which occurs when provisioning a new Document Library and adding content to it via features. The following issue won't happen as long as there is an Activation Dependency set for the content feature. The scenario: I have 2 features, the first provisions a basic Document Library on my site. Document Librar...

inadequate version control, MOSS 2007

Sharepoint document libraries used for policies and procedures, both administrative and clinical (health care). version control and approval workflows support legislative requirements and protect against liability issues. Unfortunately, deleting a document removes all record that it ever existed--all the history goes with it. I don't ...

SharePoint 2007 Document Libraries vs. Folders

We are building a new SharePoint 2007 web site to replace our intranet website for the company I work for, and a common debate keeps coming up. Specifically, should we be using multiple document libraries (ex. 1 for each department), or one document library with multiple folders within (ex. 1 library with 1 folder for each department). ...

how to associate a custom Page with new doccument in doccument library,also the fields in rhe page will come to the columns.

Hey, I am onto a task in which i have to create a link in a doccument library either upload or new link,clicking on which a form/page "not infopath" will get open and allow to upload the doccument and along with that we have some text boxes on the same page which will be asking for the properties of the doccument(like "Customer of the do...

How to delete documents from a document library in WSS 3.0?

Hi, I need a way to programmaticaly delete documents from Sharepoint 2007 document library. I don't have access to the server to deploy server-side code, so it needs to be via web service or pure http. I can find plenty of examples for removing attachments from list items, but nothing for removing from document libraries. Idea, anyone?...

Sharepoint's "New Folder" doesn't ask for a required field.

I am using Web Part Connections to filter documents in a documents library in SharePoint. To do this, there's a column that is required, which I've named "related contact." Here's my problem: When I go add a New Folder (instead of just a document) SharePoint only asks me for a title for the Folder. The "related contact" column (which is ...

sharepoint moss 2007 add column with javascript

We use MOSS 2007, and I have a document library with several document templates in it. When someone clicks the document template (for example .dotx), the templates is opened. But I want it working so that a new document is opened based on the template. I can do this with the New button in the toolbar above the list, but I do not like th...

Soft Limits for Sharepoint2010 document libraries, page libraries and lists

Our client plans to migrate from the existing Content Management System(non-Sharepoint) to Sharepoint2010. We need to specify soft limits for document library, page library and list to the client from a migration perspective(even i didn't understand what this is about :P)but my Team Lead told me this. I have been searching on soft limits...

How can I retrieve items from a folder in sharepoint using web references besides using SiteData's EnumerateFolder

Hi, I am trying to retrieve items from a folder in sharepoint wss 3.0 and I can do it fine with SiteData's EnumerateFolder but that object only gives me url, I need much more information such as "ows_Author", "ows_Title" and ect.. Thanks. ...

How do I know if the user selected a SharePoint file in OpenFileDialog?

In an OpenFileDialog, the user can enter the address of the SharePoint site and select a document in the document library. I need to provide check-in/check-out integration for SharePoint documents. Is there any way to determine if the file is stored in a SharePoint document library? Thanks in advance! ...

SharePoint concurrency issues (users accidentally checking out older versions of files)

This is a strange issue that I'm wondering if others have encountered when editing documents in a SharePoint document library. Basic problem is as follows: User1 edits document X User1 checks in document X (say this new version is version 12) Days later, User2 checks out document X, but the document they begin editing is actually vers...