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...
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 ...
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 ...
Using SPList I want to get all the webpart urls that associated with the list.
Is it possible?
...
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...
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...
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...
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.
...
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...
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...
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...
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...
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...
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...
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
...
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 ...
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...
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...
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...
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...