25
Building a Solution Brick by Brick Becky Isserman, Planet Technologies, http://www.mosslover.com

Building a SharePoint Solution Brick By Brick

Embed Size (px)

DESCRIPTION

In this SP

Citation preview

Page 1: Building a SharePoint Solution Brick By Brick

Building a Solution Brick by BrickBecky Isserman,Planet Technologies,http://www.mosslover.com

Page 2: Building a SharePoint Solution Brick By Brick

Tools• Visual Studio 2010• SharePoint Designer 2010• InfoPath Designer 2010• SharePoint 2010

Page 3: Building a SharePoint Solution Brick By Brick

Visual Studio 2010• Several New Built In Templates• Some XML Intellisense• New Feature Design• Visual Web parts• WSP Package Imports• No DDF Files

Page 4: Building a SharePoint Solution Brick By Brick

Starting a New Solution• Create a blank solution• Popup• Sandbox• Farm

• Stapling very easy to add – button• Automatically creates feature.xml File• Can add features easy in the guid

• Automatically creates package• Can add features to package easy

Page 5: Building a SharePoint Solution Brick By Brick

Demo• Create New Blank Solution

Page 6: Building a SharePoint Solution Brick By Brick

Site Columns• No template available• No Intellisense for column type• GUID for columns not auto generated• Use GuidGen.exe• Webpage that auto-generates guids

• Lots of copy and paste

Page 7: Building a SharePoint Solution Brick By Brick

Demo• Create Site Columns

Page 8: Building a SharePoint Solution Brick By Brick

Content Type• Template available• Drop down list with all content types on the development site• Can use custom content type to generate off• Need to make sure custom content type is deployed if there is a

dependency• ID automatically created

Page 9: Building a SharePoint Solution Brick By Brick

Demo• Content Type Creation

Page 10: Building a SharePoint Solution Brick By Brick

List Instance• Template available• Choose your new content type in the drop down• Automatically adds content type binding

• No way in xml to remove Item Content Type

Page 11: Building a SharePoint Solution Brick By Brick

Demo• List Instance

Page 12: Building a SharePoint Solution Brick By Brick

Feature Receiver• Create a Feature• Right click on the feature for “Event Receiver”• Five Receivers• FeatureActivated• FeatureDeactivating• FeatureUpgrading - New• FeatureUninstalling• FeatureInstalled

• Can create manifest properties easily

Page 13: Building a SharePoint Solution Brick By Brick

Demo• Feature Receiver

Page 14: Building a SharePoint Solution Brick By Brick

Features and Packages• Only creates one feature• Must create more features by right clicking on feature folder

• Creates all elements files as elements.xml• No folders to store different item types• Must go into features and change names• Adds all the items to the last feature created – must remove

and re-arrange

Page 15: Building a SharePoint Solution Brick By Brick

Features and Packages• If new project templates are added wrong they cannot be

removed• Huge deployment issues

• Need to re-learn SharePoint Development again• New event receivers available for Sites, Libraries, and Lists• Saves time on development

Page 16: Building a SharePoint Solution Brick By Brick

InfoPath 2010 List Forms• Must Turn on Enterprise Features• Does not work with SharePoint Server Standard or Foundation• Relies on Forms Server

• New button on ribbon to “Customize Form”• Cannot Publish Form again if moved• Must re-open on new site and edit

Page 17: Building a SharePoint Solution Brick By Brick

InfoPath 2010 List Forms• Quick Publish and Publish work• Lookup Fields Do Not Work well• Can create text fields with a drop down to a data source

• Restoring a Template• InfoPath Data Sources are relative to new site• Works 100%

• Repeating Sections not friendly with forms• Cannot use with SSL without certificate

Page 18: Building a SharePoint Solution Brick By Brick

Demo• Create InfoPath Form

Page 19: Building a SharePoint Solution Brick By Brick

SharePoint Designer 2010• Can create “Reusable Workflows”• Site Collection Workflows

• Can create “Globally Reusable Workflows”• Reusable in all Site Collections• Can save as a template for deployment as a sandbox or farm

solution• Cannot use lookups

Page 20: Building a SharePoint Solution Brick By Brick

SharePoint Designer 2010• Issue with Globally Reusable Workflows• Sometimes dates are null• Fix – List workflows

• List workflows are not reusable• Attached only to lists

• Site workflows

Page 21: Building a SharePoint Solution Brick By Brick

SharePoint Designer 2010• Can add custom InfoPath 2010 Forms• Have to update each form when workflow variables updated

• Can create workflows in Visio Premium• Can import reusable workflows to Visual Studio 2010• Cannot reference other lists in Globally Reusable Workflows

Page 22: Building a SharePoint Solution Brick By Brick

SharePoint Designer 2010• New Actions• Log History• Approval• Collect Feedback• Find Manager of User if field populated in profiles

• Workflows are saved in Site Templates for reuse• Moving a template does not break workflows

Page 23: Building a SharePoint Solution Brick By Brick

Demo• SharePoint Designer Workflow

Page 24: Building a SharePoint Solution Brick By Brick

Conclusion• Create InfoPath Form not a List Form• Deploy template and any other packages• Activate Feature• Activate template• Choose template• Test Solution

Page 25: Building a SharePoint Solution Brick By Brick

Thank You and Contact Info• Name: Becky Isserman• Email: [email protected]• Blog: http://www.mosslover.com• Twitter: @mosslover• Company: Planet Technologies• Company Url: http://www.go-planet.com