InfoPath and Forms Services Lab

Version: 1.0.0

Description

In this lab, you will use InfoPath to define custom forms to aid in the entry of time tracking data for Contoso Corporation. This system will use rich InfoPath forms to manage entry of employees and timesheet data. To provide a complete view of the system, the site’s main page contains web parts to provide contextual information to the user. Please note that Demos are in the Source folder.

Overview

In these lab exercises, you will use InfoPath to define custom forms to aid in the entry of time tracking data for Contoso Corporation. This system will use rich InfoPath forms to manage entry of employees and timesheet data. To provide a complete view of the system, the site’s main page contains web parts to provide contextual information to the user.

Objectives

In this lab you will:

  • Learn to use InfoPath to define a list’s entry forms
  • Learn to use web parts to host and connect InfoPath forms
  • Learn to write custom code to extend the capabilities of InfoPath forms

System Requirements

This lab assumes that you have SharePoint Server installed in a test environment. For guidance on how to setup SharePoint Server see https://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx. Note that any URL referred to in this lab must be adjusted for use with your local setup. You must have the following items to complete this lab:

  • Microsoft® Windows® Vista SP1 or Microsoft® Windows Server 2008 (64-bit)
  • Microsoft® SharePoint Server 2010 (64-bit)
  • Microsoft® Office Professional Plus 2010 (32-bit or 64-bit)
  • Microsoft® Visual Studio 2010

Setup

You must perform the following steps to prepare your computer for this lab. This consists primarily of creating a SharePoint site collection at https://intranet.contoso.com/sites/InfoPath and installing the code snippets for this lab.

  1. Run the command file Setup.bat located at C:\Office2010DeveloperTrainingKit\Labs\InfoPath\Source\.

Exercises

This Hands-On Lab is comprised of the following exercises:

  1. Creating list forms in InfoPath
  2. Using the InfoPath Web Part
  3. InfoPath and Forms Libraries

Estimated time to complete this lab: 60 minutes.

Starting Materials

This Hands-On Lab includes the following starting materials.

  • InfoPath Templates. The lab provides the following InfoPath Templates that you can use as starting point for the exercises. The lab instructions assume that you installed the training kit to the default location, C:\Office2010DeveloperTrainingKit\.
    • C:\Office2010DeveloperTrainingKit\Labs\InfoPath\Source\Starter\Template.xsn: This is a starting InfoPath form used in Exercise 3.
    Note:
    Inside the lab’s Source folder, you will find a Solution folder containing an end solution with the completed lab exercise.