SharePoint 2013 preview: first training material

SharePoint 2010 has been presented yesterday.

Here is the most intresting training material I've found: SharePoint 2013 training for IT pros.

In the blog article SharePoint 2013 IT Pro and Developer training materials released there is a description of the released material.

Here are the download links:


If during the install process you get an error saying "Setup has detected previous versions of this product on your computer. Setup can't continue while these are installed. Please remove the previous version before restarting this version's Setup program.", you have to remove the following registry key: HKLM\Software\Microsoft\Shared Tools\Web Server Extensions\14.0

SharePoint 2010: deploying Document Sets via feature

Today I had to deploy document sets via feature. Document sets are like custom content types, but with some differences:

  • in the content type definition, it is needed to add the clause ProgId="SharePoint.DocumentSet";
  • it is possible to define a folder option (the default is _cts\ContentTypeName);
  • it is possible to make some content type fields to be projected to the contained content types;
  • it is possible to define a custom docsethomepage.aspx page;
  • it is possible to define the allowed children content types.

Here are some references:

Things to remember:

  • the module with the page has to deployed at the SPWeb level;
  • it is possiblel to define a new folder for the content type, still under the _cts folder; but if you need to reuse the default folder, remember to delete the existing docsethomepage.aspx file in your feature activation, otherwise your file will not be copied;
  • shared fields have to be declared both at the document set and at the document level, then added to the dedicated section inside the XmlDocuments tag.

SharePoint: command line used to launch SPMetal

The command line used to launch SPMetail is:

"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\SPMetal"
   /web:http://MyWebApp:7272/sites/MySiteColl /code:MySite.cs /language:csharp
   /namespace:MyCompany.MyProject /serialization:unidirectional

The reference page is SPMetal.

SharePoint: how update the LookupList for a SPFieldLookup

When deploy ShraePoint content types (at site collection level - SPSite) and lists (at site level - SPWeb) a common problem is that lookup columns are not mapped correctly.

As it is not possible to change the LookupList property of a SPFieldLookup, the only way to solve this problem is to updade the SchemaXml of the field!

The code is in the blog post Cannot change the lookup list of the lookup field.