<?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 to Multiple Schedules is Wasteful</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Copy to Multiple Schedules is Wasteful]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:04:12 +0000</pubDate>
  <lastBuildDate>Thu, 21 Sep 2006 08:24:52 +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=5107</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 to Multiple Schedules is Wasteful : Hello Charlie,Thanks, your idea...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5107&amp;PID=15962&amp;title=copy-to-multiple-schedules-is-wasteful#15962</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5107<br /><strong>Posted:</strong> 21 September 2006 at 8:24am<br /><br />Hello Charlie,<br><br>Thanks, your idea is clear enough. We also thought about this approach when created multischedules functionality (as well as some other nice ideas <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="middle">)<br>But implementation of this will add redundant complexity to data structure, to data provider, and to the control. So, for the beginning we decided not to implement this feature.<br><br>Below are a few notes and suggestions which may help you to choose a way of resolving this problem. Calendar have some features to avoid copying of events.<br><b>NOTE</b>: <br><b>1)</b> Each calendar resource can display more than one schedule ID. <br><b>2) </b>For shared events you can use some special ScheduleID.<br><b>3)</b> There is a PrePopulate notification where you can filter calendar events before displaying.<br>&nbsp;<br><b>Implementation</b>:<br><br><b>1.</b> Virtual common schedule. <br>Example: PersonalScheduleMike (ID 1), PersonalScheduleJohn (ID 2), CommonScheduleMikeJohn (ID 3)<br>a) You create a single event with ScheduleID = 3<br>b) You setup Calendar to show 2 resoruces: Mike (ID 1 and 3), John (ID 2 and 3)<br><br>This approach has only 1 disadvantage -- you have to create a lot of CommonSchedules when there are a lot of people. However, each such record takes a very small amount of storage.<br><br><b>2. </b>Shared events know their Schedules.<br>a) For shared events set ScheduleID = -1 (some default shared ID) and use CustomProperties collection to store ScheduleIDs of peoples who participate in this event.<br>b) Such shared events will be populated for all users, and you should use PrePopulate notification to filter events. Check whether the ViewGroup's first ScheduleID presents in CustomProperties ScheduleIDs set. If not - remove such event from the collection.<br>An advise: iterating from last to first element would let you easily remove event at current index.<br>&nbsp;<br><b>3. </b>Use IsEditOperationDisabled, BeforeEditOperation to customize shared events editing. For example you can disable moving shared events between users, but let to change a time start and duration.<br>&nbsp;<br>--<br>Best regards,<br>Sergey <br>]]>
   </description>
   <pubDate>Thu, 21 Sep 2006 08:24:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5107&amp;PID=15962&amp;title=copy-to-multiple-schedules-is-wasteful#15962</guid>
  </item> 
  <item>
   <title><![CDATA[Copy to Multiple Schedules is Wasteful : I&amp;#039;m working on incorporating...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5107&amp;PID=15933&amp;title=copy-to-multiple-schedules-is-wasteful#15933</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2356">CharlieF2</a><br /><strong>Subject:</strong> 5107<br /><strong>Posted:</strong> 20 September 2006 at 12:17pm<br /><br />I'm working on incorporating your wonderful Calendar Active X control into my application and would like to make a suggestion: rather than having to copy a row from the event table to each schedule ID (to allow an event to show up for multiple people), you should consider allowing for a concatenated field of schedule IDs for which the event would be related.&nbsp; <DIV>&nbsp;</DIV><DIV>For example: </DIV><DIV>&nbsp;</DIV><DIV>Currently, if Mike (ID 1) and John (ID 2) wanted to meet and John created the event in his schedule, then there would be a ScheduleID of 2 for this.&nbsp; The event would have to be copied (second row) with ScheduleID of 1 for this to appear also for Mike.&nbsp; This is of course would work.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>The problem is that if there are 10 users and they each create 3 events a day then that is 1000 x 10 = 10,000 created each year.&nbsp; If each of these records need to beshared with at least one other person then, using your existing approach, would bloat the database up to 20,000 (at least) events.&nbsp; Using my suggest approach would still keep this to 10,000 records.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>I hope this is clear.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV>]]>
   </description>
   <pubDate>Wed, 20 Sep 2006 12:17:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5107&amp;PID=15933&amp;title=copy-to-multiple-schedules-is-wasteful#15933</guid>
  </item> 
 </channel>
</rss>