<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : C#, SQL and RecurrencePatterns</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : C#, SQL and RecurrencePatterns]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:31:29 +0000</pubDate>
  <lastBuildDate>Wed, 28 Sep 2005 04:53:26 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=2929</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[C#, SQL and RecurrencePatterns :   njcurrie wrote:So i guess the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2929&amp;PID=8802&amp;title=c-sql-and-recurrencepatterns#8802</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=756">gshawn</a><br /><strong>Subject:</strong> 2929<br /><strong>Posted:</strong> 28 September 2005 at 4:53am<br /><br /><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by njcurrie" alt="Originally posted by njcurrie" style="vertical-align: text-bottom;" /> <strong>njcurrie wrote:</strong><br /><br /><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">So i guess the only question i have left to ask is when the new release will be out?</SPAN></SPAN></td></tr></table> </P><P>I already sent you a PM about 10 minutes ago, but in case your popup blocker prevents you from seeing it: Version 9.80 was released a few hours ago. Check the Downloads section. </P><span style="font-size:10px"><br /><br />Edited by gshawn</span>]]>
   </description>
   <pubDate>Wed, 28 Sep 2005 04:53:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2929&amp;PID=8802&amp;title=c-sql-and-recurrencepatterns#8802</guid>
  </item> 
  <item>
   <title><![CDATA[C#, SQL and RecurrencePatterns :  Serge Sorry for the delay in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2929&amp;PID=8801&amp;title=c-sql-and-recurrencepatterns#8801</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1489">njcurrie</a><br /><strong>Subject:</strong> 2929<br /><strong>Posted:</strong> 28 September 2005 at 4:41am<br /><br /><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><P><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">Serge<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><O:P></O:P></SPAN></P><P><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">Sorry for the delay in the reply I got diverted onto another project.<O:P></O:P></SPAN></P><P><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">Thanks for the explanation, it now all makes perfect sense. I can proceed with the current version and incorporate Recurrence Exceptions at a later date&nbsp;when the new release is available.<BR><BR>So i guess the only question i have left to ask is when the new release will be out?<O:P></O:P></SPAN></P><P><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">Thanks for the help<O:P></O:P></SPAN></P><P><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">NJC<BR>Development Team<BR>The IT Manager Company<O:P></O:P></SPAN></P><P></SPAN>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by njcurrie</span>]]>
   </description>
   <pubDate>Wed, 28 Sep 2005 04:41:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2929&amp;PID=8801&amp;title=c-sql-and-recurrencepatterns#8801</guid>
  </item> 
  <item>
   <title><![CDATA[C#, SQL and RecurrencePatterns : Hi,  The calendar events objects...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2929&amp;PID=8718&amp;title=c-sql-and-recurrencepatterns#8718</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 2929<br /><strong>Posted:</strong> 22 September 2005 at 4:18pm<br /><br />Hi,<br /><br />The calendar events objects model, like tree is similar to the following:<br /> <br />&lt;Normal event&gt;<br />&lt;Recurrence master event&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;Recurrence pattern&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Recurrence occurrences list&gt;  - virtual events. They are not stored but generated by request.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Recurrence exception&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - instances stored inside pattern and used when generating occurrences. <br /> <br /> <br />Recurrence Exception event has a few special fields to connect to its occurrence:<br />RExceptionStartTimeOrig, RExceptionEndTimeOrig, and of cause RecurrencePatternID.<br />These fields mean original occurrence Start/End times (and of cause RecurrencePatternID is used there too)<br /> <br />The event object has such properties but they are not in the interface. You cannot set them directly.<br /> <br />When MakeAsRException() is called - event StartTime/EndTime is copied to RExceptionStartTimeOrig / RExceptionEndTimeOrig.<br /> <br />Other thing is that you have call AddEvent only for Normal and Master events.<br />For Exceptions/Occurrences you have to call ChangeEvent method.<br /> <br />The logic is that firstly you add master event with recurrence pattern. After that all occurrences virtually exist.<br /> <br />Then you call ChangeEvent() to change some occurrences and make them as exceptions.<br /> <br />EXAMPLE:<br />&nbsp;&nbsp;&nbsp;&nbsp;// sort your records by RecurrenceState to be shure that master event <br />&nbsp;&nbsp;&nbsp;&nbsp;// will be added before ocurrences.<br /> <br />&nbsp;&nbsp;&nbsp;&nbsp;// Master event processing<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp;pMasterEvent.CreateRecurrenceEx(pEve ntRS("RecurrencePatternID"));<br /> <br />&nbsp;&nbsp;&nbsp;&nbsp;// .....<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;// Exception event processing<br /> <br /><br />&nbsp;&nbsp;&nbsp;&nbsp;pEvent.StartTime = pEventRS("RExceptionStartTimeOrig");<br />&nbsp;&nbsp;&nbsp;&nbsp;pEvent.EndTime = pEventRS("RExceptionEndTimeOrig");<br />&nbsp;&nbsp;&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;&nbsp;pEvent.MakeAsRExceptionEx(pEventRS(" RecurrencePatternID"));<br /> <br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;pEvent.StartTime = pEventRS("StartDateTime");<br />&nbsp;&nbsp;&nbsp;&nbsp;pEvent.EndTime = pEventRS("EndDateTime");<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;pData.ChangeEvent(pEvent);<br /> <br />NOTE:<br />Unfortunately, following methods members for ActiveX control will be available only with the next release.<br /> &nbsp;&nbsp;&nbsp;&nbsp;CalendarEvent.CreateRecurrenceEx(Pat ternID As Long) <br /> &nbsp;&nbsp;&nbsp;&nbsp;CalendarEvent.MakeAsRExceptionEx(Pat ternID As Long)<br />&nbsp;&nbsp;&nbsp;&nbsp;CalendarRecurrencePattern.Id<br /> &nbsp;&nbsp;&nbsp;&nbsp;CalendarRecurrencePattern.MasterEven tId<br /> <br />Let me know whether this is clear.<br /><br />--<br />WBR,<br />Serge]]>
   </description>
   <pubDate>Thu, 22 Sep 2005 16:18:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2929&amp;PID=8718&amp;title=c-sql-and-recurrencepatterns#8718</guid>
  </item> 
  <item>
   <title><![CDATA[C#, SQL and RecurrencePatterns : HiHope someone can help me here...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2929&amp;PID=8709&amp;title=c-sql-and-recurrencepatterns#8709</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1489">njcurrie</a><br /><strong>Subject:</strong> 2929<br /><strong>Posted:</strong> 21 September 2005 at 3:10pm<br /><br /><P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Hi<BR><BR>Hope someone can help me here as I have run out of ideas what to do.<BR><BR>I am trying to integrate the Calendar Control into my C# Application.&nbsp; All my data is held within a SQL database.<BR><BR>I have created a single table that contains all the required fields for the Event and its Recurrence Pattern should it have one.</SPAN><SPAN style="FONT-SIZE: 8.5pt; FONT-FAMILY: Verdana"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Using a previous post in this forum as a guide I have created the necessary functions to handle the communication between the Calendar Control and my SQL Database.</SPAN><SPAN style="FONT-SIZE: 8.5pt; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></P><P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">For example to Load the events I loop through the database and create a new event for each record in the table. I add a recurrence Pattern if the ReccurenceState is set to RecurrenceMaster. <BR><BR>This works great, I can Add/Update/Delete Single Events and Events with Recurrence Patterns.<o:p></o:p></SPAN></P><P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Now my problem occurs when I create a RecurrenceException inside the calendar control; What&nbsp;I do is I&nbsp;save the event as a new record to the database with its ReccurenceState set to RecurrenceException.</SPAN></P><P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">When I try to load the RecurrenceException back into the Calendar Control. I can add it as an event no problem at all, I detect during the load that it is a RecurrenceException and run the <strong><SPAN style="FONT-FAMILY: Verdana">MakeAsRException() </SPAN></strong><strong><SPAN style="FONT-WEIGHT: normal; FONT-FAMILY: Verdana; mso-bidi-font-weight: bold">function</SPAN></strong><B style="mso-bidi-font-weight: normal"> </B>on the event. <BR><BR>What I can’t work out is how I connect the RecurrenceException to its original Event and RecurrencePattern. The original event displays as normal with the event that was edited to become the RecurrenceException displayed as normal<o:p></o:p></SPAN></P><P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">How&nbsp;do I add a Recurrence Exception to a Recurrence&nbsp;Pattern from an external database?<BR><BR>Any help here would be appreciated as this is the final&nbsp;thing I have to get working&nbsp;for my evaluation program to be complete.&nbsp;<o:p></o:p></SPAN></P><P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Thanks<o:p></o:p></SPAN></P><P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">NJC<BR>Development Team<BR>The IT Manager Company</SPAN></P>]]>
   </description>
   <pubDate>Wed, 21 Sep 2005 15:10:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2929&amp;PID=8709&amp;title=c-sql-and-recurrencepatterns#8709</guid>
  </item> 
 </channel>
</rss>