Share via


Exercise 1: Creating a SharePoint List Data Source

In this exercise, you will deploy a list template to SharePoint and make a list based upon the template. You will modify the list permissions to allow for Anonymous permissions. The list template defines a list used to display important maintenance contacts. In this scenario, the Windows Phone 7 application will read items from the maintenance events list and display event details as an anonymous user.

Task 1 – Deploying the List Template to a SharePoint Site

In this task, you will deploy the maintainance contacts list template to a SharePoint site. The list template contains sample data used in the lab.

  1. Open Internet Explorer and navigate to the SharePoint Team Site configured for Forms Based Authentication.
  2. example: https://fbawp7
  3. Log into the site using site collection administrator credentials.
  4. Click Site Actions, and select Site Settings.
  5. In the Galleries section, click List templates.
  6. In the Ribbon, click the Documents tab.
  7. Click Upload Document.
  8. Click Browse…
  9. Browse to the Maintenance Events.stp file located at %TrainingKit%\Labs\IntegratingSyndicationFeeds\Source\Before and select it.
  10. Click Open.
  11. Click OK.
  12. Click Save.
  13. Verify the Maintenance Events list template appears in the List Templates Gallery.

    Figure 1

    List Template Gallery

Task 2 – Creating the Maintenance Events List

In this task, you will use the maintenance events list template to create the maintenance contacts list.

  1. Open Internet Explorer and navigate to the SharePoint Team Site configured for Forms Based Authentication.

    example: https://fbawp7

  2. Log into the site using site collection administrator credentials.
  3. Click Site Actions and select More Options.
  4. In the Filter By section, select List.
  5. Select the Maintenance Events list.

    Figure 2

    Selecting the Maintenance Events template

  6. In the Name textbox enter Maintenance Events.
  7. Click Create.
  8. Verify the Maintenance Announcements list contains the following sample data for the month of April, 2011.

    Figure 3

    Maintenance Events list with content

Task 3 – Setting Anonymous Access for the Maintenance Events List

In this task, you will allow annonymous access to the the maintenance events list.

  1. Click on the Start button and select All Programs | Microsoft SharePoint 2010 Products | SharePoint 2010 Central Administration to open the Central Administration site in Internet Explorer.
  2. Select Manage web applications located in the Application Management section of the home page.
  3. Highlight the Web application used in the hands-on lab by click on the appropriate Web application.
  4. Example: fbawp7
  5. Select Authentication Providers ribbon button and then Default zone.
  6. Select the Enable Anonymous Access check box.

    Figure 4

    Selecting anonymous access as an authentication provider

  7. Click Save and exit the Central Administration site.
  8. Open Internet Explorer and navigate to the SharePoint Team Site configured for Forms Based Authentication.
  9. example: https://fbawp7
  10. Log into the site using site collection administrator credentials.
  11. Click Site Actions, and select Site Permissions.
  12. Click Anonymous Access located on the ribbon bar.

    Figure 5

    Selecting the Anonymous Access Ribbon button

  13. Select Lists and libraries and click OK.

    Figure 5

    Enabling anonymous access on lists and libraries in the site collection

  14. Navigate to the maintenance events list by selecting Maintenance Events link in the left-hand navigation column.

    Figure 6

    Selecting the Maintenance Events list from the Quick Links control

  15. Select the Calendar tab located on the Ribbon and then select List Permissions.

    Figure 7

    Selecting list permission for the Maintenance Events lists

  16. Click Stop Inheriting Permissions in the ribbon to create unique permissions for the list. Click OK on the warning dialog box.

    Figure 8

    Breaking security inheritance for the list

  17. Click the Anonymous Access ribbon button and then select View Items to allow anonymous users to view the list items. Click OK to exit the dialog.

    Figure 9

    Granting permissions for anonymous users