Post on 11-Jan-2016
www.supinfo.com
Copyright © SUPINFO. All rights reserved
Agenda
Introduction & Installation for developers
SharePoint Designer 2010
VS2010 Tools
List & Event Handler
DashBoard Developer
Visual WebParts
How to use the ribbon
Dialog framework & Status bar
Agenda (suite)
Linq To SharePoint
Client Object Model
Rest Services
SandBoxed Applications
Workflows novelties
Introduction & Installation
5
Become a super Become a super developer with developer with
SharePoint 2010SharePoint 2010
The SharePoint Platform
SharePoint Server CapabilitiesSharePoint Server Capabilities
Pages and User InterfacePages and User Interface
Web UIWeb UI
FrameworkFrameworkSilverlightSilverlight
Server APIsServer APIs
LINQLINQ
Connected Client APIsConnected Client APIs
RESTREST Client OMClient OM
Application LifecycleApplication LifecycleApplication Model (Sites)Application Model (Sites)
External ListsExternal Lists
Data Model ListsData Model Lists Content ManagementContent Management
Installation
Windows Server 2008, 2008 R2, 7
X64 bits (VMWare, Virtualisation, Natif)
VHD Boot (BCDEdit UI codeplex):
http://blogs.dotnet-france.com/juliend/post/SharePoint2010-Creer-une-machine-pour-developpeur.aspx
A new master page and new Technologies
Demo Introduction
SharePoint Designer 2010
SharePoint Designer 2010
Free product, Web expression range New tools
XSLT View List schema …
Improvements Workflow Designer Page Editor
A better integration in Pages
Demo SharePoint Designer
Visual 2010 Tools
14
Visual Studio 2010 SharePoint Tools
Develop/Unfold and debug SP projects
Packaging Explorer
Web Part Designer
Workflow Designer (WF) and Web Part
Package et Unfold your Sharepoint Projects
Generate WSP files for your sites in production
Use Server Explorer
Integrate your development in TFS
With VS2008 for SP2007
Visual Studio experience was limited
Visual Studio Extensions for WSS 1.3 March
Many tools coming from community (and so support problems, globalization…)
It was necessary to manage:
Manually CAML files
Know the arborescence of file “12”
Edit himself manifest.xml files
Generate his .wsp files
With VS2010 for SP2010
Developer experience increased
SharePoint Explorer
No need to have SharePoint on his computer
Basic integrated Tools
Migration tools of your project VS2008/WSS 3.0
Extensible
Benefits:
Abstraction of directory “14”
Abstraction of WSP generation
Less external utilities
SharePoint Explorer
Add-in for “Server Explorer” window
Easy to use
Practical for launching browser on the right page
F5 Key
What does it really do ?
1.Creation of .wsp file2.Feature Disable/Uninstall3.Old .wsp files removal4.Deployment of .wsp file5.Feature activation6.Automatic bond to the
process W3WP.EXE
Demo Visual Studio 2010 Tools
List & Event Handler
Novelties
New events MSF 4.0
WebAdding & WebProvisioned
ListAdding & ListAdded
ListDeleting & ListDeleted
MSF 4.0 can take up to 50 millions of elements in a list
Rational Lists & Joints
MSF 4.0 introduces reinforced relations with a “Lookup” field
Novelties :
Projected fields in “children” lists
Joints
Data’s integrity
Projected fields
Passage of list’s data from a parent one to a child one
The way to achieve this is the same as a “lookup” with WSS 3.0
Joints
Joints are tolerated
Available with API(s), CAML and SharePoint Designer
New properties for SPQuery:
SPQuery.Join
SPQuery.ProjectedFields
Use SPLinq
Demo Sharepoint List
Dashboard Developer
DashBoard Developer
Allows you to know your code’s performances :
How long does it take to execute ?
Which events are raised ?
…
Demo Dashboard Developer
Visual WebParts
Visual Web Parts
Allows to load an “usercontrol” in a “webpart” in an automatic way
Demo Visual WebParts
How to use the ribbon & the dialog framework
33
The ribbon :
Ribbon's controls
Basic
ButtonSplit buttonComboboxCheckboxToggle ButtonLabelTextboxCombo boxSpinnerTable controlColor picker
But also
“Drop Down” to have a subset
35
Status Bar and Notification bar
Status BarStatus Bar
Notification
Notification
36
The dialog framework
Demo Manipulation Ribbon
Demo Dialog Framework & Status Bar
Client Object Model
The OM Client
Subset of the Server OM
Bases to manipulate SharePoint Foundation: Webs, Lists, ListItems, etc.
An unified API
JavaScript
.net CLR
Silverlight CLR
Tolerated objects
Sites’ collection and Sites
Lists, List Items, Views, et list schema.
Files and directories
Web Parts
Security / Users
Content Types
Sites’ Templates
…
Linq-to-SharePoint
Customer sideCustomer side(.NET/Silverlight/
JavaScript)
Server sideServer side(WebParts, Event Handlers,
Workflows…)
Access to objects and/or data SharePoint 2010
Server Object Model
Web Services
REST APIsClient Object Model
Server Object Model
SharePoint Service
JavaScript Client
Silverlight Client
.NETClient
Exchanges XML/JSON
Client Object Model of SharePoint 2010
Demo OM Client
JavaScript OM
SP.js 380ko
SP.Core.js 13ko
SP.Runtime.js 68ko
Or
<SharePoint:ScriptLink runat="server" Name="sp.js"/>
Linq To Sharepoint
SQL Query
string cs =“Data Source=localhost;…..“;using (SqlConnection c = new
SqlConnection(cs)){ c.Open(); SqlCommand cmd = c.CreateCommand(cs); cmd.CommandType = CommandType.Text; cmd.CommandText = “SELECT * FROM…..”; SqlDataReader r = cmd.ExecuteReader();….
XML Query
XmlTextReader r = new XmlTextReader(“c:\data.xml”);While(r.Read()){ XmlNodeType nt = r.NodeType; switch(nt) { case XmlNodeType.Element: …. case XmlNodeType.Attribute: ….
2007-Style CAML Query
<Where> <Gt> <FieldRef Name='EndDate'/> <Value Type='DateTime'> <Today OffsetDays=\"-1\"/> </Value> </Gt></Where>
What is LINQ?
Language Integrated Query
Simple, Object - oriented
Relational data
Check at compiling
Advantages of IntelliSense
Unified syntax for all kinds of data
Demo Linq
LINQ to SharePoint
No CAML
Strongly typed
Microsoft.SharePoint.Linq.dll
Interlist Relations
Interlist requests
Model generation
Data modification
Pseudo mode “transactional” with method SubmitChanges()
Demo Linq to Sharepoint
REST Services
REST APIs
Use of REST on:
Data lists SharePoint
WCF Data Services
REST Architecture
Atom or JSON Sérialization
As a matter of fact, compatible with:
ASP.NET AJAX
PowerPivot
Java
Silverlight
Flash
…
ADO.NET Data Services
LINQ to SP doesn’t exist in Silverlight (even though the OM Client exists)
ListData.svc allows a total access in CRUD
Demo Astoria
SandBoxed Applications
61
Take notice of Take notice of non-secured non-secured
featuresfeatures
SandBoxed Applications
The code supports all basic templates:
Web Part
Event Receivers
Workflows
But limited to Microsoft.SharePoint
Restrictions
SPSite
SPWeb
SPList
SPListItem
Limitation of resources (memory, SQL, CPU)
No SPSite construction
No access possibilities to SPSecurity
Workflow Novelties
Workflow
Novelties
Display inside the browser
Workflows “out of the box” are personalizable
Demo Workflows
Silverlight & Sharepoint
Silverlight
Silverlight Web Part
Object Model Client in Silverlight
Silverlight is present almost everywhere
Demo Silverlight
70
Questions / Answers (?)Speech is yours
Thank you