Year: 2010

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

SP2010: Fixing Javascript / Ribbon errors

I had some users complaining about their Ribbon not working. When looking more closely, SharePoint was generating lot’s of JavaScript errors in IE8. I had no clue why (still don’t have really), but here are two solutions which you can try to fix this problem: In web.config, make sure the following section exists: <system.web.extensions> <scripting>

Read more

Twitter & Social media

It’s been a while since my last blog post, mostly due to a well deserved holiday (if I may say so). So now I’m back and I wanted to get your attention for two things. First, I’m on Twitter these days. Since you can’t beat the social revolution, you might as well join ’em right!?

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

SSL certificate error when calling webservice in SharePoint

I have a secured SSL site which I wanted to query with SPD (REST webservice). SPD gave me the well known ‘the server returned a non specific error’ message. After some investigation, I found the following error in the ULS logs: An operation failed because the following certificate has validation errors:\n\nSubject Name: CN=*.company.com, OU=PositiveSSL Wildcard,

Read more

Silverlight web part not grayed out behind SharePoint popup

If you create a Silverlight webpart and deploy it to SharePoint; it won’t gray out behind a default SharePoint popup. To fix this, you need to set the windowsless parameter to true (though this might affect performance a bit). To do this, edit the default SilverlightPluginGenerator.cs file and add the following line after line number

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

DataSheet view in SharePoint 2010 with Office 64-bit

My notebook runs 64-bit Windows 7. That’s cool, because you can develop SharePoint 2010 stuff on it without the need to run a virtual machine (which eats up extra memory slowing the whole thing down again). But I had some troubles with SharePoint 2010 and Office 2010 64-bit. The datasheet view, which you can use

Read more