<?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 : Copy/Clone an Event</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Copy/Clone an Event]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 29 May 2026 22:19:32 +0000</pubDate>
  <lastBuildDate>Tue, 12 Aug 2008 16:34:15 +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=11695</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[Copy/Clone an Event : Thanks oleg, I did it as you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11695&amp;PID=39760&amp;title=copy-clone-an-event#39760</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4379">mkhadem</a><br /><strong>Subject:</strong> 11695<br /><strong>Posted:</strong> 12 August 2008 at 4:34pm<br /><br />Thanks <FONT color=#000000><strong>oleg,</strong><DIV>I did it as you said and just assigned my EventId in the Sub for DoCreateEvent.</DIV><DIV>&nbsp;</DIV><DIV>Thanks for your help.</DIV><DIV>Mo</DIV></FONT>]]>
   </description>
   <pubDate>Tue, 12 Aug 2008 16:34:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11695&amp;PID=39760&amp;title=copy-clone-an-event#39760</guid>
  </item> 
  <item>
   <title><![CDATA[Copy/Clone an Event : Hi, I am using ORACLE and the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11695&amp;PID=39638&amp;title=copy-clone-an-event#39638</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4379">mkhadem</a><br /><strong>Subject:</strong> 11695<br /><strong>Posted:</strong> 08 August 2008 at 2:43pm<br /><br /><P>Hi,</P><DIV>I am using ORACLE and the event ID is not set automatically. I use oracle sequence to get the next valid ID.</DIV><DIV>&nbsp;</DIV><DIV>Here is the workaround but I don't like it. I have to set all event parameters manually to be able to assign my new event ID.</DIV><DIV>Do you have a better solution?</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV><DIV>Mo</DIV><DIV>&nbsp;</DIV><DIV>' Get new ID</DIV><DIV>&nbsp;nEventID = m_pDB.DoGetNextUniqueID</DIV><DIV>&nbsp;</DIV><DIV>' Set my event</DIV><DIV>Set pEvent = m_pCalendar.DataProvider.CreateEventEx(nEventID)</DIV><DIV>&nbsp;</DIV><DIV>pEvent.MeetingFlag = IIf(pEventRS("IsMeeting") &lt;&gt; 0, True, False)<BR>pEvent.PrivateFlag = IIf(pEventRS("IsPrivate") &lt;&gt; 0, True, False)<BR>pEvent.Label = pEventRS("LabelID")</DIV><DIV>&nbsp;</DIV><DIV>and so on...</DIV>]]>
   </description>
   <pubDate>Fri, 08 Aug 2008 14:43:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11695&amp;PID=39638&amp;title=copy-clone-an-event#39638</guid>
  </item> 
  <item>
   <title><![CDATA[Copy/Clone an Event : Hello,  What DataProvider do...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11695&amp;PID=39492&amp;title=copy-clone-an-event#39492</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11695<br /><strong>Posted:</strong> 06 August 2008 at 4:31am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>What DataProvider do you use? I tried with our sample use Access mdb file and added this code:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;Dim Ev As CalendarEvent, E As CalendarEvent<BR>&nbsp;&nbsp;&nbsp; Set Ev = CalendarControl.DataProvider.GetEvent(1)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set E = Ev.CloneEvent()<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; CalendarControl.DataProvider.AddEvent E<BR></DIV><DIV>Works fine - DataProvider automatically generated new EventId in AddEvent&nbsp; method.</DIV>]]>
   </description>
   <pubDate>Wed, 06 Aug 2008 04:31:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11695&amp;PID=39492&amp;title=copy-clone-an-event#39492</guid>
  </item> 
  <item>
   <title><![CDATA[Copy/Clone an Event : Hi, I have issue to clone an...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11695&amp;PID=39324&amp;title=copy-clone-an-event#39324</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4379">mkhadem</a><br /><strong>Subject:</strong> 11695<br /><strong>Posted:</strong> 01 August 2008 at 12:28pm<br /><br />Hi,<DIV>I have issue to clone an event without setting the event id.</DIV><DIV>If I&nbsp;use CloneEvent or set my new event to the one which I want to copy it copies the eventID too and I can not save it as a new event and get the DB error:</DIV><DIV>Cannot CreateEvent in DB: ORA-00001: unique constraint (SYSTEM.PK_CALENDAR_EVENTS) violated</DIV><DIV>&nbsp;</DIV><DIV>Dim CopiedEvent As CalendarEvent</DIV><DIV>&nbsp;</DIV><DIV>' Here I want to keep the new created EventId</DIV><DIV>Set CopiedEvent = CalendarControl.DataProvider.CreateEvent</DIV><DIV>&nbsp;</DIV><DIV>'Here the new event id is changed to the original event id</DIV><DIV>Set CopiedEvent = OriginalEvent.CloneEvent</DIV><DIV>&nbsp;</DIV><DIV>Any clue?</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>Mo</DIV>]]>
   </description>
   <pubDate>Fri, 01 Aug 2008 12:28:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11695&amp;PID=39324&amp;title=copy-clone-an-event#39324</guid>
  </item> 
 </channel>
</rss>