sharepoint-2007

Need help on building CAML Query

亡梦爱人 提交于 2019-12-13 03:42:11
问题 I have this table Col1 | Col2 | Col3 1 MeYou | You | Them 2 Them | They | You 3 Them | Me | They 4 They | Us | We 5 Us | Them | MeAsk I would like to do these Query Select all rows from MyTable Where Col1 contains 'Me' or Col2 contains 'Me' or Col3 contains 'Me' Select all rows from MyTable Where (Col1 contains 'Me' or Col3 contains 'Me') and Col2 equals to 'Them' Based on the table shown and using the condition that I wanted on my query, Query 1 should get 3 rows in return. The returned rows

How do I update a sharepoint list using .net?

六月ゝ 毕业季﹏ 提交于 2019-12-13 00:28:17
问题 I have a SharePoint list already created. I would like to occassionally update that list using a .NET application. How would I do that? EDIT: This has to run on remote machines. 回答1: pgb's answer is correct. It's pretty simple, really. One caveat with this is that the code that uses the SharePoint object model must be running on the SharePoint server itself -- not a remote machine. If you're trying to interact with a SharePoint list remotely, you would probably want to use web services.

Setting up a weekly digest in Sharepoint

孤者浪人 提交于 2019-12-12 21:29:16
问题 I'm currently working on a MOSS 2007 site and i need to set up a "system" which will e-mail all the changes in all the lists and libraries in the site. I'm new to the Sharepoint world, i wonder if it is possible. P.S. I have no access to the Central Administration panel. (If it has anything to do with my purpose) Thanks 回答1: You can write custom timer job to do this task. You could do it in this way: Create custom timer job feature, set timerjob schedule. On FeatureActivated event add that

Access denied on Microsoft.SharePoint.ApplicationPages

ⅰ亾dé卋堺 提交于 2019-12-12 18:25:15
问题 On our MOSS Enterprise environment, we have a strange problem. From time to time, people get this error message when they try to create a new site collection or navigate to their mysite: ‘Could not load file or assembly 'Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. Access is denied.’ The problem is fixed by updating the security of directory c:\inetpub\wwwroot\wss\virtualdirectories\[central admin folder

Debugging a custom timer job in SharePoint

江枫思渺然 提交于 2019-12-12 16:40:29
问题 To debug a custom timer job in visual studio, I wasn't able to hit the debugger. Is it necessary to add the .PDB file to GAC? I tried doing the above, but it's not allowing to drag and drop this particular file. Why do we need to add this file? 回答1: Drag and drop does not work in the assembly folder because of the shell windows explorer attaches to it. You can do 3 things to bypass this shell - Copy the .pdb file via cmd in C:\windows\assemblyGAC_MSIL\yourassembly\yourassemblyversion\ Use

Best practice for SharePoint vanity url/redirection

非 Y 不嫁゛ 提交于 2019-12-12 15:18:55
问题 My employer uses MOSS 2007 for our company intranet. It runs solely on secure http and is also exposed to the outside world via ISA. I currently have a request to add a forwarding URL to our site so that something like the following will occur: intranet.mycompany.com/vanityname redirects to -> intranet.mycompany.com/somedeeplink/default.aspx I fully expect this sort of thing will become more popular with our users as time goes on. So I am looking for a solution that scales. I have read

SPWeb.Webs, Site vs SubSite

烈酒焚心 提交于 2019-12-12 08:12:49
问题 I am confused between SPSite , SiteCollection , and SPWeb ? So my understanding is this pseudo code: http://My_server >>> TOP Level SIte or SPWEbApplication http://My_server/My_site >>>> Site Collection or SPSite Now a site under SPSite that will be referenced through SPWeb . So what are we getting when using SPWeb.Webs ? What is a Subsite? Test code: SPWeb mySite = SPContext.Current.Web; SPWebCollection sites = mySite.Webs; foreach (SPWeb subSite in sites) { Response.Write(SPEncode

SharePoint: How to create a folder in a document library please using web services

旧时模样 提交于 2019-12-12 07:20:58
问题 I need to create a simple folder in a document library in SharePoint, but I can't seem to find a scrap of documentation on the subject. The dws webservice seems to be used to create physical folders in a workspace, I need a way to create a folder in a document library. Not sure what to do , please help 回答1: I found this method to work : HttpWebRequest request = (System.Net.HttpWebRequest)HttpWebRequest.Create("http://mySite/MyList/MyfolderIwantedtocreate"); request.Credentials =

Getting Data from a SOAP envelope

你。 提交于 2019-12-12 05:37:51
问题 I am trying to populate a gadget with a sharepoint list, but I couldn't find any way or tutorial on google to help me with this, however I find this tutorial that is getting the XML feedbacks of a news website, and displaying them in a list. Tutorial for Making a Gadget that gets XML feedbacks off a news Site Now Instead of getting XML feedback from that News Website, I want this tutorial to display items of XML document I will get throught this piece of code, $(document).ready(function() {

Sharepoint's “New Folder” doesn't ask for a required field

不羁岁月 提交于 2019-12-12 03:56:12
问题 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 required for the documents) doesn't even appear. Since the info on that column is empty, web part connections doesn't see the folder at all. Is there any way