Tag Info

New answers tagged

1

I found some documentation referencing the above behavior and explains it. When attaching content-types to lists/libraries, the content-types event-handlers are automatically added to the list's event-handler collection. This it to support some basic list/library functionality which has been around since WSS 3.0 already. Even though all the event-handlers ...


1

I think your mistake is to not call properties.ListItem.SystemUpdate(); after setting the field value on the item: public override void ItemAdded(SPItemEventProperties properties) { string projectType = properties.ListItem["ProjectTypes"].ToString().Replace(" ", ""); string webUrl = properties.ListItem["ProjectUrl"].ToString(); string webTitle ...


1

For SharePoint 2013: properties.Cancel is now depreciated, use Status instead. Options for status are: CancelNoError Continue CancelWithError CancelWithRedirectUrl (Obsolete - Default list forms are committed through asynchronous XmlHttpRequests, so redirect urls specified in this way aren't followed by default.) Example: properties.ErrorMessage = "My ...



Top 50 recent answers are included