SharePoint 2010 Client Side Object Model. Agenda Introduction The Problem Client side vs Server Side Client Side Object Model – How it works – What can.

Slides:



Advertisements
Similar presentations
SharePoint 2010 Overview Presented by: Oscar Garcia
Advertisements

Bob German Principal Architect Introduction to Cloud Hosted Apps Your apps here!
SharePoint and Knockout for the REST of Us
Custom REST services and jQuery AJAX Building your own custom REST services and consuming them with jQuery AJAX.
November 11, MCT, MCITP, MCTS, MCP SharePoint Architect for Planet Technologies. Working with SharePoint since – Administrator / Developer.
22 мая 2013, Киев Построение Windows 8 приложений для доступа к SharePoint 2013 Бельский Сергей.
Site Collection, Sites and Sub-sites
SharePoint Forms All you ever wanted to know about forms but were afraid to ask.
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
Overview and Demonstration of declarative workflows in SharePoint using Microsoft SharePoint Designer 2007 Kevin Hughes MCT, MCITP, MCSA, MCTS, MCP, Network+,
Eric J. Oszakiewski MCTS: SharePoint Application Development SharePoint Configuration.
Microsoft Office SharePoint Portal Server 2007 Introduction to InfoPath Forms Services Daryl L. Rudolph.
Microsoft SharePoint 2010 technology for Developers
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 15 Technical Preview and published July Solution Architect,Microsoft.
SP 2013 User Profile Service Overview Connecting your Profile to the Portal.
Creating Knockout User Experiences in SharePoint with JavaScript Making awesome with Knockout, jQuery and SharePoint REST.
#spsevents #spsphx SPS EVENTS PHX Know REST for the Query AN INTRODUCTION TO REST FOR SHAREPOINT 2013 ERIC J OSZAKIEWSKI, MCTS, MS, MCPS.
Turners SharePoint Web Site How we did it. 2 Page Anatomy Custom Search Web Part Custom Search Web Part Data Form Web Parts Content Query Web Part HTML.
UNIT-e Research & Development Microsoft Technology Day Stephen Cain (System Architect)
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
SharePoint 2010: BCS m Business Connectivity Services.
Welcome to the Minnesota SharePoint User Group July 14 th, 2010 Introducing the BCS Raymond Mitchell Meeting # 67.
Creating a SharePoint App with Microsoft Access Services
1 Agenda Overview Review Roles Lists Libraries Columns.
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
Microsoft SharePoint 2010 Upgrade Preview FSU SharePoint Users Group Presents: Thursday, December 1 st, 2011.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Introduction to SharePoint Development with VS2010 Paul Yuknewicz Lead Program Manager
SHARE POINT 2010 TRINAY TECHNOLOGY SOLUTIONS © Copyright Trinay Technology Solutions, 39 Buckland St, #5321 Manchester, CT
The new way to work together SharePoint Products Cloud Server Free.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Facebook Like Solution in SharePoint Using JavaScript Amie Seisay
What’s New? – BCS 2013 Brett Lonsdale.  Co-founder of Lightning Tools  One of the hosts on the SharePoint Pod Show  Co-organizer of SharePoint Saturday.
Todd Kitta  Covenant Technology Partners  Professional Windows Workflow Foundation.
Basic Developer Knowledge That Every SharePoint Admin Must Have Randy Williams, MVP MOSS Synergy Corporate Technologies
9 Agenda Views Pages Web Parts Navigation Office Wrap-Up.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
19 May 2012 Business Connectivity Services (BCS) Brett Lonsdale – Lightning #SPSJHB The first ever all green SharePoint event on earth.
Dudok de Wit David.  Documents management in a deskless company  SharePoint Online as a solution  Redesigning the documentary organization  Interoperability.
Sponsors Gold Silver Bronze Custom REST services and jQuery AJAX Building your own custom REST services and consuming them with jQuery AJAX.
SharePoint Online – Developing Solutions for the Cloud Chris Mayo Microsoft Corporation
What's New in Kinetic Calendar 2.0 Jack Boespflug Kinetic Data.
Welcome to the Minnesota SharePoint User Group. Introductions / Overview SharePoint 101 High level overview of SharePoint Differences between SharePoint.
Welcome to the Minnesota SharePoint User Group. Develop and support a local community focused on Microsoft SharePoint Technologies Educate user group.
Welcome to the Minnesota SharePoint User Group February 13 th, 2013 SharePoint 2013 – Developers Track - Client Side Rendering.
| Basel Building real Business Apps with Office365/Azure Gilbert Nicolet – BPA Solutions SA.
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
Back to Basics A Tour of Microsoft SharePoint. Who am I? Kenny Duenke Lead Systems Analyst RGA
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Modern Development Technologies in SharePoint SHAREPOINT SATURDAY OMAHA APRIL, 2016.
Software services delivering SharePoint, Mobile, and Business Intelligence solutions Understanding and implementing the remote provision pattern in SharePoint.
DEV103 – Web Part Transformers – More than meets the eye By: D’arce Hess.
Trimantra Software Solution Offshore Software Development Outsourcing Company Visit :
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.
SharePoint Online and PowerShell?
Introduction to SharePoint 2007 Brendon Schwartz
Start-SPPowerShell – Introduction to PowerShell for SharePoint Admins and Developers Paul BAker.
Integrating SharePoint 2010 with Office 2010
Beyond the BDC\BCS Model
SPC Developer 6/25/2018 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Upgrading from Full Trust Code to Add-in Model and SharePoint Framework Paolo Pialorsi Senior Consultant - PiaSys.com Track: DEV | Level:
SharePoint-Hosted Apps and JavaScript
Code Tax: Programming With The Taxonomy API In SharePoint 2010
SharePoint Saturday Omaha April 2016
SharePoint data access and LINQ to SharePoint
SharePoint 2019 Overview and Use SPFx Extensions
SharePoint 2007 Developer Overview Collaboration BI Features
Presentation transcript:

