Presentation is loading. Please wait.

Presentation is loading. Please wait.

Olaf Feldkamp Developer Platform Advisor Microsoft Switzerland blogs.msdn.com/swiss_dpe_team.

Similar presentations


Presentation on theme: "Olaf Feldkamp Developer Platform Advisor Microsoft Switzerland blogs.msdn.com/swiss_dpe_team."— Presentation transcript:

1 Olaf Feldkamp Developer Platform Advisor Microsoft Switzerland blogs.msdn.com/swiss_dpe_team

2 Introduction Web Parts Solution Deployment Lists Performance Conclusion

3 Database Web Server (IIS) Windows Workflow Foundation (.NET 3.0) ASP.NET 2.0 (Web Parts, Personalization, Master Pages, Provider Model for navigation, Membership,..) Windows Server 2003 or 2008 (with WSS SP1) Enterprise Content Manage- ment Portal Search InfoPath Forms Services Business Intelligence MOSS 2007 Colla- boration Applications (Portal Solutions) WSS 3.0 Storage Security Manage- ment Site Model API Topology Platform Services Search Server 2008 Express ASP.NET AJAX optional

4 Download SP1 or special WSS 3.0 with SP1 slipstream (32 or 64-bit) For MOSS 2007 also install MOSS 2007 SP1 SP1 includes Support to run WSS/MOSS on Windows Server 2008 ASP.NET AJAX compatibility and support for Web Parts New STSADM operations and properties > 60 hotfixes Also refreshes for WSS/MOSS SDKs available Details on SharePoint Product Group BlogSharePoint Product Group Blog

5 Web Platform Collaboration Store Doc Libs, Site Columns, Content Types, Lists, Views, Events, Versioning, Permissions Site Templates, Pages, Web Parts, Custom Field Types APIs, Web services, Features, Solutions Announcements, Presence, Contacts, Calendar, Project Tasks, Wikis, Doc Libs, Office Integration, Surveys, Discussions, Blogs, RSS, Mobility

6 WSS provisions SharePoint sites based on Site Definitions configurations WEBTEMP.XML Example Configs: Team Site Blank Site Basic Meeting Workspace Blog Located: 12\Template\1033\XML navigation bars modules list instances standard views default.aspx feature references ONET.XML (per Site Definition) Located: 12\Template\ SiteTemplates\ HelpDesk\XML SCHEMA.XML (per List Template) Located: 12\Template\Features\ AnnouncementsList\ Announce 12\Template\Features\ HelpDeskList\HelpDesk

7

8 End users can create and customize applications to a certain extent without the need of a Database or System admin, or Web developer Increased productivity with existing elements Auditing, ChangeLog, Search, Alerts, Web Services Data lists and document libraries incl. events and RSS Integration with Office Clients Scalable platform enables Software+Services scenarios Leverage existing.NET and ASP.NET skills Web 2.0 with ASP.NET AJAX and Silverlight Customer may require „runs on SharePoint“

9 Easy CRM (WSS based) SharePoint Consulting SharePoint Hosting

10 Introduction Web Parts Solution Deployment Lists Performance Conclusion

11 ASP.NET 2.0 Web Part Connections Web Part Properties,.. WSS 3.0 Recommended: use ASP.NET 2.0 Web Parts No built-in support for treating user controls (.ascx) as Web Parts Use DelegateControl or custom shim Compatibility for WSS 2.0 Web Parts

12 Released last month on MSDN, Visual Studio 2008 release planned for next JuneMSDN Solution Package editing SharePoint Solution Generator Content not supported: Some site and list templates, lookup fields, custom field types, some settings

13 Hello World Web Part and Debugging Web Part accessing custom Data Web Part Properties

14 SharePoint workflow development Workflow templates included in WSS SDK for Visual Studio 2005 Visual Studio 2008 includes a rich development environment for MOSS 2007 workflows >130 community SP projects: CodePlex.com Solution Packaging and Deployment STSDEVSTSDEV, SharePoint Solution Installer, WSPBuilderSharePoint Solution InstallerWSPBuilder SharePoint Developer Explorer SmartPart for SharePoint LINQ to SharePointLINQ to SharePoint,..

15 Install ASP.NET AJAX 1.0 (or.NET FW 3.5) Optional: Install ASP.NET AJAX Control Toolkit Install on each Web Front End (WFE) Server http://www.asp.net/ajax/ Modify web.config on each WFE Server Follow the steps at http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=3http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=3 Hint: Remember to add the ASP.NET AJAX to Master Page

16 AJAX SmartPart SharePoint DelegateControl

17 http://www.ssblueprints.net/sharepoint/

18 Introduction Web Parts Solution Deployment Lists Performance Conclusion

19 Farm: ≥ 1 web and app servers (one config DB) Web Application: IIS web site extended with WSS Site Collection: stored in one specific content DB Child Site Top-level Site Site Collection Web Application Farm SPFarm SPVirtual Server SPSiteSPWeb SPSiteSPWeb Admin Content Config DB Content DB

