Home >Documents >November 11, 2011. MCT, MCITP, MCTS, MCP SharePoint Architect for Planet Technologies. Working with...

November 11, 2011. MCT, MCITP, MCTS, MCP SharePoint Architect for Planet Technologies. Working with...

Date post:28-Mar-2015
Category:
View:213 times
Download:0 times
Share this document with a friend
Transcript:
  • Slide 1

November 11, 2011 Slide 2 MCT, MCITP, MCTS, MCP SharePoint Architect for Planet Technologies. Working with SharePoint since 2003. Administrator / Developer Architect / Implementer Troubleshooter / Brander PCfromDC.blogspot.com @PCfromDC Slide 3 SharePoint familiarity discussion. Introduction to REST Connections. Create an Address List from a predefined content type. Tweak and modify the list to meet out needs (Demo). Use SharePoint Designer 2010 to add a Data View Web Part to display our Address on a new Web Part page (Demo). Use SharePoint Designer 2010 to create a REST connection to display the current weather in Beverly Hills, CA (Demo). Create a data connection to display the weather of the zip code from our Address List (Demo). Slide 4 Really Expensive SharePoint Technology? Stands for Representational State Transfer. REST is not a protocol. At its most basic element, REST is a way for a client to retrieve data from a server over http. SharePoint has a RESTful web service which will allow us to grab data from lists and libraries. Slide 5 To display the weather at a location that is stored in a SharePoint list. Slide 6 The first thing that we will need to accomplish is to create a list to store our address. Click on Lists Slide 7 Click on Create Slide 8 Click on Lists 1- Select Lists. 2- Click on the list type. 3- Add a name (No spaces, Well fix this in a bit). 4- Click on Create when ready! Slide 9 Now that our list has been created, lets tweak it for our requirements. Click List Settings Slide 10 2- Set the content type. 1- Adjust the Title (add the spaces back). Not part of this demo Slide 11 1- Adjust the Title (add the spaces back). Slide 12 Slide 13 No %20 in the URL User friendly name. Slide 14 Default content type. We want to add an existing content type. Slide 15 1- Select List Type from Drop Down. 2- Add Contact Slide 16 1- Select List Type from Drop Down. 2- Add Contact Slide 17 OTB Content Type Columns. Slide 18 Our Available Content Types. Change the Default Content Type. Slide 19 Settings Before Slide 20 Settings After Slide 21 Change Last Name to Location Slide 22 Slide 23 Click OK to finish Slide 24 What Columns do we really need? Slide 25 Lets hide the ones we do not! Slide 26 Lets edit the View Slide 27 Slide 28 Finally, lets go ahead and Add a new item! Click Add new Item Slide 29 Slide 30 Slide 31 Slide 32 Slide 33 Lets open up Designer and create a page to hold our information. 1- Open your site. 2- Select Master Pages. 3- Select the v4.master 4- Right click and select New from Master Page. Slide 34 1- Save Page. 2- Ignore warning and click Yes Slide 35 1- Within the PlaceHolderMain, select the Common Content Tasks. 2- Click Create Custom Content Slide 36 1- Click inside of the PlaceHolderMain. 2- Insert a 4x4 Table. Slide 37 1- Click inside the Upper Left table cell. 2- Insert an Empty Data View. Slide 38 Slide 39 1- Ctrl + Click in order. 2- Insert as a Single Item View from the pull-down menu. Slide 40 Our list data is finally inserted! Slide 41 Remove Paging Paging Slide 42 Remove the first column Slide 43 Format Address Slide 44 Slide 45 Click in the 3 rd table row. Slide 46 Add New REST Connection 1- Select Data Sources. 2- Click REST Service Connection. Slide 47 1- Name your connection. 2- Add URL. 3- Modify Parameters. Slide 48 1- Modify Parameter. Our updated Properties. Slide 49 Insert REST Feed Data View into 3 rd table row. Slide 50 With the Weather Web Part selected, click Add/Remove Columns. Slide 51 Lets remove the Displayed Columns. Slide 52 Delete the description row (right click in cell). Slide 53 Change the description Format type to Rich Text. Slide 54 Ignore the Warning! Our updated page! Slide 55 Slide 56 1- Select the address web part. 2- Add Connection Slide 57 12 3 Slide 58 45 Slide 59 67 Slide 60 Add a hyperlink to the company web site 1- Select the company name (Planet Technologies) 2- Format Item as Hyperlink 3- Ignore Confirmation! Slide 61 Edit Hyperlink Address 1- Click the function button 2- Select Web Page Slide 62 Update Address Slide 63 Open hyperlink in new page 1- Press the Target Frame button. 2- Select New Window as Target Frame. Slide 64 Slide 65 Slide 66 Important SharePoint REST Starting Point http://[yoursharepointURL]/_vti_bin/listdata.svc/[LISTNAME] Reference Information Accessing SharePoint 2010 Lists using RESTful Service.- http://mstecharchitect.blogspot.com/2010/01/accessing-sharepoint-2010-lists-using.html http://mstecharchitect.blogspot.com/2010/01/accessing-sharepoint-2010-lists-using.html Referencing lists from external site collections Cross-site collection lookup with REST and the DVWP!- http://hamishking.wordpress.com/tag/cross-site- collection-lookup/http://hamishking.wordpress.com/tag/cross-site- collection-lookup/ SP2010: REST Data Sources within SharePoint Designer- http://jsiegmund.wordpress.com/2010/04/25/sp2010-rest-data-sources-within-sharepoint-designer/vhttp://jsiegmund.wordpress.com/2010/04/25/sp2010-rest-data-sources-within-sharepoint-designer/v Working with Data Sources and Web Services connections in SharePoint Designer 2010 (Has a list of all web services)- http://spointblog.com/2010/02/07/working-with-data-sources-and-web-services-connections-in-sharepoint-designer-2010/ http://spointblog.com/2010/02/07/working-with-data-sources-and-web-services-connections-in-sharepoint-designer-2010/ Overview of using REST in SharePoint 2010- http://www.synergyonline.com/Blog/Lists/Posts/Post.aspx?ID=35http://www.synergyonline.com/Blog/Lists/Posts/Post.aspx?ID=35 Lab (This is very cool) Adding Dynamic Maps to Contact Forms with REST Web Services in InfoPath 2010.- http://msdn.microsoft.com/en-us/library/gg293117.aspxhttp://msdn.microsoft.com/en-us/library/gg293117.aspx Background Information Representational state transfer- http://en.wikipedia.org/wiki/Representational_State_Transferhttp://en.wikipedia.org/wiki/Representational_State_Transfer QuickStudy: Representational State Transfer (REST)- http://www.computerworld.com/s/article/297424/Representational_State_Transfer_REST_?taxonomyId=16&pageNumber=1 http://www.computerworld.com/s/article/297424/Representational_State_Transfer_REST_?taxonomyId=16&pageNumber=1 REST Web Service- http://www.knowledgetree.org/REST_Web_Servicehttp://www.knowledgetree.org/REST_Web_Service Slide 67 Email: [email protected] Blog: PCfromDC.blogspot.com Twitter: @PCfromDC

Popular Tags:

Click here to load reader

Reader Image
Embed Size (px)
Recommended