SharePoint 2010 Client Side Object Model

Agenda Introduction The Problem Client side vs Server Side Client Side Object Model – How it works – What can it do? – Limitations – Possibilities REST Interface Demonstration – REST + CSOM Questions

Introductions Who am I? Who are you? Customisation Possibilities

The Problem SharePoint does so much! But not exactly what I want I know – Ill customise it!

The Problem Custom development – Too Risky ? Data issues? – Too Expensive ? Initial development Maintenance Upgrade? More often than not, custom development requires installation of components on the Server – Promotion through environments – Time and costs associated with downtime

The Problem Customise!

The Problem

The Problem A lot of organisations simply don't allow server side coding A lot of hosting situations dont allow server side coding – BPOS / Office 360 / SharePoint Online – Web Central – Shared Tenancy / Security Issues Team based SharePoint development rarely performed – TFS – Proper Build Servers

Client side vs Server Side Client side Server Side

Client side vs Server Side Client Side Code running on client computer Can only interact with SharePoint via web services Hard to do anything of any complexity Server Side Code running on server Can use SharePoint object model directly Requires installation on server

Client side vs Server Side Designer * Server Side Web Part Development Generic Feature Development UI Menu Feature Development SharePoint Event Handlers Custom Web Services Custom Field Types Custom Page Development/ Code behind Custom Windows Applications / Utilities Custom STSADM commands Business Connectivity Services (BCS)(2010) InfoPath Forms Custom Timer Jobs Custom Workflows / Custom Workflow Actions Branding / Design User controls Workflows Advanced configuration …

Client side vs Server Side Client Side ?

So previously the real client side options were: – Web Services Very low level A bit complex (security) – Scripts on page Mainly for UI change (hiding fields, UI improvements) Can call web services – yuck VB can do some interesting things – SharePoint designer modifications OK – if you dont delete everything Customisations not as portable as would like Know your boundaries! Client side vs Server Side

Some client side work-arounds got quite popular: – JPoint – series of JavaScript functionality in web parts – HTML Calculated column –using the calculated column to conditionally output HTML – JavaScript web-service libraries – still yuck Client side vs Server Side

SharePoint 2010 has two major areas of functionality in this area 1.Client Side Object Model (CSOM) 2.REST Services Whats New Already?!

16 Consistent developer experience across platforms Client Side Object Model

Each of these have work with the Client web-service under the hood to provide the functionality on the server CSOM

Client Side Object Model

Example - Delete List (.net ):

Client Side Object Model Example - Delete List ( JavaScript ):

Client Side Object Model Demo – CSOM

Client Side Object Model JavaScript? – Yes – JavaScript – SharePoint 2010 Ribbon – Custom Links – Content Editor Web Parts – Added into Forms pages for lists and libraries – Scriptlets

Client Side Object Model Demo – JS

Client Side Object Model Security – Windows Credentials by Default – Can use Forms Authentication – Permission level setting

Client Side Object Model Tips and Tricks? – Minimise what you need to retrieve – Know what is loaded in context and what isnt… – Beware of IQueryable with ListItem – JavaScript only has a-sync calls…. Ouch – Use the JavaScript Item Table Holds data for the current item context

SP 2010 & REST REST = Representational State Transfer REST allows data to be accessed via URL alone – Allows caching – No state on server Data comes back as an ATOM feed (not RSS)

SP 2010 & REST Syntax: – /_vti_bin/ListData.svc/{Entity}[({identifier})]/[{Property}] – Example for sorting: – /_vti_bin/ListData.svc/Announcements?$orderby=Title desc – Example to get budget hours for Project $4: /_vti_bin/ListData.svc/Projects(4)/BudgetHours – Example to get Projects for Clients in Chicago: /_vti_bin/ListData.svc/Projects?$filter=Client/City eq 'Chicago' – Example to get a Project and its related Client: /_vti_bin/ListData.svc/Projects?$expand=Client Shows me parent that is associated with this XML

SP 2010 & REST QueryString parameters for REST – $filter – $expand – $orderby – $skip – $top – $metadata (will bring back all the XML metadata about the object. Think of it like WSDL for your REST call)

Summary Before – Client side coding was very difficult – Either via web services or very limited in functionality After – Client side coding much easier – Object Model - like coding on the server – Similar for JavaScript, Silverlight,.Net Applications – Dont need to develop on the server! – New Possibilities with Rest and the CSOM

Reading: Using the SharePoint Foundation 2010 Managed Client Object Model Managed Client Object Model Common Programming Tasks Praveen Battula

Questions?