Author Archives: Stu

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

Create a local term set

SharePoint Short #12 Instead of creating term sets that are available farm wide, it’s also possible to create a term set that is only local to a particular site collection. Create a site column as normal, selecting Managed Metadata type … Continue reading

Posted in SharePoint Shorts, Taxonomy | Tagged , | Leave a comment