SharePoint Calendar List: Restrict the entry of the second item with the same From and To date options
1 answer
You will need to use a list event receiver and bind it to the ItemAdding event - http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitemeventreceiver.itemadding.aspx
There is a good tutorial here: http://msdn.microsoft.com/en-us/library/bb736146.aspx
And a good tool for attaching an event receiver - http://lirliron.blogspot.com/2007/08/moss-list-event-receiver-register_08.html
You can check against To and From and see if it has an item with the listed one and if the corresponding SPItemEventProperties.Cancel is set.
0
source to share