Minneapolis Office Developer Interest Group (MODIG) December 10, 2009 Client Object Model Development Neil Iversen

Slides:



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

AJAX Development By Gary Mandela December 26,
SharePoint 2010 Client Side Object Model. Agenda Introduction The Problem Client side vs Server Side Client Side Object Model – How it works – What can.
Arthur Brost Portals and Collaboration Practice Manager twentysix New York I BP402.
SharePoint Forms All you ever wanted to know about forms but were afraid to ask.
HOW TO STORE THE DATA YOU NEED IN SHAREPOINT 2010 Mick Badran MVP, V-TSP,XYZ,ABC
ACT! “Web” Plugins ACC Webinar (Part 1of 2) Brian Mowka and Jamie Aurand December 2010.
Microsoft SharePoint 2010 technology for Developers
A Blackboard Building Block™ Crash Course for Web Developers
Microsoft ® Official Course Client-Side SharePoint Development SharePoint Practice Microsoft SharePoint 2013.
Basel · Baden Bern · Brugg · Lausanne Zurich Düsseldorf · Frankfurt/M. · Freiburg i. Br. Hamburg · Munich · Stuttgart · Vienna Entwicklung von SharePoint.
Minneapolis Office Developer Interest Group (MODIG) Mike Hodnick April 22, 2008 The MOSS Search API.
Integrating SharePoint with Silverlight Paul Stubbs Technical Evangelist Microsoft.
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
Welcome to the Minnesota SharePoint User Group June 10 th, 2009 Search: From WSS to FAST Brian Caauwe, Wes Preston Bob Koviak,
Windows SharePoint Services 3.0 (WSS v3) Browser Clients MS Word Clients MS Outlook Clients Microsoft Office SharePoint Server 2007 (MOSS) Windows.
Microsoft SharePoint 2010 Upgrade Preview FSU SharePoint Users Group Presents: Thursday, December 1 st, 2011.
Welcome to the Minnesota SharePoint User Group. Introductions / Overview Project Tracking / Management / Collaboration via SharePoint Multiple Audiences.
Michael Atkins. Note:  This is a non-technical overview  Some light technical background is given, to put things in context  Some of the content is.
Hennie Laubscher K2 Brian Farnhill Independent Consultant.
Facebook Like Solution in SharePoint Using JavaScript Amie Seisay
Welcome to the Minnesota SharePoint User Group May 13 th, 2009 SharePoint Workflow and a Best Buy Case Study Neil Iversen Sarah.
Minneapolis Office Developer Interest Group (MODIG) July 22, 2008 Developing against SharePoint Remotely (No Object Model Allowed!) Raymond Mitchell Inetium.
The Evolution of SharePoint Event May 21 st, 2014 Timothy Ferro.
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.
Spicing Up Web Parts Randy Williams SharePoint Hawaii User Group May 11, 2011.
Microsoft Application Virtualization 5.0: Introduction Mohnish Chaturvedi & Ian Bartlett Premier Field Engineer WCL312.
The Evolution of SharePoint Event Receivers #SPSNYC July 26 th, 2014 Timothy Ferro.
Minneapolis Office Developer Interest Group (MODIG) March 25, 2008 Custom Column Development Neil Iversen Inetium
Welcome to the Minnesota SharePoint User Group December 12 th, 2007 Miscellaneous really useful demos Wes Preston, Ryan Oliveira,
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Introduction to Entity Framework Part 2 CRUD Scaffolding Tom Perkins NTPCUG.
Welcome to the Minnesota SharePoint User Group. Agenda Quick Introduction Announcements and News 2007 Microsoft Office System Licensing and Pricing Real-World.
Database control Introduction. The Database control is a tool that used by the database administrator to control the database. To enter to Database control.
Vision: Modernizing the Office Platform © 2011 AvePoint, Inc. All rights reserved. No part of this may be reproduced, stored in a retrieval system,
New & Improved Events List Relationships and Joins Large List Support Field & List Item Validation.
Introduction to the SharePoint 2013 REST API. 2 About Me SharePoint Solutions Architect at Sparkhound in Baton Rouge
Minneapolis Office Developer Interest Group (MODIG) April 28, 2009 Custom Workflow Actions in SharePoint Designer Raymond Mitchell Inetium
Michael Hofer Senior Consultant Microsoft Corporation.
Ready for what’s next. The Evolution of SharePoint Event Receivers SharePoint Saturday DC: Reston December 7 th, 2013 Timothy Ferro.
Libraries and APIs CMPT 281. Overview Basics of libraries and APIs Rich internet applications Examples – Scriptaculous – JQuery.
Welcome to the Minnesota SharePoint User Group August 13 th, 2008 Open Panel Discussion Wes Preston, Todd Klindt, Neil Iversen,
Advanced Feature Development Neil Iversen Inetium
Facebook Like Solution in SharePoint Using JavaScript Amie Seisay
Cevgroup.org C utting E dge V isionaries. cevgroup.org TODAY’s TALK 1) Internet Of Things (IoT) 2) Wi-Fi Controlled Robots 3) Augmented Reality.
Switch on the LightSwitch Gill Cleeren Microsoft Regional Director / Silverlight MVP Ordina Belgium
Back to Basics A Tour of Microsoft SharePoint. Who am I? Kenny Duenke Lead Systems Analyst RGA
Introduction to TouchDevelop Lesson 3 – Comments & Lists Created by S. Johnson
Programming the Microsoft SharePoint Products and Technologies Object Model Paul Appleby Developer & Platform Group
SharePoint 2007 Business Intelligence October 23 th, 2008 Neil Iversen - Inetium.
Modern Development Technologies in SharePoint SHAREPOINT SATURDAY OMAHA APRIL, 2016.
2012 © Trivadis BASEL BERN LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MÜNCHEN STUTTGART WIEN WELCOME The SharePoint 2013 App Model.
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.
SharePoint Online and PowerShell?
Progress Apama Fundamentals
SharePoint 2007 Business Intelligence
St. Louis Day of Dot Net 2011 Jump Start: SharePoint Development
z/Ware 2.0 Technical Overview
Beyond the BDC\BCS Model
Building Dynamic Applications with the SharePoint Client Object Model
An introduction to REST for SharePoint 2013
SharePoint & jQuery: Better Together
Customizing the SharePoint Mobile Experience
The SharePoint framework
Mike Ammerlaan Program Manager Microsoft Corporation
Web programming and advanced development techniques
Presentation transcript:

