Successfully reported this slideshow.
Client side programming with SharePoint 2010<br />Trung Van PHAM<br />
Client side scenarios<br />Story in SharePoint 2007<br /> SharePoint 2010 Client Object Models<br />Overview of the Client...
Scenarios<br />Web Browsers<br />Microsoft Office Applications<br />Custom Applications<br />Commonly interaction with Sha...
Story in SharePoint 2007<br />SharePoint Server<br />Applications<br />Web UIs<br />Web Browsers<br />SharePoint<br />Obje...
Client Object Model provides complete API instead of more services<br />Provides an abstraction layer to return results as...
SharePoint 2010 Client Object Models<br />SharePoint Server<br />Applications<br />Client.svc<br />Client Apps<br />ShareP...
How does Client OM work?<br />SharePoint Server<br />Client Application<br />Build sequence commands:<br /><ul><li>Command 1
Command 2
Command n</li></ul>Execute Commands<br />Client.svc<br />Execute:<br /><ul><li>Command 1
Command 2
Command n</li></ul>Send result back<br />XML<br />Process result<br />JSON<br />
Site Collections and Sites<br />Lists, List Items, Views, and List Schemas<br />Files and Folders<br />Web, List, and List...
Consistency<br />
C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14ISAPI<br />Files<br />Microsoft.SharePoint.Client.dll (2...
DEMO 1<br />Getting Started<br />.NET Client Object Model (cont)<br />
Think about efficiency <br />All the properties are loaded in DEMO1<br />Specify the properties you need:<br />ctx.Load(we...
DEMO 2<br />Specifying properties to load<br />.NET Client Object Model (cont)<br />
Loading List Items <br />List Items are always loaded using a CAML Query<br />[[Code]] - tbd<br />.NET Client Object Model...
DEMO 3<br />Loading List Items<br />.NET Client Object Model (cont)<br />
DEMO 4<br />Creating and Updating List Items<br />.NET Client Object Model (cont)<br />
C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATELAYOUTSClientBin<br />Files:<br />Microsoft.Shar...
[[tbd]] Code<br />Silverlight Client Object Model (cont)<br />
DEMO 5<br />Creating the Silverlight Web Part<br />Silverlight Client Object Model (cont)<br />
C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATELAYOUTS<br />Files:<br />SP.js (381 KB)<br />Deb...
[[tbd]] Code<br />ECMAScript Object Model (cont)<br />
DEMO 6<br />ECMAScript Object Model<br />ECMAScript Object Model (cont)<br />
LINQ to SP not implemented in Silverlight<br />ListData.svc provides RESTful access<br />ADO.NET Data Services<br />ListDa...
Upcoming SlideShare
Loading in …5
×

Client side programming with SharePoint 2010 - SharePoin Saturday Vietnam

1,256 views

Published on

Presented by Pham Van Trung, this topic introduces the solutions to work with SharePoint 2010 from Client side, including:

- SP Client Object Model
- SP Silverlight Client Object Model
- SP ECMAScript Client Object Model
- SP WebServices ; WCF; REST; RPC
- Silverlight + JQuery + SP WebServices (http://spservices.codeplex.com/)

SharePoint Saturday Vietnam was sponsored by Officience. Visit http://www.officience.com/

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Client side programming with SharePoint 2010 - SharePoin Saturday Vietnam

  1. 1. Client side programming with SharePoint 2010<br />Trung Van PHAM<br />
  2. 2. Client side scenarios<br />Story in SharePoint 2007<br /> SharePoint 2010 Client Object Models<br />Overview of the Client Object Models<br />.NET Client Object Model<br />Silverlight Client Object Model<br />ECMAScript Client Object Model<br />ADO.NET Data Services<br />JQuery, SP WebServices and Silverlight<br />Agenda<br />
  3. 3. Scenarios<br />Web Browsers<br />Microsoft Office Applications<br />Custom Applications<br />Commonly interaction with SharePoint<br />Display SharePoint data<br />Manipulating with SharePoint data<br />Client side scenarios<br />
  4. 4. Story in SharePoint 2007<br />SharePoint Server<br />Applications<br />Web UIs<br />Web Browsers<br />SharePoint<br />Object Model<br />Web Services, RPC<br />Applications<br />Custom Services<br />SharePoint Content DB<br />
  5. 5. Client Object Model provides complete API instead of more services<br />Provides an abstraction layer to return results as recognizable SharePoint objects<br />Consistent developer experience across platforms (.NET, ECMAScript, Silverlight)<br />Overview of the Client Object Models <br />
  6. 6. SharePoint 2010 Client Object Models<br />SharePoint Server<br />Applications<br />Client.svc<br />Client Apps<br />SharePoint<br />Object Model<br />Client OMs<br />SharePoint Content DB<br />
  7. 7. How does Client OM work?<br />SharePoint Server<br />Client Application<br />Build sequence commands:<br /><ul><li>Command 1
  8. 8. Command 2
  9. 9. Command n</li></ul>Execute Commands<br />Client.svc<br />Execute:<br /><ul><li>Command 1
  10. 10. Command 2
  11. 11. Command n</li></ul>Send result back<br />XML<br />Process result<br />JSON<br />
  12. 12. Site Collections and Sites<br />Lists, List Items, Views, and List Schemas<br />Files and Folders<br />Web, List, and List Item Property Bags<br />Web Parts<br />Security<br />Content Types<br />Site Templates and Site Collection Operations<br />Supported Areas<br />
  13. 13. Consistency<br />
  14. 14. C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14ISAPI<br />Files<br />Microsoft.SharePoint.Client.dll (282KB)<br />Microsoft.SharePoint.Client.Runtime.dll (146 KB)<br />Compare to SharePoint Server OM<br />Microsoft.SharePoint.dll (16.2 MB)<br />.NET Client Object Model<br />
  15. 15. DEMO 1<br />Getting Started<br />.NET Client Object Model (cont)<br />
  16. 16. Think about efficiency <br />All the properties are loaded in DEMO1<br />Specify the properties you need:<br />ctx.Load(web, w=>w.Title);<br />ctx.Load(list,l=>l.Title, l=>l.ItemCoun);<br />ctx.ExecuteQuery();<br />.NET Client Object Model (cont)<br />
  17. 17. DEMO 2<br />Specifying properties to load<br />.NET Client Object Model (cont)<br />
  18. 18. Loading List Items <br />List Items are always loaded using a CAML Query<br />[[Code]] - tbd<br />.NET Client Object Model (cont)<br />
  19. 19. DEMO 3<br />Loading List Items<br />.NET Client Object Model (cont)<br />
  20. 20. DEMO 4<br />Creating and Updating List Items<br />.NET Client Object Model (cont)<br />
  21. 21. C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATELAYOUTSClientBin<br />Files:<br />Microsoft.SharePoint.Client.Silverlight.dll (266K)<br />Microsoft.SharePoint.Client.Silverlight.Runtime.dll (142K)<br />Silverlight Client Object Model<br />
  22. 22. [[tbd]] Code<br />Silverlight Client Object Model (cont)<br />
  23. 23. DEMO 5<br />Creating the Silverlight Web Part<br />Silverlight Client Object Model (cont)<br />
  24. 24. C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATELAYOUTS<br />Files:<br />SP.js (381 KB)<br />Debug version: SP.debug (561 KB)<br />ECMAScript Object Model<br />
  25. 25. [[tbd]] Code<br />ECMAScript Object Model (cont)<br />
  26. 26. DEMO 6<br />ECMAScript Object Model<br />ECMAScript Object Model (cont)<br />
  27. 27. LINQ to SP not implemented in Silverlight<br />ListData.svc provides RESTful access<br />ADO.NET Data Services<br />ListData.svc<br />Loads ADO.NET Data Services handler assembly<br />
  28. 28. DEMO 7<br />REST demo<br />ADO.NET Data Services (c0nt)<br />
  29. 29. SPServices: JQuery Library for SharePoint Web Services <br />Site Url: http://spservices.codeplex.com/<br />SPServices<br />
  30. 30. DEMO 8<br />JQuery, SPServices and Silverlight<br />SPServices (cont)<br />
  31. 31. Q & A ?<br />THANK YOU!<br />Summary<br />

×