sharepoint-2007

Difference between FieldLinks and Field in Sharepoint

给你一囗甜甜゛ 提交于 2019-12-07 02:13:25
问题 I'm in the middle of trying to copy a custom content type from one web to another. I've googled around and found some examples that use FieldLinks and Fields. I'm kind of lost as to which one to use, since when I get the FieldLinks from my source web, I get 3 fields; while retrieving from Fields only returned me 2 fields... the custom field is missing. I'm pretty darn sure that I've added the fields at the proper level since I did it via the interface. But when retrieving it using code... the

FileNotFoundException with the SPSite constructor

混江龙づ霸主 提交于 2019-12-06 16:48:04
问题 I try to instantiate an instance of SPSite on the farm server in a custom process (MyApp.exe) and I give it as parameter the whole URI (http://mysite:80/). I also made sure that the account running MyApp.exe is Site Collection Administrator . However, I can't make an instance of SPSite whatever I am trying to do. It always throws a FileNotFoundException . Anyone got an idea? StackTrace: at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken

Migrating MOSS 2007 from SQL 2000 to SQL 2005 [closed]

跟風遠走 提交于 2019-12-06 14:49:42
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . We have an installation of MOSS 2007 that is using MS SQL 2000 as the backend database. The web front end for MOSS is on one server and the database on a separate server. We would like to move the database to a MS SQL 2005 server. Is there a recommended approach for doing this? Does anyone know of any resources that offer tips, tricks, tutorials, best practices for doing this? Shutdown SharePoint services Backup

Order documents by most popular in sharepoint content query webpart

谁说胖子不能爱 提交于 2019-12-06 14:43:21
I'd like to order a set of webpages showing inside a content query webpart by 'most viewed' I know sharepoint keeps track of such things but I don't know how to expose this list to the content query web part - can anyone point me in the right direction? Thanks in advance It is true that SharePoint can log user visits to the usage log on disk and the audit log in the content database. But there is no API for issuing report building queries against the data like a query for most viewed pages. You will need to develop or buy: Develop: You could turn on the audit log for your site collection(s)

Accessing SharePoint content (list) from a WCF service

泪湿孤枕 提交于 2019-12-06 14:19:59
问题 I've written a WCF service which tries to read the list items from a particular list in SharePoint. For testing purposes I run the WCF service using Visual Studio ASP.Net Development server. I pass the Site ID to the web service and from the web service I try to open the List and read the items. But when I try to read the items I'm getting the following error - This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to

Sharepoint MsAccess synchronization

泄露秘密 提交于 2019-12-06 13:03:17
HI! Does anyone have any idea how to synchronize MS Access data to SharePoint portal. I would like to link both of this together and trigger a workflow upon receiving a new data entry. Hope you could advice on it. Thanks! In Access you can have so called "linked tables". You can have access linked tables with a Sharepoint installation. In Sharepoint this linked table manifests itself as a regular list, so you can have a workflow trigger on each new item created. There is a nice tutorial here: How to Link SharePoint Server 2007 Lists with Microsoft Access 2007 and for Sharepoint 2010 and

How to query the SPView object

本秂侑毒 提交于 2019-12-06 10:11:47
问题 I have a SPView object that contains a lot of SPListItem objects (there are many fields in the view). I am only interested in one of these fields. Let's call it specialField Given that view and specialField, I want to know if a value is contained in specialField. Here is a way of doing what I want to do : String specialField = "Special Field"; String specialValue = "value"; SPList list = SPContext.Current.Site.RootWeb.Lists["My List"]; SPView view = list.Views["My View"]; //This is the view I

Sharepoint Workflow Fails When First Run But Succeeds When Run Manually

霸气de小男生 提交于 2019-12-06 09:19:57
We are using an infopath form that when submitted is supposed to fire off a custom .NET workflow. Basically, the information within the form is used to create a new sharepoint site. What I am seeing happen is that the first time the workflow runs (which is automatic after the form is submitted), the workflow errors out. When I run the workflow manually immediately after it fails, the workflow runs fine. this.workflowProperties.Item["Client Name"] I've debugged the issue down to the above line where workflowProperties is of type Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties. The

How to create a Global connectionstring to SQL Server Database for my SharePoint site

蹲街弑〆低调 提交于 2019-12-06 07:50:13
This is my connection string inside my web.config of my SharePoint site. Its sitting just below the closing SharePoint tag. <connectionStrings> <add name="SAMRASConnectionString" connectionString="Data Source=JOHANDEVVM; Initial Catalog=samrasDB; User ID=Johan; Password=password; Trusted_Connection=True" providerName="System.Data.SqlClient" /> </connectionStrings> Where must i place it in order to get a Global Connectionstring. Reason be: When i go to my IIS site Properties -> ASP.NET tab -> Edit Global Configuration Then the connection string is not there, its only by the Edit Configuration.

Customize MOSS People Picker (PeopleEditor) Control

拥有回忆 提交于 2019-12-06 04:43:39
问题 I have modified my MOSS 2007 configuration to query a given target AD successfully. I would like to show some custom LDAP fields (such as country) in the PeopleEditor control and allow users to search against these fields. Can someone point me towards useful resources/tutorials showing how to do this? Thanks, MagicAndi. 回答1: You need to inherit from the EntityEditor control (just as PeopleEditor does) and write your own queries and validation. Some background (read community content):