20 Feature Name ID Description Scope Receiver assembly Activation Dependencies Element Manifests Feature Name ID Description Scope Receiver assembly Activation Dependencies Element Manifests Feature.xmlElements.xml Custom Actions Custom Views Content Type Definitions Layouts Pages Modules (files) List Instances List Templates Event Receivers Delegate Controls Workflow Bindings Custom Actions Custom Views Content Type Definitions Layouts Pages Modules (files) List Instances List Templates Event Receivers Delegate Controls Workflow Bindings Scope Farm Web Application Site Collection Web Extend existing sites, instead of changing Site Templates Combination of lists, views, Web Parts, EventHandlers,..

21

22 SharePoint Web Front End Servers SharePoint Web Front End Servers Admin UI or stsadm.exe or OM “deploy” cmd retract deploy WSS Config DB add delete stsadm.exe Filename.wsp (WSS Solution Cab) Feature Manifests Template Files Assemblies

23 Solution Information Language pack Deployment Status Deployed to Scheduled Deployment Choose particular Web Application Warns admin of GAC install

24 Introduction Web Parts Solution Deployment Lists Performance Conclusion

25 Single-list query: SPQuery XML based (CAML Query) Community Tool: Caml Query Builder can be helpfulCaml Query Builder New in WSS 3.0 SPSiteDataQuery class Cross-site, multiple list queries Indexed fields Important SPSiteDataQuery properties Lists (the FROM) Query (the WHERE and ORDER BY) ViewFields (the SELECT) Webs ( Site, SiteCollection or Recursive ) Running the query SPWeb.GetSiteData(SPSiteDataQuery)

26

27 If you do a lot of list queries: evaluate LINQ to Objects LINQ is especially interesting when you need to join lists var qry = from SPListItem cust in myCustomerList.Items join SPListItem docs in myDocLib.Items on (string)cust["Title"] equals (string)docs["Customer"] select new { Customer = (string)cust["Title"], DocName = (string)docs[“DocName"], Year = (double)docs["FiscalYear"] };

28 Supported on regular lists as well as document libraries Accessing the current list item prop.BeforeProperties (only doc libs) prop.AfterProperties Synchronous and asynchronous list events Multiple handlers on a list

29 Item Events SPItemEventReceiver ItemAdded/ing ItemAttachmentAdd/ing ItemAttachmentDeleted/ing ItemChecked/ingIn ItemChecked/ingOut ItemDeleted/ing ItemFileConverted ItemFileMoved/ing ItemUnchecked/ingOut ItemUnchecking/Out ItemUpdated/ing List Events SPListEventReceiver FieldAdded/ing FieldDeleted/ing FieldUpdated/ing Web Events SPWebEventReceiver SiteDeleted/ing WebDeleted/ing WebMoved/ing

30

31 Introduction Web Parts Solution Deployment Lists Performance Conclusion

32 SPSite and SPWeb are managed wrappers (2 KB) to unmanaged classes (1 - 2 MB) Always use Dispose() or the using clause Small managed objects don’t put pressure on garbage collector (GC)  don’t rely on GC! MSDN articles (must read!) Best Practices: Common Coding Issues When Using the SharePoint Object Model Best Practices: Using Disposable Windows SharePoint Services Objects

33 Introduction Web Parts Solution Deployment Lists Performance Conclusion

34 ASP.NET 2.0 Master Pages, ASP.NET Server and User Controls, ASP.NET Web Parts, ASP.NET Provider Model Windows Workflow Foundation Building workflows, custom activities interacting with SharePoint XML technologies (CAML) Used for queries and most schema definitions: Site Definitions, lists, fields, Content Types,.. WSS 3.0 and MOSS 2007 APIs and Web Services Microsoft (and 3 rd party) developer tools for WSS SharePoint Features and SharePoint Solutions

35

36 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

37 The following slides were added to provide some useful additional information

38 Goals Usable & Robust Document Management for the masses Powerful APIs Features Per-item security Versioning Recycle bin (2-stage) List capacity improvements (width and length) List indexing and cross-list queries Content Types and Site Columns Forced Check-in/out for documents Embedded Windows Workflow Foundation

39 Metadata – Collection of Site Columns Document template Workflow Settings Parent Content Type Scope MOSS 2007 only Document Information Panel Settings Policy Settings

40 Web Parts can be deployed to either the GAC +Assemblies run in any web app, must be signed +Assemblies run with Full Trust -IIS reset required after recompilation or to the \bin directory of relevant web apps +Partial trust ( WSS_Minimal or WSS_Medium ) +Recommended for best security: Create a new trust policy file for each assembly, point your web.config file at the new file -More configuration needed Web Parts including Security on MSDNMSDN

41 Examples AHV field, Ext. data lookup Base type it is inherited from (e.g. SPFieldText) Defines the SQL storage and defaults like rendering Field Type Class Defines data validation Field Controls Define rendering Field Type Defines field properties

42 Assume a SPWeb.Webs collection consists of 10 subsites (1 - 2 MB) and you iterate through this collection

43 Microsoft Office Interactive Developer MapMicrosoft Office Interactive Developer Map (Version 2) WSS 3.0: Updated SDK Download Online Microsoft Press Inside Microsoft Windows SharePoint Services 3.0


Download ppt "Olaf Feldkamp Developer Platform Advisor Microsoft Switzerland blogs.msdn.com/swiss_dpe_team."

Similar presentations


Ads by Google