Event handlers for the Datasheet view

Due to some reasons, in very rare cases columns defined in a content type would lose their “required” status when updated via the “Datasheet view”. So we needed a quick method to overcome this, and we decided to use event handlers for this purpose. In this example, the code checks that the “StartDate” and “TaskDueDate”…


Survey results for questions with multiple answers

This is a rather nice one …Considering the fact that I’ve been working in market research for some time before joining Microsoft, I can say that I’m quite used to the power and flexibility provided by some online questionnaire software (like ConfirmIT for instance – http://www.confirmit.com/).WSS on the other hand was never designed to compete…


Errors when using loops in custom workflows

Custom workflows are always fun to develop and run, aren’t they? Just not when they start throwing out error messages which you can’t explain though …This could be the case with a workflow which contains a loop. The loop checks after each task update whether the task is set as completed or not. The issue?…


Alert jobs do not take ST / DST changes into account

This time, it’s not about SharePoint Development, but I really think this may be useful to many. It seems that SharePoint doesn’t take the information provided by the eventtime column in the eventcache table into account (which could allow it to know during which periods (ST or DST) the alert has been created), or maybe…


Files or folders not visible in the SharePoint UI

Here’s how it goes: Certain files or folders are not visible in the SharePoint UI (“Normal View”), but are still perfectly accessible from the “Explorer View”. I managed to find out the fact that if you try to get any SPListItem information from them programatically, you’ll notice that this information is NULL. There’s also NO…


Hide "User" link for Site / Site Collection Reports

This may sound like an odd question, but may make perfect sense in a certain context nevertheless:What is the easiest way to hide the “User” link from the Site Reports / Site Collection Reports pages?Here’s what we came up with:1. Rename the following files: SpUsageSiteUsers.aspx ⇒ SpUsageSiteUsers_renamed.aspxSpUsageWebUsers.aspx ⇒ SpUsageWebUsers_renamed.aspx2. Add the following code section at…


Customize drop-down fields for SPLists

All of us love to use lookup columns. A lot.But what happens when you add two lookup fields to a custom list, one of them pointing to a source list with say 35 items, and the other one pointing to a source list with 5 items? We noticed that the drop-downs in the NewForm.aspx and…


STSADM export / import fails because of "ghost" event handlers

It’s not uncommon at all to encounter the following scenario:A SPS 2003 environment on which you had custom event handlers registered was migrated to MOSS 2007. Now you try to export / import some sites, and get an error message similar to the following: Could not load file or assembly DocLibHandler, Version=1.1.0.0, Culture=neutral, PublicKeyToken=bba06fba3a7c7829 or…