<?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 : Create &#069;vent Excepti&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Create &#069;vent Excepti&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 02:59:31 +0000</pubDate>
  <lastBuildDate>Sun, 12 Feb 2006 12:02:32 +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=3576</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[Create &#069;vent Excepti&#111;n : Thnks. it works now. We are all...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10936&amp;title=create-event-exception#10936</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 3576<br /><strong>Posted:</strong> 12 February 2006 at 12:02pm<br /><br /><P>Thnks. it works now.</P><P>We are all looking foward for version 10.</P><P>Thnks <IMG src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></P><P>WaaZ</P>]]>
   </description>
   <pubDate>Sun, 12 Feb 2006 12:02:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10936&amp;title=create-event-exception#10936</guid>
  </item> 
  <item>
   <title><![CDATA[Create &#069;vent Excepti&#111;n : Hi WaaZ,Some notes about your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10935&amp;title=create-event-exception#10935</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3576<br /><strong>Posted:</strong> 12 February 2006 at 11:45am<br /><br />Hi WaaZ,<br><br>Some notes about your code.<br>&nbsp;<br>// Better to use CreateEvent here<br>//CalendarEvent excepEv = CalendarControl.DataProvider.CreateEventEx(masterEv.Id);<br>CalendarEvent excepEv = CalendarControl.DataProvider.CreateEvent();<br>&nbsp;<br>// change status and copy dates only<br>excepEv.MakeAsRExceptionEx(RecurEv.Id);<br>&nbsp;<br>// use ChangeEvent instead of AddEvent.<br>//CalendarControl.DataProvider.AddEvent(excepEv);<br>&nbsp;<br>// This call add the event in the collection in <br>// masterEv.RecurrencePattern.Exceptions. <br>// (I mean DataProvider internal copy of masterEv)<br>CalendarControl.DataProvider.ChangeEvent(excepEv);<br>&nbsp;<br><span style="color: rgb(255, 0, 0);">!!!</span><br><span style="color: rgb(153, 0, 0);">// comment this line please;</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);">// this call kill your exception! </span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);">// CalendarControl.DataProvider.ChangeEvent(masterEv);</span><br style="color: rgb(153, 0, 0);">&nbsp;<br><span style="color: rgb(0, 102, 0);">// update your instance</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">masterEv = CalendarControl.DataProvider.GetEvent(masterEv.Id);</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">//and check there.</span><br style="color: rgb(0, 102, 0);"><br style="color: rgb(0, 102, 0);">_________________<br><br>Below is a sample for you. Add these lines to standard Calendar VB sample application to the end of Form_Load() handler for frmMain.<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; '---------------------------------------------<br>&nbsp;&nbsp;&nbsp; Dim dtTooday As Date<br>&nbsp;&nbsp;&nbsp; dtTooday = Date<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Dim masterEv As CalendarEvent<br>&nbsp;&nbsp;&nbsp; Dim recPattern As CalendarRecurrencePattern<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Set masterEv = CalendarControl.DataProvider.CreateEvent<br>&nbsp;&nbsp;&nbsp; Set recPattern = masterEv.CreateRecurrence<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; masterEv.Subject = "Recurrence for WaaZ"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; recPattern.StartTime = #3:00:00 PM#<br>&nbsp;&nbsp;&nbsp; recPattern.DurationMinutes = 60<br>&nbsp;&nbsp;&nbsp; recPattern.StartDate = dtTooday<br>&nbsp;&nbsp;&nbsp; recPattern.EndAfterOccurrences = 10<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; recPattern.Options.RecurrenceType = xtpCalendarRecurrenceDaily<br>&nbsp;&nbsp;&nbsp; recPattern.Options.DailyIntervalDays = 1<br>&nbsp;&nbsp;&nbsp; recPattern.Options.DailyEveryWeekDayOnly = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; masterEv.UpdateRecurrence recPattern<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; CalendarControl.DataProvider.AddEvent masterEv<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; '**************************<br>&nbsp;&nbsp;&nbsp; Dim excepEv As CalendarEvent<br>&nbsp;&nbsp;&nbsp; Set excepEv = CalendarControl.DataProvider.CreateEvent()<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ' original times<br>&nbsp;&nbsp;&nbsp; excepEv.StartTime = DateAdd("d", 1, dtTooday) + #3:00:00 PM#<br>&nbsp;&nbsp;&nbsp; excepEv.EndTime = DateAdd("n", 60, excepEv.StartTime)<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; excepEv.MakeAsRExceptionEx recPattern.Id<br>&nbsp;&nbsp;&nbsp; ' new times&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; excepEv.StartTime = DateAdd("d", 1, dtTooday) + #2:00:00 PM#<br>&nbsp;&nbsp;&nbsp; excepEv.EndTime = DateAdd("n", 260, excepEv.StartTime)<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; excepEv.Subject = "Excep Ev (for WaaZ)"<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; CalendarControl.DataProvider.ChangeEvent excepEv<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; CalendarControl.Populate<br>&nbsp;&nbsp;&nbsp; CalendarControl.RedrawControl<br><br>_______________<br><br>--<br>WBR,<br>Serge <br>]]>
   </description>
   <pubDate>Sun, 12 Feb 2006 11:45:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10935&amp;title=create-event-exception#10935</guid>
  </item> 
  <item>
   <title><![CDATA[Create &#069;vent Excepti&#111;n : The problem with the code is actually...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10933&amp;title=create-event-exception#10933</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 3576<br /><strong>Posted:</strong> 12 February 2006 at 6:08am<br /><br /><P>The problem with the code is actually not to do with the time, since I've had a temporary DateTime variable to make sure that the same time is used for the recurrencePattern and the exception event.</P><P>The actual problem in the code is that <FONT size=2><strong>MakeAsRExceptionEx</strong> does not put the event in the collection in <FONT size=2>masterEv.RecurrencePattern.Exceptions. This means that the provided code result in masterEv not having an instance of EventEx in the collection of its exceptions.</FONT></FONT></P><P><FONT size=2><FONT size=2>the code: *******************************</FONT></FONT></P><P><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</P><FONT size=2><FONT size=2><FONT size=2><P></FONT><FONT color=#008080 size=2>CalendarEvent</FONT><FONT size=2> masterEv = CalendarControl.DataProvider.CreateEvent();</P><P></FONT><FONT color=#008000 size=2>//DateTime tempdate = DateTime.Now;</P></FONT><FONT size=2><P>masterEv = CalendarControl.DataProvider.CreateEvent();</P><P>masterEv.Subject = </FONT><FONT color=#800000 size=2>"Master Ev"</FONT><FONT size=2>;</P><P>masterEv.Location = </FONT><FONT color=#800000 size=2>"Master Loca"</FONT><FONT size=2>;</P><P></FONT><FONT color=#008080 size=2>CalendarRecurrencePattern</FONT><FONT size=2> RecurEv = masterEv.CreateRecurrence();</P><P></FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2> dtStart = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>(</FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now.Year, </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now.Month, </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now.Day, 13, 8, 0);</P><P></FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2> dtRecurencePattern_Start = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>(</FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now.Ticks);</P><P></FONT><FONT color=#008000 size=2>// duration</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>// RecurEv.StartTime = DateTime.Now;</P></FONT><FONT size=2><P>RecurEv.DurationMinutes = 60;</P><P></FONT><FONT color=#008000 size=2>// period</P></FONT><FONT size=2><P>dtRecurencePattern_Start = </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now.AddDays(-4);</P><P>RecurEv.StartDate = dtRecurencePattern_Start;</P><P>dtRecurencePattern_Start = </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now.AddDays(10);</P><P>RecurEv.StartTime = dtRecurencePattern_Start;</P><P>RecurEv.EndDate = dtRecurencePattern_Start;</P><P>RecurEv.Options.RecurrenceType = </FONT><FONT color=#008080 size=2>CalendarRecurrenceType</FONT><FONT size=2>.xtpCalendarRecurrenceDaily;</P><P>RecurEv.Options.DailyEveryWeekDayOnly = </FONT><FONT color=#0000ff size=2>false</FONT><FONT size=2>;</P><P>RecurEv.Options.DailyIntervalDays = 1;</P><P>masterEv.UpdateRecurrence(RecurEv);</P><P>CalendarControl.DataProvider.AddEvent(masterEv);</P><P></P><P></FONT><FONT color=#008000 size=2>/************/</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>/************/</P></FONT><FONT size=2><P></P><P></FONT><FONT color=#008080 size=2>CalendarEvent</FONT><FONT size=2> excepEv = CalendarControl.DataProvider.CreateEventEx(masterEv.Id);</P><P>excepEv.StartTime = dtRecurencePattern_Start.AddDays(-10);</P><P>excepEv.EndTime = dtRecurencePattern_Start.AddDays(-10).AddMinutes(60);</P><P>excepEv.Subject = </FONT><FONT color=#800000 size=2>"Excep Ev"</FONT><FONT size=2>;</P><P>excepEv.MakeAsRExceptionEx(RecurEv.Id);</P><P></P><P>CalendarControl.DataProvider.AddEvent(excepEv);</P><P>CalendarControl.DataProvider.ChangeEvent(masterEv);</P><P>&nbsp;</P><P>*******************************************</P><P>I've also tried playing around with the ChangeEvent, AddEvent and CreateEventEx and the above code is the one that works to the closest.</P><P>Thnks</P><P>WaaZ</P></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Sun, 12 Feb 2006 06:08:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10933&amp;title=create-event-exception#10933</guid>
  </item> 
  <item>
   <title><![CDATA[Create &#069;vent Excepti&#111;n : Please, can I have a sample that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10920&amp;title=create-event-exception#10920</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 3576<br /><strong>Posted:</strong> 10 February 2006 at 6:14am<br /><br /><P>Please, can I have a sample that demonstrates how this can be achieved.</P><P>Thanks</P><P>WaaZ</P>]]>
   </description>
   <pubDate>Fri, 10 Feb 2006 06:14:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10920&amp;title=create-event-exception#10920</guid>
  </item> 
  <item>
   <title><![CDATA[Create &#069;vent Excepti&#111;n : Hi,  Some notes below:  1. You...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10796&amp;title=create-event-exception#10796</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3576<br /><strong>Posted:</strong> 03 February 2006 at 11:47am<br /><br />Hi,<br /><br />Some notes below:<br /><br />1.<br />You don't need CreateEventEx here.<br />&nbsp;&nbsp;&nbsp;&nbsp;CalendarEvent excepEv = CalendarControl.DataProvider.CreateEventEx(masterEv.Id);<br />Better to use CreateEvent.<br /> <br />2.<br />This call adds exception.<br />  CalendarControl.DataProvider.AddEvent(excepEv);<br /> <br />But this call kills all your exceptions:<br />  CalendarControl.DataProvider.ChangeEvent(masterEv);<br /> <br />Are you sure you need this call???<br /> <br />-----<br />Master event contains recurrence pattern object.<br />Pattern contains a collection of exceptions (which is empty in the beginning).<br /> <br />After call AddEvent(masterEv) data provider store a copy of master event object (with Pattern).<br /> <br />When you call AddEvent(excepEv) - data provider finds master event and adds exception to it's pattern collection of exceptions.<br /> <br />After call ChangeEvent(masterEv) - data provider updates it's copy of master event. But your masterEv object instance has no exceptions in it's collection.<br /> <br />3. <br />Using DateTime.Now does not let you debug this peace of code.<br />I mean it will return different values for different lines.<br /><br /><br />--<br />WBR,<br />Serge]]>
   </description>
   <pubDate>Fri, 03 Feb 2006 11:47:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10796&amp;title=create-event-exception#10796</guid>
  </item> 
  <item>
   <title><![CDATA[Create &#069;vent Excepti&#111;n : Hi serge, I&amp;#039;ve tried this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10770&amp;title=create-event-exception#10770</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 3576<br /><strong>Posted:</strong> 02 February 2006 at 9:24am<br /><br /><P>Hi serge,</P><P>I've tried this in my code and the result is that it is having an exception and its not overwriting the one that occurs that same day and same time. How do I make it overwrite a recurrence?</P><FONT size=2><P></FONT><FONT color=#008080 size=2>CalendarEvent</FONT><FONT size=2> masterEv = CalendarControl.DataProvider.CreateEvent();</P><P></FONT><FONT color=#008000 size=2>//DateTime tempdate = DateTime.Now;</P></FONT><FONT size=2><P>masterEv = CalendarControl.DataProvider.CreateEvent();</P><P>masterEv.Subject = </FONT><FONT color=#800000 size=2>"Master Ev"</FONT><FONT size=2>;</P><P>masterEv.Location = </FONT><FONT color=#800000 size=2>"Master Loca"</FONT><FONT size=2>;</P><P></FONT><FONT color=#008080 size=2>CalendarRecurrencePattern</FONT><FONT size=2> RecurEv = masterEv.CreateRecurrence();</P><P></FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2> dtStart = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>(</FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now.Year, </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now.Month, </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now.Day, 13, 8, 0);</P><P></FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2> dtRecurencePattern_Start = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>(</FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now.Ticks);</P><P></FONT><FONT color=#008000 size=2>// duration</P></FONT><FONT size=2><P>RecurEv.StartTime = </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now;</P><P>RecurEv.DurationMinutes = 60;</P><P></FONT><FONT color=#008000 size=2>// period</P></FONT><FONT size=2><P>dtRecurencePattern_Start = </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now.AddDays(-4);</P><P>RecurEv.StartDate = dtRecurencePattern_Start;</P><P>dtRecurencePattern_Start = </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now.AddDays(10);</P><P>RecurEv.EndDate = dtRecurencePattern_Start;</P><P>RecurEv.Options.RecurrenceType = </FONT><FONT color=#008080 size=2>CalendarRecurrenceType</FONT><FONT size=2>.xtpCalendarRecurrenceDaily;</P><P>RecurEv.Options.DailyEveryWeekDayOnly = </FONT><FONT color=#0000ff size=2>false</FONT><FONT size=2>;</P><P>RecurEv.Options.DailyIntervalDays = 1;</P><P>masterEv.UpdateRecurrence(RecurEv);</P><P>CalendarControl.DataProvider.AddEvent(masterEv);</P><P></P><P></FONT><FONT color=#008000 size=2>/************/</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>/************/</P></FONT><FONT size=2><P></FONT><FONT color=#008080 size=2>CalendarEvent</FONT><FONT size=2> excepEv = CalendarControl.DataProvider.CreateEventEx(masterEv.Id);</P><P>excepEv.StartTime = </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now;</P><P>excepEv.EndTime = </FONT><FONT color=#008080 size=2>DateTime</FONT><FONT size=2>.Now.AddMinutes(60);</P><P>excepEv.Subject = </FONT><FONT color=#800000 size=2>"Excep Ev"</FONT><FONT size=2>;</P><P>excepEv.MakeAsRExceptionEx(RecurEv.Id);</P><P>CalendarControl.DataProvider.AddEvent(excepEv);</P><P>CalendarControl.DataProvider.ChangeEvent(masterEv);</P><P>isNewEventfromUi = </FONT><FONT color=#0000ff size=2>false</FONT><FONT size=2>;</FONT></P><P><FONT size=2></FONT>&nbsp;</P><P><FONT size=2>.............</FONT></P><P><FONT size=2>Thnx</P></FONT>]]>
   </description>
   <pubDate>Thu, 02 Feb 2006 09:24:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10770&amp;title=create-event-exception#10770</guid>
  </item> 
  <item>
   <title><![CDATA[Create &#069;vent Excepti&#111;n : First steps: - you have to create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10767&amp;title=create-event-exception#10767</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3576<br /><strong>Posted:</strong> 02 February 2006 at 6:52am<br /><br />First steps:<br />- you have to create master event,<br />- Set recurrence pattern properties,<br />- update recurrence,<br />- Add master event to data provider.<br /> <br />Only after that exceptions could be processed.<br /> <br />Ordering records by a Recurrence State is useful to add master event before exceptions.<br /> <br /><br />Other important step - set occurrence Start/End times before making an exception:<br /> <br />pEvent.StartTime = pEventRS("RExceptionStartTimeOrig"); <br />pEvent.EndTime = pEventRS("RExceptionEndTimeOrig"); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />pEvent.MakeAsRExceptionEx(pEventRS(" RecurrencePatternID")); <br /><br /><br />Please try searching the forum for keyword 'recurrence' - you can find there a lot of useful information, not mentioned in my answer above.<br /> <br /><br />Does creating recurrence without exceptions work fine?<br />If my advices above wouldn't help you, please send your loading procedure source code.<br /><br />--<br />WBR,<br />Serge]]>
   </description>
   <pubDate>Thu, 02 Feb 2006 06:52:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10767&amp;title=create-event-exception#10767</guid>
  </item> 
  <item>
   <title><![CDATA[Create &#069;vent Excepti&#111;n : I have done this also and have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10764&amp;title=create-event-exception#10764</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 3576<br /><strong>Posted:</strong> 01 February 2006 at 10:52am<br /><br /><P>I have done this also and have also put ChangeEvent(), but it does not change anything.. </P><P>Is there some steps (some method calls) i need to make sure to have done so that it works? for instance, i have cloned the masterEvent itself, then MakeAsRExceptionEx() with masterEv.RecurrencePattern.Id.</P><P>Thnks</P>]]>
   </description>
   <pubDate>Wed, 01 Feb 2006 10:52:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10764&amp;title=create-event-exception#10764</guid>
  </item> 
  <item>
   <title><![CDATA[Create &#069;vent Excepti&#111;n : Hi,  Note that MakeAsRExceptionEx()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10763&amp;title=create-event-exception#10763</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3576<br /><strong>Posted:</strong> 01 February 2006 at 8:54am<br /><br />Hi,<br /><br />Note that MakeAsRExceptionEx() need pattern ID -- not master event ID.<br /><br />I'd also suggest you to look at some more info about Recurrences at the forum, especially <a href="http://forum.codejock.com/forum_posts.asp?TID=2929" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=2929</a>.<br /><br />--<br />WBR,<br />Serge]]>
   </description>
   <pubDate>Wed, 01 Feb 2006 08:54:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10763&amp;title=create-event-exception#10763</guid>
  </item> 
  <item>
   <title><![CDATA[Create &#069;vent Excepti&#111;n : Thank you for the reply, it is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10761&amp;title=create-event-exception#10761</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 3576<br /><strong>Posted:</strong> 01 February 2006 at 5:47am<br /><br /><P>Thank you for the reply, it is really helpful. I have some other problem with this:</P><P>What if at loading time, I am retrieving data from an external soucre (database or webservices) and that I need to create a CalendarEvent object with recurrences and exceptions. I will create an exception as follows since I have access to only the masterEvent:</P><P><strong><EM>CalendarEvent masterEv = <FONT size=2>CalendarControl.DataProvider.CreateEvent();</FONT></EM></strong></P><P><FONT size=2>Then I will clone this event so that I can create an Exception out of it as follows:</FONT></P><P><FONT color=#000000 size=2><strong>CalendarEvent ExcepEv = masterEv.CloneEvent();</strong></FONT></P><P><FONT size=2><strong><FONT color=#000000>ExcepEv.<FONT size=2>MakeAsRException();</FONT></FONT></strong></FONT></P><P><FONT size=2><FONT color=#000000 size=2><strong>ExcepEv.Description = FromExternalSource.getField("description");</strong></FONT></FONT></P><P><FONT color=#000000 size=2><strong>// and so on</strong></FONT></P><P><FONT size=2><FONT color=#008000><FONT color=#000000>How do I&nbsp; attach ExcepEv with masterEv since it is not working. I am not having the exception displayed on the screen. I have tried :</FONT></FONT></FONT></P><FONT size=2><P><strong>ExcepRv.MakeAsRExceptionEx(MasterEv.Id);</strong></P></FONT><P><FONT size=2><FONT color=#008000><FONT color=#000000>which is not working either.</FONT></FONT></FONT></P><P><FONT color=#000000><FONT size=2><FONT color=#ff0000><U><EM><strong>Note:</strong></EM></U> </FONT>I do not have access to HitTest and I cannot get access to any CalendarEven object of type :</FONT></FONT></P><P><FONT color=#000000><FONT size=2>Recurrence state == xtpCalendarRecurrenceOccurrence </FONT></FONT></P><P><FONT size=2>since I do not have access to the UI. I am at the initialization stage of the calendar with events date received from an external source.</FONT></P><P><FONT size=2>Thanks</FONT></P><P><FONT size=2>WaaZ</FONT></P>]]>
   </description>
   <pubDate>Wed, 01 Feb 2006 05:47:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3576&amp;PID=10761&amp;title=create-event-exception#10761</guid>
  </item> 
 </channel>
</rss>