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.
- Open Internet Explorer and navigate to the SharePoint Team Site configured for Forms Based Authentication.
- example: http://fbawp7
- Log into the site using site collection administrator credentials.
- Click Site Actions, and select Site Settings.
- In the Galleries section, click List templates.
- In the Ribbon, click the Documents tab.
- Click Upload Document.
- Click Browse…
- Browse to the Maintenance Events.stp file located at %TrainingKit%\Labs\IntegratingSyndicationFeeds\Source\Before and select it.
- Click Open.
- Click OK.
- Click Save.
- Verify the Maintenance Events list template appears in the List Templates Gallery.
.png)
Figure 1List 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.
- Open Internet Explorer and navigate to the SharePoint Team Site configured for Forms Based Authentication.
example: http://fbawp7
- Log into the site using site collection administrator credentials.
- Click Site Actions and select More Options.
- In the Filter By section, select List.
- Select the Maintenance Events list.
.png)
Figure 2Selecting the Maintenance Events template
- In the Name textbox enter Maintenance Events.
- Click Create.
- Verify the Maintenance Announcements list contains the following sample data for the month of April, 2011.
.png)
Figure 3Maintenance 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.
- 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.
- Select Manage web applications located in the Application Management section of the home page.
- Highlight the Web application used in the hands-on lab by click on the appropriate Web application.
- Example: fbawp7
- Select Authentication Providers ribbon button and then Default zone.
- Select the Enable Anonymous Access check box.
.png)
Figure 4Selecting anonymous access as an authentication provider
- Click Save and exit the Central Administration site.
- Open Internet Explorer and navigate to the SharePoint Team Site configured for Forms Based Authentication.
- example: http://fbawp7
- Log into the site using site collection administrator credentials.
- Click Site Actions, and select Site Permissions.
- Click Anonymous Access located on the ribbon bar.
.png)
Figure 5Selecting the Anonymous Access Ribbon button
- Select Lists and libraries and click OK.
.png)
Figure 5Enabling anonymous access on lists and libraries in the site collection
- Navigate to the maintenance events list by selecting Maintenance Events link in the left-hand navigation column.
.png)
Figure 6Selecting the Maintenance Events list from the Quick Links control
- Select the Calendar tab located on the Ribbon and then select List Permissions.
.png)
Figure 7Selecting list permission for the Maintenance Events lists
- Click Stop Inheriting Permissions in the ribbon to create unique permissions for the list. Click OK on the warning dialog box.
.png)
Figure 8Breaking security inheritance for the list
- 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.
.png)
Figure 9Granting permissions for anonymous users