SHAREPOINT 2010 CLIENT SIDE OBJECT MODEL



Similar documents
Intro to Developing for SharePoint Online: What Tools Can I Use?

SharePoint 2013 DEV. David Čamdžić Kompas Xnet d.o.o.

A SharePoint Developer Introduction. Hands-On Lab. Lab Manual HOL8 Using Silverlight with the Client Object Model C#

A SharePoint Developer Introduction. Hands-On Lab. Lab Manual SPCHOL306 Using Silverlight with the Client Object Model VB

SHAREPOINT 2010 DEVELOPMENT : IN THE CLOUD. Faraz Khan Senior Consultant RBA Consulting

Developer Walkthroughs

SharePoint 2013 Syllabus

Die SharePoint-Welt für den erfahrenen.net- Entwickler. Fabian Moritz MVP Office SharePoint Server

SharePoint 2010 Performance and Capacity Planning Best Practices

SharePoint 2010/2013 Course

JapanCert 専 門 IT 認 証 試 験 問 題 集 提 供 者

MyChartWebPart.cs. // For SortList using System.Collections.Generic; using System.Collections; // For DataTable using System.Data;

MOC 20488B: Developing Microsoft SharePoint Server 2013 Core Solutions

In the academics, he holds a Bachelor s Degree in Computer Science an Masters in Business Administration.

This course provides students with the knowledge and skills to develop ASP.NET MVC 4 web applications.

Noramsoft Inc. Noramsoft Inc. SPT2O1O - Course Description. Developing Solutions with SharePoint Server 2010 SPT2010. Noramsoft Inc. Noramsoft Inc.

LoadRunner and Performance Center v11.52 Technical Awareness Webinar Training

Software Development Interactief Centrum voor gerichte Training en Studie Edisonweg 14c, 1821 BN Alkmaar T:

CRM Developer Form

1703 Discovering SharePoint 2007 for Developers

Special Report UNDERSTANDING SHAREPOINT JOURNAL. Bjørn Furuknap. What s New for SharePoint 2010 Developers

Custom SharePoint Solutions with HTML and JavaScript In this book, you ll learn to: SOURCE CODE ONLINE

MICROSOFT EXAM QUESTIONS & ANSWERS

Thomas Röthlisberger IT Security Analyst

A SharePoint Developer Introduction

Skills for Employment Investment Project (SEIP)

Como configurar o IIS Server para ACTi NVR Enterprise

Course 10175A - Microsoft SharePoint 2010, Application Development

"Charting the Course to Your Success!" MOC B Configuring and Administering Microsoft SharePoint Course Summary

Developing Microsoft SharePoint Server 2013 Advanced Solutions. Version: Demo. Page <<1/8>>

NAV 2013 Roadmap. Tom Taylor

Transition your MCPD Web Developer Skills to MCPD ASP.NET Developer 3.5 (VB)

SharePoint Apps model overview

SharePoint 2010 General Introduction Introduction to SharePoint SharePoint Installation and Administration SharePoint Site Hierarchy Website

Developing Microsoft SharePoint Server 2013 Core Solutions

ArcGIS Viewer for Silverlight An Introduction

Creating a folder in a library and submitting a form

SharePoint for Developers. Lunch and Learn

SPT2013: Developing Solutions with. SharePoint DAYS AUDIENCE FORMAT COURSE DESCRIPTION STUDENT PREREQUISITES

Getting started with your AppDev Microsoft Development Library

Enhancing your Web Experiences with ASP.NET Ajax and IIS 7

Mobile Development Fundamentals

Integration test in SharePoint

The Great Office 365 Adventure

Course 20489B: Developing Microsoft SharePoint Server 2013 Advanced Solutions OVERVIEW

ArcGIS Web Mapping. Sam Berg, esri

Catálogo de cursos plataforma elearning Microsoft Imagine Academy: Microsoft SQL Server y Visual Studio

SharePoint Development for.net Developers

Course Outline: Course 20489B: Developing Microsoft SharePoint Server 2013 Advanced Solutions

ADS2013: App Development with SharePoint 2013

Course 10232: Designing and Developing Microsoft SharePoint Server 2010 Applications

DocAve 6 SDK and Management Shell

How to Install and Setup IIS Server

Getting Started With Your LearnDevNow Learning

DE-20489B Developing Microsoft SharePoint Server 2013 Advanced Solutions

Course MS55077A Project Server 2013 Development. Length: 5 Days

Intelligent Dashboards made Simple! Using Excel Services

POWERSHELL (& SHAREPOINT) This ain t your momma s command line!

Open source framework for interactive data exploration in server based architecture

Virto Workflow Scheduler For Microsoft SharePoint Release User and Installation Guide

Developing Microsoft SharePoint Server 2013 Advanced Solutions

