Building Dynamic Applications with the SharePoint Client Object Model

Slides:



Advertisements
Similar presentations
What is all about and how does it work? Client Application.
Advertisements

Microsoft Office SharePoint Portal Server 2007 Introduction to InfoPath Forms Services Daryl L. Rudolph.
Microsoft SharePoint 2010 technology for Developers
SharePoint ExplorerNew Project and Item Templates New Project Structure.
Overview of Customization and Development Capabilities in Dynamics AX
Basel · Baden Bern · Brugg · Lausanne Zurich Düsseldorf · Frankfurt/M. · Freiburg i. Br. Hamburg · Munich · Stuttgart · Vienna Entwicklung von SharePoint.
Microsoft SharePoint® Online: Extensibility and Customization
Getting data into Silverlight on SharePoint Neil Iversen
Minneapolis Office Developer Interest Group (MODIG) December 10, 2009 Client Object Model Development Neil Iversen
SharePoint 2010: BCS m Business Connectivity Services.
St. Louis Day of Dot Net 2011 Jump Start: SharePoint Development Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET, MCTS
Introduction To: Client Object Model Development March 20, 2009 SharePoint Saturday Neil Iversen
Microsoft ® Official Course Introducing Apps for SharePoint SharePoint Practice Microsoft SharePoint 2013.
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
Becky Bertram SharePoint MVP
Windows SharePoint Services 3.0 (WSS v3) Browser Clients MS Word Clients MS Outlook Clients Microsoft Office SharePoint Server 2007 (MOSS) Windows.
Copyright © SUPINFO. All rights reserved.
A Close Look Inside the SharePoint Engine Randy Williams, MVP MOSS Synergy Corporate Technologies
Facebook Like Solution in SharePoint Using JavaScript Amie Seisay
Excellence in Software Engineering Client-Side Object Model MS SharePoint CSOM Belarus SharePoint User Group © 2012, by Ivan Padabed.
Spicing Up Web Parts Randy Williams SharePoint Hawaii User Group May 11, 2011.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
The Microsoft Technical Roadshow 2007 Rich Client Development in XAML Mark Johnston Developer & Platform Group Microsoft Ltd
Upgrading Projects to Visual Studio 2010 Upgrading Projects to SharePoint 2010 Integrating with SharePoint 2010.
FIM 2010 Portal Dynamic RCDC via JQuery Ike Ugochuku Enterprise IDAM.
Online Conference June 17 th and 18 th SharePoint Online Administration with PowerShell.
SharePoint Online – Developing Solutions for the Cloud Chris Mayo Microsoft Corporation
VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – Web Part.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
Michael Hofer Senior Consultant Microsoft Corporation.
Connect with life Vedant Kulshreshtha Technology Solutions Professional – SharePoint | Microsoft India
Farm Site List Data External Lists ClientOM Client OM REST APIs.
Microsoft SharePoint Server 2007 Technical Overview Romeo Pruno nonaka.eu.
Facebook Like Solution in SharePoint Using JavaScript Amie Seisay
Yaroslav Pentsarskyy Involved in SharePoint since 2003 SharePoint MVP (2009- Present) Blog: sharemuch.com.
Application Hosting and Customization Introducing Sandboxed Solutions Executing Code in the Sandbox Sandbox Resource Monitoring.
Programming the Microsoft SharePoint Products and Technologies Object Model Paul Appleby Developer & Platform Group
Virtual techdays INDIA │ august 2010 Silverlight And SharePoint Saranya Sriram │ Developer Evangelist, Microsoft.
Overview Silverlight Client Object Model JavaScript Client Object Model Calling SharePoint Web Services Summary.
Course Agenda Deep Dive into the Building Blocks and Services of the SharePoint Platform Module 1: Developing Advanced Workflow Scenarios in Office 365.
Virtual techdays INDIA │ November 2010 SharePoint 2010 – Your one stop shop for all portal requirements Saranya Sriram │ Developer Evangelist, Microsoft.
Powering up your Office 365 cmdlets with CSOM Bjoern H Rapp, Senior Architect Public Cloud, SopraSteria.
Converting SharePoint on- premise Apps to Office 365 Jos Auker-Woor M377.
Software services delivering SharePoint, Mobile, and Business Intelligence solutions Creating mobile applications that integrate with SharePoint 2013 on-
Introducing the Microsoft® .NET Framework
DYNAMIC CONTENT DELIVERY
SharePoint 2010 Performance and Capacity Planning Best Practices
St. Louis Day of Dot Net 2011 Jump Start: SharePoint Development
Integrating SharePoint 2010 with Office 2010
Remote Event Receivers
Beyond the BDC\BCS Model
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer
BIWUG | SPSaturday Sandboxed Solutions
SharePoint Framework Extensions
Introduction to SharePoint Framework (SPFx)
Exploring the Office Developer Story in Microsoft Office 365
Office 365 Development July 2014.
Developer Patterns to Integrate Silverlight 4.0 with SharePoint 2010
Introduction to SharePoint Framework (SPFx)
03 | Client Side SharePoint Development
SharePoint & jQuery: Better Together
SharePoint data access and LINQ to SharePoint
Customizing the SharePoint Mobile Experience
The SharePoint framework
Mike Ammerlaan Program Manager Microsoft Corporation
Maxim Lukiyanov Program Manager Microsoft Corporation
04 | Apps and SharePoint Chris Johnson | SharePoint Guru
Server & Tools Business
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

