Session 2-Mark Michaelis-SharePoint FireStarter-getting started in 2011 with sharepoint 2010 development
1. Getting Started in 2011 withSharePoint 2010 Development Mark Michaelis Chief Technical Architect, Author & Trainer Allen Greaves SharePoint Code Ninja
4. SharePoint 2010 for Developers First Class SharePoint Developer Tools Faster Solution Debugging & Tuning Choice of Development Workstation Developer Productivity Comprehensive Data Access Line of Business Integration Workflow Advances Rich Platform Services Application Lifecycle Management Standardized Solution Packaging Deploy with Agility and Stability Flexible Deployment
12. Developer Tools for SharePoint Develop, Deploy and Debug Web Part, BDC and Workflow designers Package and Deploy SharePoint projects Generate WSP for Production Deployment View SharePoint site in Server Explorer Team Foundation Server Integration Visual Studio 2010 Web Part Designer Broad SharePoint Support Support for SharePoint Sandboxed Solutions Import WSP from SharePoint Designer including Workflow Build Workflow Steps for SharePoint Designer Extensibility for Development of Additional SharePoint Artifacts SharePoint Business Connectivity Services support Project Types
14. SharePoint Designer 2010 Free for creating and editing SharePoint artifacts New Tools BDC Entities List Schema Custom Actions Task / Approval Designer Improved Tools Workflow Designer Page Editor SharePoint Designer work can be upgraded to Visual Studio 2010 “Save site as template” in SharePoint Site Settings creates WSP WSP imports into Visual Studio 2010 as new project
16. SharePoint List with External Data Read / Write SharePoint Foundation Built on the SharePoint 2007 Business Data Catalog Office Apps Client Runtime Offline Operations Cache Design Tools SharePoint Visual Studio 2010 Enterprise Search Development Platform Business Intelligence Enterprise content mgmt Collaboration social SharePoint Designer 2010 ECT Store Runtime Security Solution Packaging Out of the box UI Web 2.0 DB WCF Web Service .NET LOB Business Connectivity Services
17. SharePoint List Improvements Collaborative Data Store Relationships with Cascade or Block Transacted Cascading Deletion Restriction of Deletion Validation with Excel Like Formula Formula-based Validation (eg =len(Title)==8) Ensure Uniqueness Lookup to Multiple Columns Versionable Lists List Index Auto-Creation Scalability and Performance List Query Throttling And we keep from SharePoint 2007 Self Service List Creation Out of the Box List User Interface Built in Authorization Forms
19. XSLT Views for Lists Replaces CAML for Views CAML Still Used for Queries Better Performance Easier edit in SPD Ribbon UX: sort/filter/group, conditional formatting,… Simpler Coding Experience Standard language, shared default XSLT XSLT-based views are now default SharePoint Lists External Lists
38. Site Owner Customization Site Icon, Title and Description Navigation Quick Launch Top Navigation Custom lists
39. Themes in 2010 Colors + Fonts in Open XML Theme Format CSS files are marked with “variables” Comment-based design -> Standards Only one CSS file -> Performance Make existing designs theme-compatible
40. Benefit: More options Site owners Choose from available themes SharePoint Server: Customize themes in-browser Supported in all core SharePoint CSS Designers Can still create designs from scratch Design themes for existing designs IT / Developer Control over available themes Public API
43. Commands batched for PerformanceSharePoint Data Client Application .NET CLR Silverlight CLR JavaScript
44. Talking to SharePoint Web Services Advanced Operations SharePoint Server Operations Web Services More coverage Client Object Model Site, nav, security services Very flexible REST Easiest to use For fixed list schema Rendering Data to Page Client OM Advanced List Operations Site Operations Security REST Working with list data, fixed schema Rendering Data to Page Requires code on site/on server
45. LINQ to SharePoint Entity based programming Strong Types and Intellisense Supports List Joins and Projections Join lists on lookup field between them Join multiple lists (A->B->C) Project any field from joined list in a query without changes in list schema from order indata.Orderswhereorder.Customer.City.Name== "London“selectorder;
46. Query Syntax varquery = from list in clientContext.Web.Lists where list.Title != null select list; varresult = clientContext.LoadQuery(query); clientContext.ExecuteQuery();
47. Major Objects in Client Object Model Site Web ContentType Change List Navigation Form NavigationNode View UserCustomAction Field RoleDefinition ListItem User Interface RoleAssignment Data and Schema Folder WorkflowAssociation Logic File WorkflowTemplate Security WebPart
48. Client Object Model Sample .NET ClientContext context = new ClientContext("http://server"); Web site = context.Web; context.Load(site); context.ExecuteQuery(); site.Title = site.Title + " and Client OM"; site.Update(); context.ExecuteQuery();
51. Accessing Data: Today SharePoint Data Server Application SharePoint API Web Service Client Application
52. REST APIs ADO.NET Data Services REST Protocols Atom, JSON feeds SharePoint list data and Excel spreadsheets Integration with growing set of Microsoft REST Technologies
53. SharePoint Events Improvements Events Project Templates in Visual Studio 2010 After-Synchronous Events Simpler Event Behavior Site-scoped events Web creation events List creation events More User Interface Control Custom Error Pages
54. Workflow Improvements Visual Studio 2010 Initiation and Association Forms New Workflow Design Surface in SPD Import SPD Workflows into Visual Studio Build SPD Actions in Visual Studio Visio 2010 Workflow Design Browser Based Visualization High Privilege Workflows Control Where Service Runs Site Workflows Reusable Declarative Workflows List Workflow Event Receivers Pluggable Workflow Services Performance and Scale Fully Customizable OOB Workflow Approval Designer
55. Silverlight 3 and SharePoint 2010 Media Player Web Part Organization Browser List and Site Creation Office Web Applications Silverlight Web Part Simple way to upload Silverlight CLR compatible Client Object Model Call SharePoint API’s REST APIs Simplifies List data access Support for remotely hosted Silverlight applications Delegated authentication/application principals
56. Sandboxed Solutions Security & Stability Security & Stability Essential Agility Essential Stability BusinessAgility BusinessAgility Easy Deployment Iterative Development Access To Shared Servers SharePoint Online Safe for Other Users Limited API Access Monitored Resources Separate Process Site Collection Limits
58. WSP as the SharePoint Installer WSS Solution Package (WSP) Visual Upgrade from version to version SharePoint UI Save To Template Better-defined Upgrade Semantics Declarative upgrade mappings Upgrade callouts for features Application discovery in SharePoint Sites WSPs as unified developer format Works in both site collections and on machine