1 / 42

SharePoint 2010 desde cliente

SharePoint 2010 desde cliente. no tengas miedo!. Alberto Diaz Martin adiazcan@hotmail.com http://geeks.ms/blogs/adiazmartin Twitter://@ adiazcan. Agenda. …casi todo lo nuevo. Visual Studio Tools for SharePoint. Modelo de objetos en cliente. Developer Dashboard. Silverlight WebPart.

Download Presentation

SharePoint 2010 desde cliente

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SharePoint 2010 desdecliente no tengas miedo! Alberto Diaz Martin adiazcan@hotmail.com http://geeks.ms/blogs/adiazmartin Twitter://@adiazcan

  2. Agenda

  3. …casi todo lo nuevo Visual Studio Tools for SharePoint Modelo de objetos en cliente Developer Dashboard Silverlight WebPart Mejorintegración con TFS SharePoint Designer 2010 Chart Web Part Sandbox Solutions • ListLookups and Relationships Depuración con F5 LINQ To SharePoint BCS Modelo de Eventos API REST Upgrading Solutions WSP paralasmasas Solutions Gallery Desarrollo con W7 / Vista

  4. …lo nuevo, + ordenado

  5. Introducción al ClientObjectModel

  6. Accediento en SharePoint 2007 SharePoint Data Server Application SharePoint API Web Service Client Application

  7. Accediento en SharePoint 2007 WebServices

  8. Accediento en SharePoint 2007 WebServices Existe un Camino mejor

  9. Accediento en SharePoint 2010 Client Object Model

  10. Accediento en SharePoint 2010 Client Object Model

  11. ¿Quées Client OM?

  12. ClientObjectModel • API paraInsertar, Obtener, Actualizar y Gestionar los datos en SharePoint SharePoint Data • Consistente • Eficiente • ClientApplication .Net CLR Silverlight JavaScript

  13. ClientObjectModel

  14. HelloWorld – Server API

  15. HelloWorld – .NET CLR

  16. HelloWorld – Silverlight

  17. HelloWorld - JavaScript

  18. Obtener Datos

  19. QuerySyntax var query = from list in clientContext.Web.Lists          where list.Title != null          select list; varresult = clientContext.LoadQuery(query); clientContext.ExecuteQuery();

  20. MethodSyntax clientContext.Load(oList, list => list.Fields.Where( field => field.Hidden == false && field.Filterable == true)); clientContext.ExecuteQuery();

  21. Soluciones de Arquitectura

  22. Objetos Equivalentes

  23. Soporte

  24. Accediendo en SharePoint 2010 SharePoint Data Server Application SharePoint API Web Service Client.svc JSON XML Client Application Client OM WPF/WinForm/Office Silverlight JavaScript Client Application

  25. Usando el ClientObjectModel ECMAScriptControlsand Logic Browser Client.svc Server OM JSON Response ECMAScript OM XML Request Proxy XML Request Proxy Contentdatabase JSON Response Managed OM Managed Client Managed Controls and Logic SharePoint Server

  26. .NET ClientObjectModel

  27. .NET ClientObjectModel Demo

  28. .NetClient OM C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI • Microsoft.SharePoint.Client • 281kb • Microsoft.SharePoint.Client.Runtime • 145kb To Compare: • Microsoft.SharePoint.dll – 15.3MB

  29. JavascriptObjectModel

  30. JavascriptClientObjectModel demo

  31. Javascript Client OM C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS • SP.js (SP.debug.js) • 380KB (559KB) • SP.Core.js (SP.Core.debug.js) • 13KB (20KB) • SP.Runtime.js (SP.Runtime.debug.js) • 68KB (108KB)

  32. Silverlight ClientObjectModel

  33. Creando Web Parts con Silverlight

  34. Silverlight Web Part demo

  35. Silverlight Client OM C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions \14\TEMPLATE\LAYOUTS\ClientBin • Microsoft.SharePoint.Client.Silverlight • 262KB • Microsoft.SharePoint.Client.Silverlight.Runtime • 138KB

  36. Data Services

  37. Data Services

  38. Data Services • //Listado de los elementos de una Lista de Anuncios • IntranetDataContextctx = • new IntranetDataContext( • new Uri( • "http://win-ij3avreuif5/_vti_bin/ListData.svc", • UriKind.Absolute)); • ctx.Credentials = • CredentialCache.DefaultCredentials; • grdDatos.DataSource = ctx.Anuncios.ToList();

  39. Data Services • //Creación de un nuevo anuncio • IntranetDataContextctx = • new IntranetDataContext( • new Uri( • "http://win-ij3avreuif5/_vti_bin/ListData.svc", • UriKind.Absolute)); • ctx.Credentials = • CredentialCache.DefaultCredentials; • AnunciosItemanItem = • new AnunciosItem(); • anItem.Título=txtTitulo.Text; • anItem.Cuerpo=txtTitulo.Text; • ctx.AddToAnuncios(anItem); • ctx.SaveChanges();

  40. ADO.NET Data Services demo

  41. Resumiendo

  42. SharePoint 2010 desdecliente Muchas gracias! Alberto Diaz Martin adiazcan@hotmail.com http://geeks.ms/blogs/adiazmartin Twitter://@adiazcan

More Related