Building Dynamic Applications with the SharePoint Client Object Model Visual Studio Connections Building Dynamic Applications with the SharePoint Client Object Model Eric Shupps SharePoint Server MVP Updates will be available at http://www.devconnections.com/updates/LasVegas_Fall08/VS

About Me SharePoint Server MVP President, BinaryWave Microsoft Patterns & Practices (spg.codeplex.com) CKS:DEV (cksdev.codeplex.com) Web: www.binarywave.com Blog: www.sharepointcowboy.com Twitter: @eshupps Facebook: www.facebook.com/sharepointcowboy

“This session is a hunky dory jolly good awesomeness thingy” Agenda Introduction to the Client Object Model .NET Client Object Model Silverlight and Client Object Model JavaScript and Client Object Model Demo Building a WPF Client Application with SharePoint Data “This session is a hunky dory jolly good awesomeness thingy” - Tobias Zimmergren

Legacy Data Access SharePoint Data Server Application SharePoint API Web Service Client Application

Client Object Model Consistent Efficient SharePoint Data Sort Of Somewhat Consistent Efficient Client Application .Net CLR Silverlight JavaScript

Accessing Data with Client OM Browser JavaScript Controls Client Service Server Object Model JavaScript OM Proxy Proxy Managed OM Content Database Managed Controls Client Server

Equivalent Objects Server (Microsoft .SharePoint) .NET Managed (Microsoft.SharePoint .Client) Silverlight (Microsoft.SharePoint .Client.Silverlight) JavaScript (SP.js) SPContext ClientContext SPSite Site SPWeb Web SPList List SPListItem ListItem SPField Field Show the various resources and their locations Server – Microsoft.SharePoint – [..]\14\ISAPI .NET – Microsoft.SharePoint.Client – [..]\14\ISAPI Silverlight – Microsoft.SharePoint.Client.Silverlight – [..]\14\LAYOUTS\ClientBin ECMAScript – SP.js - [..]\LAYOUTS

Getting Started: 3 things to know ClientContext is the central object Before you read a property, you have to ask for it All requests must be committed in a batch clientContext = new ClientContext(“http://mysite”); clientContext.Load(list); clientContext.ExecuteQuery();

High level handling of commands Client Application Server Sequence of commands: Client.svc command 1; command 2; command 3; Execute commands in the batch: XML context.ExecuteQuery(); command 1; command 2; command 3; JSON Process results Send results back

Client Object Model Limitations You must handle synch/update semantics in code No elevation of privilege capabilities Requests are throttled .net CLR has sync method; Silverlight CLR and Jscript are async Limited subset of Server OM functionality You only get what you ask for – nothing more (but sometimes less)

.Net CLR Client OM Provides easy access from remote .NET clients to manipulate SharePoint data Can be utilized from managed code – also from office clients etc. Assemblies Microsoft.SharePoint.Client.dll (281kb) Microsoft.SharePoint.Client.Runtime.dll (145kb) To Compare: Microsoft.SharePoint.dll – 15.3MB

DEMO Building a .NET Client OM Application Using SharePoint Data

Silverlight in SharePoint 2010 Native Silverlight web part allows for compilation and deployment of XAP-only solutions One-click deployment from Visual Studio 2010 Web Parts can contain custom properties that are sent to Silverlight via the InitParams property Abstracted visual design in Expression (make the designer do it!)

Silverlight CLR Client OM Use the correct references: 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

Silverlight Client OM

Building and Deploying Silverlight Built in support in Visual Studio 2010 Redirect assembly output into Module F5 deploy and debug experience SharePoint WSP Visual Studio builds WSP package on F5 Module XAP Deploy as Module

DEMO Building a Silverlight Client OM Application Using SharePoint Data

JavaScript Client OM Provides similar functionality to .NET/Silverlight COM from JavaScript/ECMAScript Identical structure Initialize Context -> Specify Items -> Load Objects -> Execute Query Limited to current site context (no cross-site scripting) Asynchronous (like Silverlight) Be aware of syntax changes get_web() get_lists() get_item()

DEMO Building a Javascript Client OM Application Using SharePoint Data

Your Feedback is Important Visual Studio Connections Your Feedback is Important Please fill out a session evaluation form. Thank you! Updates will be available at http://www.devconnections.com/updates/LasVegas_Fall08/VS