Minneapolis Office Developer Interest Group (MODIG) December 10, 2009 Client Object Model Development Neil Iversen

The Plan  Introduction  You are here  SharePoint 2010 Developer Overview

User Group Goals  Provide a community for SharePoint Developers  Share development knowledge  Exchange tips/tricks/other/free pizza

User Group Format  Presentations  Presentations are good  Demos are better  QA/Discussion/Random Things

Sharepointmn.com/modig/  Our current home  Meeting information  Usually has the right time  Previous presentations  Running on SharePoint  As required by SharePoint User Group Law

Upcoming  Next Meeting  Jan 26, 2010  Topic: TBD  Location: Where you are  MNSPUG  Jan 12 (9:00am – Noon)  Topic : Composite Applications in SharePoint 2010

Events of Note  SharePoint 2010 in Wider Availability  SharePoint 2010 Developer Center 

 What is the Client Object Model  Working with the COM .NET  Silverlight  Javascript  Questions

What’s a Client Object Model?  Run code against SharePoint…only remotely  Its like a Web Service call, only prettier  Why use it?  ‘No Code’ solutions  Fancy AJAX  Rich Internet Applications (RIA)  Integrate with WinForm/WPF Apps  (Potentially) Get around Solution Limits

So, how’s it work?  You use its DLL  It bundles your calls  It calls a webservice  You get pretty objects back

Client Object Model Runs on Remote Machine  Simple API to Add, Retrieve, Update and Manage Data in SharePoint  Commands batched for Performance.NET CLR Silverlight CLR JavaScriptJavaScript ConsistentEfficient SharePoint Data

Getting Started – Where Am I?  ClientContext  Sets up the Environment your calls will be in  The Web you’ll be working with  Web and SilverLight have a Current context .NET Requires you to specify a location  AuthenticationMode  Uses currently logged in User by default  Set to FormsAuth  Example: clientContext = new ClientContext(txtUrl.Text);  web = clientContext.Web;

Retrieving Items  Item Collections can be retrieved by ‘calling’ them  web.Lists  LINQ is available for some objects  var query = from l in web.Lists where l.Title = “Tasks”  CAML is preferred for ListItems  CamlQuery object

Nothing Happened!  Everything is async  Nothing happens until you clientContext.ExecuteQuery  But first you need to tell it the objects to Load  clientContext.Load(lists)

Why can’t I see all my fields?  SharePoint is trying to conserve resources  It only brings back what it has to  Use Load to override this behavior  Load(myLists, lists=>lists.Include(list =>list.Title,list=>list.Author)  Or  Load(myLists, “Include(Title,Author)”)

Demo -.NET Client Object Model

Adding a new Item  ListItemCreationInformation  Sets the context for the Add  collection.Add(listItemCreationInformation)  Returns Item  Ex: ListItem item = list.Add(lici)  Then  item.Update()  clientContext.ExecuteQuery()

Updating an Item  Item.Update!  clientContext.ExecuteQuery()

Deleteing an Item  Item.DeleteObject  clientContext.ExecuteQuery()

Demo -.NET CRUD

ECMAScript Object Model  Commonly called ‘javascript’ by humans  Requires:  MSIE 7+  Firefox 3.5+  Safari 4.0+  Needs SP.js to be loaded   Stored in /LAYOUTS  SP.js – SP.debug.js

Demo – Javascript Demo

SilverLight  Probably the funnest of the options  Give you rich visualization options  Has Client Object Model like JS/.NET

Demo – SilverLight Demo

Questions?

Next Meeting  Topic / Time Selection  Client Model – Deeper Dive  Web Part Development  PowerShell  BCS

Random Stuff Neil Iversen Inetium Feedback Forms Mingle, Eat, Feedback See you next time!