7
FEDSPUG – Washington, DC SHAREPOINT 2010 EVENT RECEIVERS SharePoint Development January 5 th , 2012 Timothy Ferro

FEDSPUG – Washington, DC SHAREPOINT 2010 EVENT RECEIVERS SharePoint Development January 5 th, 2012 Timothy Ferro

Embed Size (px)

Citation preview

Page 1: FEDSPUG – Washington, DC SHAREPOINT 2010 EVENT RECEIVERS SharePoint Development January 5 th, 2012 Timothy Ferro

FEDSPUG – Washington, DC

SHAREPOINT 2010EVENT RECEIVERS

SharePoint Development

January 5th, 2012

Timothy Ferro

Page 2: FEDSPUG – Washington, DC SHAREPOINT 2010 EVENT RECEIVERS SharePoint Development January 5 th, 2012 Timothy Ferro

AgendaMy BackgroundOverview of SharePoint 2010 Event

ReceiversFocus on List Item EventsDemoReferences

Page 3: FEDSPUG – Washington, DC SHAREPOINT 2010 EVENT RECEIVERS SharePoint Development January 5 th, 2012 Timothy Ferro

My BackgroundSharePoint Architect / Senior DeveloperBooz Allen Hamilton4+ Years Developing MOSS 2007 and

SharePoint 2010 SolutionsSpecializing in List Item Event Receivers,

jQuery, and Mapping Web Partswww.timferro.com@timferro

Page 4: FEDSPUG – Washington, DC SHAREPOINT 2010 EVENT RECEIVERS SharePoint Development January 5 th, 2012 Timothy Ferro

Overview of SharePoint 2010 Event Receivers

Main Types: Site Collection, Web, List, Field, Item, and Workflow

Main Events: Creation, Update, Deletion, Modification, Conversion, Attachment

Synchronous vs. AsynchronousBinding Event ReceiversDisabling

Page 5: FEDSPUG – Washington, DC SHAREPOINT 2010 EVENT RECEIVERS SharePoint Development January 5 th, 2012 Timothy Ferro

Focus on List Item EventsEvent Receiver Base ClassSPItemEventReceiver

Available Event Host TypesSPSiteSPWebSPListSPContentType

Supported EventsItemAddingItemAddedItemDeletingItemDeletedItemUpdatingItemUpdatedItemFileConvertedItemFileMovingItemFileMovedItemCheckingInItemCheckedInItemCheckingOutItemCheckedOutItemAttachmentAddingItemAttachmentAddedItemAttachmentDeletingItemAttachmentDeleted

Page 6: FEDSPUG – Washington, DC SHAREPOINT 2010 EVENT RECEIVERS SharePoint Development January 5 th, 2012 Timothy Ferro

DemoSetting up SharePoint 2010 Event

Receiver SolutionFeature Activation CodeEvent Receiver CodeEvent Receiver Examples

Update FieldsValidate DataCheck PermissionsAlerts and Emails“Workflow”Create Sites/Lists/Folders/Items