<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Infopath form connected to Sharepoint calendar: How to avoid event overlaps?</title><link>https://www.infopathdev.com:443/forums/thread/43395.aspx</link><pubDate>Wed, 24 Jun 2009 06:52:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43395</guid><dc:creator>symwongaton</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43395.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=43395</wfw:commentRss><description>Hi Lauren,
&lt;p /&gt;
I wouldn&amp;#39;t know either how to do it using CAML (as used in the article). My first instinct would be to write code that uses the SharePoint Object Model to retrieve all events that might fall in the period specified on the form, and then display a message to the user saying that the specified event overlaps with other events. As you may already know, a calendar is a list in SharePoint, so you can use list SharePoint OM methods on it just like any other SharePoint list. You could also use a SharePoint event handler or workflow (methods 4 and 5 in &lt;a href="http://www.bizsupportonline.net/blog/2008/12/5-ways-to-submit-an-infopath-form-to-a-sharepoint-list/"&gt;this post&lt;/a&gt;) to do the same thing, but with all of these methods, you&amp;#39;ll still have to write code that uses the SharePoint OM to do the check for overlapping events.</description></item><item><title>Infopath form connected to Sharepoint calendar: How to avoid event overlaps?</title><link>https://www.infopathdev.com:443/forums/thread/43201.aspx</link><pubDate>Fri, 19 Jun 2009 15:39:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43201</guid><dc:creator>corbetlp</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43201.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=43201</wfw:commentRss><description>&lt;p&gt;I followed this tutorial: &lt;a href="http://www.bizsupportonline.net/infopath2007/programmatically-add-item-sharepoint-calendar-infopath.htm"&gt;&lt;font color="#0033cc"&gt;http://www.bizsupportonline.net/infopath2007/programmatically-add-item-sharepoint-calendar-infopath.htm&lt;/font&gt;&lt;/a&gt; which works great for what I needed to do. However, while this works well for adding an event to my Sharepoint calendar, I do not know how to manipulate the form that I made from this tutorial&amp;nbsp;to prevent users from adding an event that would overlap with one already in the calendar. From my research, it involves something like event handlers but I am not familiar enough with Sharepoint or InfoPath to make this happen with the specific form that I have created from this tutorial.&amp;nbsp;&amp;nbsp;If someone could help me, I would greatly appreciate it.&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Lauren&lt;/p&gt;</description></item></channel></rss>