Exercise 1: Review Site Mobile Settings and Features
By default, SharePoint 2010 delivers content to mobile devices through lightweight pages that reduce the bandwidth of standard SharePoint pages. In this exercise, you will review the SharePoint site level features that are available to mobile devices. You will connect to a SharePoint site with the Windows Phone emulator and browse the site in mobile mode.
Task 1 – Logging in to the FBAWP7 Site
In this task, you will login to the FBA site you created in Setting Up A SharePoint and Windows Phone 7 Development Environment Module from the Windows Phone Emulator. You will review the default Windows Phone Browsing experience
- Launch the Windows Phone 7 Emulator by clicking Start | All Programs | Windows Phone Developer Tools | Windows Phone 7 Emulator.
- From the Start Screen, click Internet Explorer.
- Click the address bar and enter the address http://fbawp7.
- Click the return key. After a moment, the default FBA Sign In page is displayed.
.png)
Figure 1The SharePoint FBA Login
- Change the selection to Forms Authentication. The Sign In page will display the form for your FBA credentials. Enter User name: amya and Password: pass@word1
.png)
Figure 2SharePoint FBA Login Dialog
- Use your mouse to scroll the browser to the right and click Sign In. The team site home page is displayed in the browser.
.png)
Figure 3The SharePoint FBA site rendered in the Windows Phone browser
- You can now navigate the site as you would in a desktop browser. For example, select the All Site Content link at the bottom of the left navigation to view the contents of the site.
.png)
Figure 4SharePoint All Site Content
Task 2 – Switching to Mobile View and Creating a Task
In the previous task, you browsed the site in the default browser experience. You may have noticed that, while the site looks great, it can be a challenge to view the content in the emulator. In this task, you will manually switch to Mobile View in the emulator. In mobile view, you will review the user interface differences between standard view and mobile view.
- In the browser address bar, enter the site address http://fbawp7. (Alternatively, you can use the back button to return to the home page.)
- Click in the browser address bar and add ?mobile=1 to the end of the address. (The entire URL should read http://fbawp7/SitePages/Home.aspx?mobile=1.) The site will redirect to a mobile rendering page and you will see the home page content rendered for the phone.
.png)
Figure 5SharePoint Site Home Page Mobile View
- Notice that all the content from the home page is present, but the page is easier to read in the emulator. Scroll down the page and notice that the menu items are easier to select. Click All Site Content.
- On the All Site Content page you can see links to all of the site lists and libraries. At the bottom of the page you will see additional navigation. In the Lists section click Tasks.
- The Task list is empty, so no tasks are present. To create a new task, click New Item. Complete the fields for a new task.
- Title – My Mobile Task
- Priority – High
- Status – In Progress
- Percent Complete – 40
- Assigned To – sql-membershipprovider|adamb
- Description – This is my first mobile task.
- Start Date – (Enter a date a week in the future)
- Click Save to complete the new Task entry. The Tasks page now displays the new task. (If you did not set the Assigned To field correctly, the new task may not be in view. Check this by changing the Tasks view from the default My Tasks to All Tasks. Click Refresh and the task should appear.
.png)
Figure 6SharePoint Mobile Task List
- Click My Mobile Task. The default view page shows the task details.
.png)
Figure 7SharePoint Mobile Task Detail
- Click Home and return to the site home page. Scroll to the bottom of the page and click Sign Out. On the Sign Out page, click Sign Out. Click the Start button to return to the Start screen.