Monthly Archives: January 2012

Adding to a SharePoint 2010 List with Lookups

I had a situation recently where I was building a form in SharePoint 2010. I used a main list for the form and several other lists as lookup values for some of the fields. I used a .NET User Control for the UI, and SPMetal and LINQ to interact with SharePoint. This was my first time using SPMetal, and I had trouble adding items to the main list. The error was coming from the lookup fields. I eventually figured out that you can’t assign lookup field values to an item while you are adding it. You have to create the item first without the lookup values, then go back and add them.

Posted in Development, Linq to SharePoint, SharePoint 2010 | Tagged , , | Leave a comment

Team Foundation Server: Unshelving another user’s changes across branches

Unshelving code between branches can be difficult enough on its own but once you add another developer into the mix things can get a bit dicey since Visual Studio does not have a built-in wizard to do this.

Posted in .Net, Visual Studio | Leave a comment

Insert JavaScript into a Content Editor Web Part (CEWP)

In the 2007 version of SharePoint, we had the Source Editor included in the Content Editor Web Part (CEWP) as our way of inputting JavaScript directly onto a page. The process on how to do this has changed a little bit in the new 2010 version. Follow below on how to successfully perform the same task.

Posted in Development | Tagged , | 6 Comments

Add Top Link Bar Inheritance using PowerShell for SharePoint 2010

I would like to kick off the New Year with perhaps my shortest blog entry for 2012!

Posted in Administration, PowerShell | Tagged | 3 Comments