sharepoint

CAML query that includes folders in result set

I'm trying to write a CAML query that executes against a specific SPList, scoped to a specific folder, recursive from that point, and returns all ListItems (which meet a criteria) and Folders. Here's the code for the query which seems like it should work (formatted for readability): SPQuery query = new SPQuery(); query.Query = " <Where...

sharepoint document visiblity based on user contribution to library

Hello All, We have a doc library, Requirement is that only the user who has contributed to the document should be able to see the document and other user who has access to the library should not see that. Can you please help me to achieve this. Update: I talked to my TL he said, we need multiple Views on the Doc Library. Any one with ...

Creating SharePoint WikiPage Items using Object Model

Hi, I have created a SharePoint wikipage library using C#. Now when I try to add files to the WikiPage library using SPFileCollection.Add method and click at those files, they appear in a separate browser window. They do not come up in the sharepoint window itself as in case of a WikiPage created from the SharePoint UI. What am I doing ...

How to programmatically get associated webparts of sharepoint list?

Using SPList I want to get all the webpart urls that associated with the list. Is it possible? ...

How do you remove/delete a column in a custom list that you added from existing site columns?

I have a custom list, and I've added a 'Page Image' field by clicking on the 'Add from existing site columns' link on the Settings page for the list. I would now like to remove the field, but clicking on the field name on the Settings page yields no 'Delete' functionality. How do you remove fields from a custom list in SharePoint that h...

SharePoint - How do I limit the number of versions per document in a document library?

Hi SO, How do I limit the number of versions per document in a document library? We'd like to do this to save space, as SharePoint stores a full copy of each version of a document in a library (so I've been told). Also, once implemented, what happens to the old versions beyond the threshold? For instance, if I have a file with 30 versi...

Modifying a sharepoint workflow while it's running

I've been asked to add a step to a workflow I've written but there are already many documents currently inside this workflow that I would like to switch over to the new workflow. Can this be done easily? I've looked on google and places like this: http://stackoverflow.com/questions/357032/how-to-upgrade-a-long-running-sharepoint-workfl...

Customizing SharePoint master page

Hi, I have customized SharePoint master page Navigation menu by adding asp:XmlDataSource but I am getting "The control type 'System.Web.UI.WebControls.XmlDataSource' is not allowed on this page. The type is not registered as safe." Error. I really appreciate any help. ...

How to create a different user category in SharePoint and a view designated only for them?

Hi. How do I create a different users category? (more restrictive - with view only properties)? How do I create a View - only for this category of users? I need to group some users into a view only category and then assign only ONE view to this group, so they can not see everything that is in my list. SharePoint, so far, does not giv...

Deploy WCF Services in SharePoint Without Modifying Web.Config?

I'm exploring the possibility of deploying WCF services to a SharePoint Farm/WebApplication/Site/Web via a SharePoint feature without using the SPWebConfigModification class or manually editing web.config. The Gille virtual path fix has already been applied so it doesn't factor into this. The furthest I've been able to get thus far is cr...

Error with home-grown SharePoint BDC entity definition

I am trying to create my own application definition xml file for the SharePoint BDC, mostly because I want to become more familiar with the concepts. My application uses an in-house Oracle database, and it contains only one entity which is intended to just retrieve a subset of columns from a single database table. The entity ("Analytic...

Sharepoint Alerts on List Folders.

Hi, I would like to programatically add alert to folders inside a sharepoint list. I have found how to set alerts to a list and this works perfect. Could someone please help me on how to set alerts to a specific folder which is inside a list. Below is the code i currently have which sets alerts only to the list. using (SPSite s...

How to direct user to the contents and not the properties after clicking lookup field pointing to folder in WSS?

Background I want to put a lookup field in sharepoint list that will point to a folder. Thats the easy part, but I want user to be pointed to folder contents (not the folder properties) after clicking on the link. It's not possible from the sharepoint interface so I'm trying to create custom field type. Question What method should I ov...

Triggering workflow automatically by a particular date

Hi, I am new to Sharepoint. I have a list where the date is given in a column and on that particular date the workflow must automatically trigger. I went to sharepoint designer but couldn't set the value to date. How do I trigger a workflow automatically by a particular date?? Please help. I would really appreciate your help. Than...

Moving a file between features in Sharepoint

I am deploying a file using a sharepoint feature and the module element. I now need to move this module to another feature but it seems that when I do this sharepoint errors as it has less an entry in the alldocs table. This entry has a leafname refering to the old feature. Would appreciate any help on this. Thanks ...

Re-creating a file in SharePoint

Hi, I have developed a sharepoint application using object model. It reads the contents of the file using SPFile.OpenBinary() object and saves the contents of the file in the local disk. When I try to create the same file again with the saved content, the file size differs. And this happens only for office application files (.doc, .xls ...

Sharepoint bug when deactivating features

I have found that deactivating a feature in Sharepoint leaves erroneous entries in the AllDocs table in the content database. These table records then make deploying other features that contain the same filenames impossible as Sharepoint complains that they already exist. How can I make sure deactivating features does not leave old refer...

In Sharepoint, I want to trigger a workflow automatically every month which shows only the lists which has that particular months date

Hi, I am new to sharepoint... I have a question: I have a list with many documents in it. I have a date column in that list. For each month I would like to view only that particular month's list (i.e) select the list which has that month in the date field. I would like the list to get updated each month automatically according to the d...

Sharepoint ECB menu items not visible when doc lib is displayed in a web part.

My document context menus display correctly when accessed directly from a document library but when this same doc lib is displayed in a web part, the context menu is missing various items. I debugged the code in core.js using a userid that had all permissions turned on and noticed that the permissions mask was properly set (to 0x7fffffff...

Protect sensitive information from Site Collection Admins

Is there a way to prevent a SharePoint site collection administrator from viewing the contents of a file without leaving a trail? I’m one of the farm administrators as well as one of the site collection administrators and we are developing an InfoPath form that will contain sensitive information. It would be nice if we could assure the...