SharePoint

Office documents open read-only in SharePoint

Because there are many questions about this behavior, I want to blog about it. You might have noticed, that if you simply click on a document, it will be opened in read-only mode. You have to use the dropdown and select “Edit in …” to open it with read-write access. There is a Knowledgebase article available, which describes the problem and offers a solution: http://support.microsoft.com/kb/870853/en-us To change the default behavior, you’ll have to change the registry on each client!

Enabling the Developer Dashboard

Enabling the developer dashboard is very easy. It can be done via stsadm (or Powershell or the OM). To enable it on demand means, that you will get a small icon at the top right corner next to your user name. stsadm -o setproperty -pn developer-dashboard -pv OnDemand

WSS and MOSS are now SPF and SPS

Todd Bleeker posted an article about SharePoint Abbreviations. To make it short: WSS isn’t anymore. We now call it SPF 2010. And MOSS is simply SPS 2010. So here is the naming history of SharePoint, or simply SP 🙂 SPS 2001 > SPS 2003 > MOSS 2007 > SPS 2010 OWC > STS > WSS > WSS v3 > SPF 2010 Read all

Google Analytics data in a SharePoint list

Jacob Reimers has written an C# API for accessing Google Analytics data. When I saw his post, I thought it would be great to fetch the latest data every day, and write it to a SharePoint list. Then you can use the data, without querying Google for every request. You could then use the ChartPart for SharePoint to generate nice charts from your Google Analytics data. E.g. one for the visits for the last month.

Anwendungsentwicklung mit SharePoint 2010

Fabian hat es auf seinem Blog schon geschrieben. Deshalb werde ich auch über unser Projekt bloggen. Zusammen schreiben wir ein Buch zum Thema Anwendungsentwicklung mit SharePoint 2010. Das Buch richtet sich an Entwickler, Anwender und Administratoren und hat das Ziel, Wege aufzuzeigen, mit denen Unternehmenslösungen mit SharePoint 2010 realisiert werden können.

SPList.DefaultView

The SDK says: “An SPView object that represents the default view.” But if you want to change e.g. the ViewFields from the default view, you cannot use SPList.DefaultView.ViewFields.Add(fieldname); Instead use SPView defaultView = list.Views[list.DefaultView.ID]; defaultView.ViewFields.Add(fieldname); // internal field name defaultView.Update(); to modify the default view. It seems the DefaultView property cannot modify the View itself.

Install SharePoint 2010 Language Pack on Windows 7

Microsoft has released Language Packs for SP 2010. Thank you. Now I can try to upgrade existing Installations 🙂 But wait. The Languages Packs won’t install on my Windows 7. It says they need a Windows Server 2008 x64. Right. But it’s the same with the Server itself. We have to modify the config file, to support an installation on a non Server OS. Setting Up the Development Environment for SharePoint Server: http://msdn.

SPDispose or not to SPDispose

Roger Lamb has posted an article about SharePoint objects, which must not be disposed. He also wrote about changes to SP 2010 regarding disposing objects. SPContext.Current.Site SPContext.Current.Web SPContext.Site SPContext.Web SPControl.GetContextWeb(..) SPControl.GetContextSite(..) SPFeatureReceiverProperties.Feature.Parent SPItemEventProperties.ListItem.Web SPList.BreakRoleInheritance() Do not call list.ParentWeb.Dispose() SPListEventProperties.Web SPListEventProperties.List.Web SPSite.RootWeb Problems may occur when SPContext.Web has equality to the SPContext.Web.. make sure you dispose of SPSite and it will cleanup sub webs automatically SPSite.LockIssue SPSite.Owner SPSite.SecondaryContact SPWeb.ParentWeb SPWebEventProperties.Web More on his blog: http://blogs.

Installing SharePoint 2010 on Windows 7

I guess everybody knows by now. But if not: The beta 2 of Visual Studio 2010 brings SharePoint Development tools as an option. After all the Videos and Screencasts about SP 2010 development, I wanted to try it myself. So I installed VS 2010 on my notebook. An SQL Server 2008 has already been installed. I’ll skip that part as well. So here we go… Oh. Did I say thank you to you MS guys for supporting SP 2010 on Windows 7?

More on SharePoint 2010

Here is some more news for you: Public Beta available SharePoint Foundation 2010 (Windows SharePoint Services 2010 Beta) Microsoft SharePoint Server Enterprise 2010 Beta SharePoint Designer 2010 Beta (x64) More on the SharePoint Team Blog Installation Notice for SharePoint 2010 Public Beta Installation Notes for Microsoft SharePoint Server and Microsoft SharePoint Foundation 2010 Beta (with links to additional requirements like Microsoft “Geneva” Framework Runtime…) Upgrade Support for Prerelease Versions to Release Versions of Microsoft SharePoint Server and Microsoft SharePoint Foundation 2010