<?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 : Recurrence Exception is not working as I expect</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Recurrence Exception is not working as I expect]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 01:08:06 +0000</pubDate>
  <lastBuildDate>Wed, 07 May 2008 09:10:55 +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=10543</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[Recurrence Exception is not working as I expect : Hi All,   Here is my scenario,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10543&amp;PID=34859&amp;title=recurrence-exception-is-not-working-as-i-expect#34859</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2989">karthiksp</a><br /><strong>Subject:</strong> 10543<br /><strong>Posted:</strong> 07 May 2008 at 9:10am<br /><br />Hi All,<DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Here is my scenario, We are using Sybase as our Backend Database and Powebuilder as our front-end. I have the Recurrence Event for the following pattern.</DIV><DIV>&nbsp;</DIV><DIV>Daily Event (Week Day Only) from 5/1/2008&nbsp;- 5/30/2008 from 8.00 AM - 9.00 AM</DIV><DIV>&nbsp;</DIV><DIV>3 Exceptions for the above recurrence. For the Dates (13th, 21st and 29th) events are deleted. I captured all the 3 deletion as exception. Following is the script I used to populate the recurrence event with that 3 exceptions.</DIV><DIV>&nbsp;</DIV><DIV>lole_master_event&nbsp; =&nbsp; lole_DataProvider.Createevent()<BR>........ All Data processing for lole_master_event</DIV><DIV>&nbsp;</DIV><DIV>lole_calendar_recurrence&nbsp;&nbsp; &nbsp; = lole_master_event.CreateRecurrence()<BR>lole_calendar_recurrence_options = lole_calendar_recurrence.Options</DIV><DIV>&nbsp;</DIV><DIV>For ll_exception_index = 1 to exceptionscount<BR></DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; 'Copy the Event as same as Master Event<BR>&nbsp;&nbsp;&nbsp;&nbsp; lole_exception_deletion&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp; lole_master_event.CloneEvent()</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; 'Remove the recurrence pattern from the exception event<BR>&nbsp;&nbsp;&nbsp;&nbsp; lole_exception_deletion.RemoveRecurrence()</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; 'Set the StartTime and EndTIme to remove the event<BR>&nbsp;&nbsp;&nbsp;&nbsp; lole_exception_deletion.StartTime&nbsp; =&nbsp; idt_RExceptionStartTimeOrig<BR>&nbsp;&nbsp;&nbsp;&nbsp; lole_exception_deletion.EndTime&nbsp; =&nbsp;&nbsp; idt_RExceptionEndTimeOrig</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; lole_exception_deletion.RExceptionDeleted = true<BR>&nbsp;&nbsp;&nbsp;&nbsp; lole_exception_deletion.MakeAsRException()<BR>&nbsp;&nbsp;&nbsp;&nbsp; lole_calendar_recurrence.SetException(lole_exception_deletion)<BR></DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; lole_DataProvider.ChangeEvent(lole_exception_deletion)<BR>Next</DIV><DIV>&nbsp;</DIV><DIV>lole_DataProvider.AddEvent(lole_calendar_event)<BR>lole_calendar_event.UpdateRecurrence(lole_calendar_recurrence)</DIV><DIV><BR>For the above code, what it happens is recurrence master event created successfully and when it goes to the loop of exception, it removes the first exception from the calendar control (i.e May 13th) and the rest 2 exceptions stays there in the calendar control.</DIV><DIV>&nbsp;</DIV><DIV>When I Debug, it is looping 3 times and it removes the exception for the very first iteration.</DIV><DIV>&nbsp;</DIV><DIV>Please help me in finding out what am I doing wrong in setting the exception</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>Karthik</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 07 May 2008 09:10:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10543&amp;PID=34859&amp;title=recurrence-exception-is-not-working-as-i-expect#34859</guid>
  </item> 
 </channel>
</rss>