Lists and Schema Lab

Version: 2.0

Description

In this lab you will work with some of the new capabilities Microsoft added to events in Windows SharePoint Services '14' as well as the new Visual Studio 2010 SharePoint Tools. You will first create a custom list definition, template and instance using Visual Studio 2010. Next, you will implement referential integrity between two SharePoint lists so that items in one list cannot be deleted until referenced items in a child list are first removed so there are no orphans. Finally, you’ll create a synchronous event receiver that is triggered when new sites are created and, when certain criteria are met, you’ll cancel the error and redirect the user to a custom application page for more information on the error.

Overview

Lab Time: 45 minutes

Lab Folder: C:\Student\Labs\04_Lists

Lab Overview: In this lab you will work with some of the new capabilities Microsoft added to events in Windows SharePoint Foundation 2010 as well as the new Visual Studio 2010 SharePoint Tools. You will first create a custom list definition, template and instance using Visual Studio 2010. Next, you will implement referential integrity between two SharePoint lists so that items in one list cannot be deleted until referenced items in a child list are first removed so there are no orphans. Finally, you’ll create a synchronous event receiver that is triggered when new items are created and, when certain criteria are met, you’ll cancel the error and redirect the user to a custom application page for more information on the error.

Note:
Lab Setup Requirements

Before you begin this lab, you must run the batch file named SetupLab04.bat. This batch file creates a new SharePoint site collection at the location https://intranet.contoso.com/sites/Lab04.