Author Archives: Stu

Enhanced Lookup Field – Part 2

This is part two of the post showing how to create a custom lookup field for SharePoint. Other pages in this post are: Part 1 – Creating a custom lookup field type Part 3 – Add field control class Part … Continue reading →

Posted in SharePoint | Tagged , | Leave a comment

Enhanced Lookup Field – Part 1

The SharePoint lookup field is far from perfect. Once configured, it’s not possible to change the list it gets it’s data from. This is a good thing while the list actually exists. Now, if a user deleted the source list, … Continue reading →

Posted in SharePoint | Tagged , | Leave a comment

Manually Set Form Field Context

When you’re developing custom code for SharePoint, sometimes you’ll have a situation where you’re dynamically adding form field controls to your control or WebPart and the form context will not be automatically picked up by the controls. If you’re using … Continue reading →

Posted in SharePoint | Tagged , | Leave a comment

PeopleEditor control not available error

If you’re using a PeopleEditor control in your solution and enforce the filtering of selectable users by specifying a SharePoint group in the SharePointGroup property you may see the following error instead of the PeopleEditor control: “The control is not … Continue reading →

Posted in Configuration, SharePoint | Tagged , , | Leave a comment

GetDataTable Object Reference Error

Calling the GetDataTable method of a SPListItemCollection object that was retrieved using a join with projected fields will throw the following error: Object reference not set to an instance of an object For example: SPQuery query = new SPQuery(); query.Query … Continue reading →

Posted in SharePoint | Tagged | 2 Comments