<?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 : Possible ID bug when cloning event using mouse</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Possible ID bug when cloning event using mouse]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 00:29:37 +0000</pubDate>
  <lastBuildDate>Thu, 07 Sep 2006 11:36:05 +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=4973</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[Possible ID bug when cloning event using mouse : Ok, please take a look into ht...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4973&amp;PID=15522&amp;title=possible-id-bug-when-cloning-event-using-mouse#15522</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4973<br /><strong>Posted:</strong> 07 September 2006 at 11:36am<br /><br />Ok, please take a look into http://codejock.com/support/articles/com/calendar/cp_3.asp<br><br><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">One of the main ideas is not to store all events in calendar, </span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">but to ask them for visible days only: see DoRetrieveDayEvents.</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">See also our samples about how to implement it.</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span></div><div>Do <span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">not call DoRetrieveDayEvents for one day many times (this is slow) custom data provider has a cache. DoRetrieveDayEvents called once for each day.<br><br></span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">NOTE:</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">CreateEvent, </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">CreateEventEx create a new event object related to this data provider.</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">They are not not add event to storage.</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">See also AddEvent. But it call </span><span style="font-family: 'Tahoma'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">DoCreateEvent, DoUpdateEvent inside</span></div><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 07 Sep 2006 11:36:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4973&amp;PID=15522&amp;title=possible-id-bug-when-cloning-event-using-mouse#15522</guid>
  </item> 
  <item>
   <title><![CDATA[Possible ID bug when cloning event using mouse : Ok, no bug then    This gives...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4973&amp;PID=15511&amp;title=possible-id-bug-when-cloning-event-using-mouse#15511</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2269">zeko78</a><br /><strong>Subject:</strong> 4973<br /><strong>Posted:</strong> 06 September 2006 at 4:58pm<br /><br />Ok, <strong>no bug</strong> then <img src="https://forum.codejock.com/smileys/smiley1.gif" border="0"> <DIV>&nbsp;</DIV><DIV>This gives me a nice little problem.</DIV><DIV>&nbsp;</DIV><DIV>The thing is that we're collection data from various tables to be presented in the calendar. Some data is fetched from a table, added as "temporary" events, and should not be stored&nbsp;in the same table as the events the user creates in the calendar.</DIV><DIV>&nbsp;</DIV><DIV>Since the "cloned" event&nbsp;sent to DoCreateEvent looks exactly the same as the original (including id, modified time, customproperties&nbsp;and such) I don't know wheter or not this event should be saved...</DIV><DIV>&nbsp;</DIV><DIV>Is there a way to add an event without triggering DoCreateEvent?</DIV><DIV>&nbsp;</DIV><DIV>Or, some way to uniquely identify the cloned event (at the time DoCreateEvent is triggered)?</DIV><DIV>&nbsp;</DIV><DIV>Also, what is the correct place to fetch all my stored events when the Calendar is first opened? My dataprovider is "Provider=custom;Data Source=custom", and I don't find an event which would "ask" me to retreive all stored events to populate the calendar. Instead I do this using CreateEventEx after the dataprovider has been created/opened.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Best regards,</DIV><DIV>Gøran</DIV>]]>
   </description>
   <pubDate>Wed, 06 Sep 2006 16:58:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4973&amp;PID=15511&amp;title=possible-id-bug-when-cloning-event-using-mouse#15511</guid>
  </item> 
  <item>
   <title><![CDATA[Possible ID bug when cloning event using mouse : Hi,This is not a bug, but a feature...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4973&amp;PID=15499&amp;title=possible-id-bug-when-cloning-event-using-mouse#15499</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4973<br /><strong>Posted:</strong> 06 September 2006 at 6:59am<br /><br />Hi,<br><br>This is not a bug, but a feature <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="middle"><br>&nbsp;<br>Custom data provider expects that DoCreateEvent() is responsible for assigning proper new event ID value.<br>&nbsp;<br>The ID which is passed to DoCreateEvent is some ID (temporary id or existing event ID). <br>&nbsp;<br>Inside DoCreateEvent you must set unique value to NewEventID. Generally this is AutoKey field from your database.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Wed, 06 Sep 2006 06:59:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4973&amp;PID=15499&amp;title=possible-id-bug-when-cloning-event-using-mouse#15499</guid>
  </item> 
  <item>
   <title><![CDATA[Possible ID bug when cloning event using mouse : Hi Serge,   I&amp;#039;ve discovered...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4973&amp;PID=15479&amp;title=possible-id-bug-when-cloning-event-using-mouse#15479</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2269">zeko78</a><br /><strong>Subject:</strong> 4973<br /><strong>Posted:</strong> 05 September 2006 at 4:21pm<br /><br />Hi Serge, <DIV>&nbsp;</DIV><DIV>I've discovered some weird behaviour/possible bug.</DIV><DIV>&nbsp;</DIV><DIV>I'm using a custom dataprovider.</DIV><DIV>&nbsp;</DIV><DIV>When I clone an event by holding down Ctrl and clicking/dragging an event so that it is "cloned", the new event passed to DoCreateEvent has the same ID as the "old" event. Also the parameter NewEventID contains the id of the old event.</DIV><DIV>&nbsp;</DIV><DIV>However,&nbsp;if I again clone the newly created event by clicking/dragging it, a new ID is sent to DoCreateEvent (this ID is a totaly new ID, as expected).</DIV><DIV>&nbsp;</DIV><DIV>So it seems that the first time you clone an event the ID of the original event is passed to DoCreateEvent...</DIV><DIV>&nbsp;</DIV><DIV>This doesn't&nbsp;look right to me <img src="https://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Best regards,</DIV><DIV>Gøran</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 05 Sep 2006 16:21:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4973&amp;PID=15479&amp;title=possible-id-bug-when-cloning-event-using-mouse#15479</guid>
  </item> 
 </channel>
</rss>