sharepoint-2007

Tell if user exists in SharePoint Group through web service

有些话、适合烂在心里 提交于 2019-12-10 11:15:58
问题 I am working on an internal web application that will use predefined SharePoint groups for determining a user's security level. I have done some research and found SharePoint's "usergroup" web service which has the method "GetUserCollectionFromGroup()" which will list all of the users in a given SharePoint group. The problem I am having is some of the predefined SharePoint groups have Active Directory groups added to them, not the individual users. So, when I call GetUserCollectionFromGroup(

Custom property editor for Web parts in SharePoint

杀马特。学长 韩版系。学妹 提交于 2019-12-10 10:57:58
问题 I have created a custom WebPart that has some configuration properties. The values for these properties are a Site URL and list name. I want to show a drop down list with all site names and lists for the selected sites. How can I get to show a custom editor component for a property in SharePoint? I don't want to get the default text editor. 回答1: You will want to create a custom ToolPart. Here is a guide: http://sharepoint-insight.blogspot.com/2008/10/sharepoint-creating-web-part-with.html

Simplest way to Upload a document to sharepoint using web services

…衆ロ難τιáo~ 提交于 2019-12-10 10:11:28
问题 I want to upload to a Selected Document (from my system.I am having it's path with me). To a destination path on Sharepoint ( may be list or folder ). I am accessing sharepoint remotely using web services (C#). I read various solutions like by using CopyIntoItems method. But not getting proper example for it ( unable to pass parameters properly.tried example given on msdn) Can anyone help me out to get simple and understandable solution. Example: Source_FileUrl = "c:/SampleFile.txt";

VBA SharePoint authentication for drive mapping

大兔子大兔子 提交于 2019-12-09 20:54:42
问题 I've had success using VBA in Excel to map a drive to extranet SharePoint to download files, however in deployment it works in one location but not another (different environments possible). I'm curious if anyone has any insight as to what user or system setting would cause this. In the code below I try to map the drive to SharePoint, if it errors out the handler creates a new instance of excel and saves it to the SharePoint site. By nature this forces IE to open and prompt the user for their

How to tell if page is in edit mode on a non-publishing site

点点圈 提交于 2019-12-09 16:26:33
问题 For our publishing sites we use the SPContext.Current.FormContext.FormMode enum to work out if the current page is in edit mode. I've seen that this does not work for a team site I'm currently working on. The FormMode is always set to 'Invalid'. However, when I click edit page on a sample page, the page does switch to edit mode so there must be some other way of knowing that a page is in edit mode. So how can I tell if I'm in edit mode for a page living in a team site? Cheers. Jas. 回答1: For

Extending SharePoint Breadcrumbs across multiple site collections

怎甘沉沦 提交于 2019-12-08 14:22:47
I’ve been trying to find a way to extend SharePoint breadcrumbs across multiple site collections, and I’ve been unable to find a way. I can set the portal site connection setting on the site collection to link to its parent site collection. But, that will not show only one parent site collection. Here’s an example of the type of setup I’m looking at creating. The root site, Intranet, has a managed path called sites. Under sites there is site collection called HR located at /sites/hr/ . Under HR there is another managed path set up called outreach. In outreach there is a site collection called

how to find size of the content database in MOSS 2007 and no of site collectins and sub sites created

两盒软妹~` 提交于 2019-12-08 13:50:17
问题 I am working as a sharepoint developer and would like to see the size of the content database is now and also need to find out how many sites we have created so far. CAn anyone please help me find out this information. we don't have administrator, but i have admin previlages. Thanks 回答1: If you can run stsadm (as you say in your comment), that means you have admin access, so you can run this in powershell [Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") | out-null $prop_Name

SharePoint search service returns SERVER_ERROR (SQLException)

一个人想着一个人 提交于 2019-12-08 12:48:14
问题 I have a simple WCF webservice client that sends a request to Microsoft Search Server (included with SharePoint 2007) on /more/_vti_bin/search.asmx The request is sent <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Query xmlns="urn:Microsoft.Search"> <queryXml><QueryPacket xmlns="urn:Microsoft.Search.Query" Revision="1000"> <Query> <Context> <QueryText language="fr-FR

How to convert XElement object into a dataset or datatable?

夙愿已清 提交于 2019-12-08 12:15:36
问题 I'm accessing a SharePoint(2007) list through a service reference of lists.asmx created in my console application. Console application is created in VS2012 and .Net 4.5 framework. ListsSoapClient proxy1 = new ListsSoapClient(); proxy1.ClientCredentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredentials; proxy1.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation; string listName = "List_For_Test";

Security trimming in search web service

一个人想着一个人 提交于 2019-12-08 09:50:48
问题 I have a web application which consumes the SharePoint 2007 search web service ( http://localhost/_vti_bin/search.asmx ). My scope contains several content sources, all of them contain business data (content is crawled via SQL queries on external databases). I need one of these content sources to provide me security trimmed results. To put it simple, I have two tables: Table A with contents: NodeId, Title, Content Table B with permissions: NodeId, Username Now, the crawler indexes table A