This module explains the Microsoft Dynamics NAV architecture and its core components.

Developing Microsoft SharePoint Server 2013 Advanced Solutions MOC 20489

Hands-On Lab. Client Workflow. Lab version: Last updated: 2/23/2011

Developing Microsoft SharePoint Server 2013 Advanced Solutions

AppDev OnDemand Microsoft Development Learning Library

SharePoint Integration Framework Developers Cookbook

SharePoint 2010

SAV2013: The Great SharePoint 2013 App Venture

Microsoft Enterprise Search for IT Professionals Course 10802A; 3 Days, Instructor-led

1. Digital Literacy - Computer Security and Privacy 2. Partners in Learning: Organize and Manage the Use of ICT in Your Classroom 3.

WEB APPLICATION DEVELOPMENT. UNIT I J2EE Platform 9

Introduction to Active Directory. December 10th, pm Daniels 407

Describe how to utilize the Publishing API to access publishing settings and content.

GOA365: The Great Office 365 Adventure

HACKING AUTHENTICATION CHECKS IN WEB APPLICATIONS ASHISH RAO & SIDDHARTH ANBALAHAN

ITMC 2079 MCTS Configuring and Administering Microsoft SharePoint 2010

> Define the different phases of K2 development, including: understand, model, build, maintain and extend

Developing ASP.NET MVC 4 Web Applications MOC 20486

Transcription:

SHAREPOINT 2010 CLIENT SIDE OBJECT MODEL Phil Wicklund SharePoint FREEWARE

Agenda Introduction / Why COM? COM Architecture Coding Samples DEMO.NET COM Questions SharePoint FREEWARE

Intro to the SP 2010 COM Not enough web services in SP 2007 Rather than create more services, COM provides the complete API COM provides a consistent development experience: Windows Applications ASP.NET web sites Silverlight Applications JavaScript, www client side scripting SharePoint FREEWARE

COM Architecture

Assembly References SharePoint, Server Side Microsoft.SharePoint (ISAPI).NET clients Microsoft.SharePoint.Client (ISAPI) Silverlight clients Microsoft.SharePoint.Client.Silverlight (Layouts/clientbin) Javascript clients SP.js & SP.Core.js (Layouts) SharePoint FREEWARE

Comparable Objects Microsoft.SharePoint SPContext SPSite SPWeb SPList SPListItem SPField SPFile Client Object Models ClientContext Site Web List ListItem Field File

Starter Code Using Microsoft.SharePoint.Client;... using (ClientContext context = new ClientContext("http://intranet")) { Web web = context.web; context.load(web); context.executequery(); string title = web.title; } // ListCollection lists = web.lists;

Iterating through Lists in a Web using (ClientContext context = new ClientContext("http://intranet")) { Web web = context.web; context.load(web); context.load(web.lists); context.executequery(); } foreach(list list in web.lists) { //do something }

Efficiencies Don t be Lazy! Web web = context.web; context.load(web, wprop => wprop.title)); ListCollection lists = web.lists; IEnumerable<List> filtered = context. LoadQuery(lists.Include(l=>l.Title)); context.executequery(); foreach(list list in filtered) { } SharePoint FREEWARE

Working with List Items Web web = context.web; List list = context.web.lists. GetByTitle( List Title"); CamlQuery query = CamlQuery.CreateAllItemsQuery(); ListItemCollection items = lst.getitems(query); context.load(items); context.executequery(); foreach (ListItem item in items) { string title = item["title"]; }

Efficencies with List Items CamlQuery query = new CamlQuery(); query.viewxml = "<View><Query><Where><Eq> <FieldRef Name='Title'/><Value Type='Text'>Phil</Value> </Eq></Where></Query></View>"; ListItemCollection items = list.getitems(query); context.load(items, x => x.include( item => item["id"], item => item["title"], item => item.displayname));

Adding new List Items List list = context.web.lists. GetByTitle( List Title"); context.load(list); ListItem newitem = list.additem(new ListItemCreationInformation()); newitem["title"] = "My new item"; newitem.update(); context.executequery();

Silverlight & Asynchronous Calls private void Button_Click(object sender, RoutedEventArgs e) { // Load a bunch of stuff clientcontext.executequeryasync(success, failure); } private void success(object sender, ClientRequestSucceededEventArgs args) { RunQuery runquery= Run; this.dispatcher.begininvoke(runquery); } private delegate void RunQuery(); private void Run() { /* do something */ } private void failure(object sender, ClientRequestFailedEventArgs args) { /* do something */ }

.NET COM Demo Build a Console (client) Application Render all the List Titles from a remote SharePoint site. Create a new list item in a remote SharePoint site. SharePoint FREEWARE

QUESTIONS & COMMENTS Phil Wicklund SharePoint FREEWARE www.rbaconsulting.com