[英]SharePoint 2010 and SQL Server 2008
I am trying to manipulate SharePoint's default calendar to add, edit and delete items and use SQL Server as the data source rather than SharePoint's database. 我试图操纵SharePoint的默认日历来添加,编辑和删除项目,并使用SQL Server作为数据源而不是SharePoint的数据库。 I have worked through the last two days of using SPList and SPListItems but I keep ending up at the same problem.
在使用SPList和SPListItems的最后两天,我已经完成工作,但是我仍然遇到相同的问题。 Once a user clicks +add on SharePoint's calender UI, I want to be able to store that information from the user into SQL Server rather than SharePoint.
用户在SharePoint的日历UI上单击+添加后,我希望能够将用户的信息存储到SQL Server中,而不是SharePoint中。 I've looked through a bunch of MSDN libraries, blogs and other google searches and nothing turns up.
我浏览了一堆MSDN库,博客和其他Google搜索,但没有发现任何问题。 If anyone has done something similar or can help point in the right direction, it would be greatly appreciated.
如果有人做了类似的事情或可以帮助指出正确的方向,将不胜感激。
You need write an Event Receiver for the ItemAdding & ItemUpdating events and attach it to the List(in this case Calendar) and write the code to persist the data to your custom SQL DB. 您需要为ItemAdding和ItemUpdating事件编写一个事件接收器,并将其附加到列表(在本例中为Calendar),然后编写代码以将数据持久保存到自定义SQL DB。
http://msdn.microsoft.com/en-us/library/gg252010.aspx http://msdn.microsoft.com/en-us/library/gg252010.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.