Tag: #SharePoint

SP2010: Setting BCS column and related fields

I’ve been struggling for a while to programmatically set BCS columns. Setting the column itself isn’t that hard, but it’s getting all the related fields to show data too that’s a challenge. There seems to be no out of the box method to do this, so I’ve created one myself. Without further ado, let’s get

Read more

Providing InfoPath form views for new / edit / display

I never really looked into InfoPath untill SharePoint 2010 arrived. With 2010, customizing your item forms becomes a lot easier to do in combination with InfoPath. Yes, most of this was also possible with 2007, but the way to get there was a bit more complicated. Here’s some steps you can take if you want

Read more

Support auto width in Silverlight web part

For some reason, the default implementation of the Silverlight webpart which comes with VS2010 doesn’t allow you to set the width to 100% (auto width). You’ll get an error saying “UnitType Percentage is not supported”. That’s kind of weird, since the only thing it really does is set the width for the surrounding object container

Read more

Constructing dynamic CAML queries: the easy way

For a project I’m working on, I needed a way to roll-up data across multiple sites. There aren’t much ways of doing that, but one good way is using the SPSiteDataQuery object. This object, which can be used with the object model (not the client ones unfortunately), can be used to fire queries to SharePoint

Read more

Converting FBA users to SharePoint 2010

With thanks to commenter Anu, I can hereby present a way to convert old FBA users to SharePoint 2010 compatible users when converting a 2007 installation to 2010. The easy way is a simple Powershell script: $w = Get-SPWebApplication(“url”) $w.MigrateUsers(true) But this script seems to have a hardcoded limit to the number of users it

Read more

SP2010: Cannot get membership provider with name…

Today I was yet again playing around with SharePoint 2010 which is RTM now! I’ve downloaded the RTM version from MSDN and installed it on my workstation. Earlier, I had some problems setting up a claims based authentication site with mixed mode authentication (windows + forms auth). I wanted to try that in the RTM

Read more

SP2010: REST Data Sources within SharePoint Designer

With SharePoint 2010, there are multiple methods of getting data from a list. There’s the object model (client / server side), there’s webservices and there’s REST (which is kind of a webservice itself). With REST, you’re able to get data out of a list and view it on other sites. Those other sites don’t need

Read more

SharePoint profiles not synchronizing

A while ago, a colleague asked me why her contact details weren’t updated on SharePoint. She got married and thus her name changed. The AD was updated but the changed weren’t pushed to SharePoint for some reason.

Read more

SharePoint and Analysis Services: The connection either timed out or was lost

In my last post, I wrote about enabling access to SQL Server Analysis cubes by specifying an account for impersonation. It now seems that’s not the way to go because I started receiving security validation errors with impersonation set to any account. I think that’s caused because SharePoint detects a difference between the user actually

Read more