<?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 : Multiple vs Singular</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Multiple vs Singular]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 20:12:34 +0000</pubDate>
  <lastBuildDate>Tue, 26 May 2009 16:24:22 +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=14390</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[Multiple vs Singular :  I have been playing around with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14390&amp;PID=49350&amp;title=multiple-vs-singular#49350</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5263">pitronot</a><br /><strong>Subject:</strong> 14390<br /><strong>Posted:</strong> 26 May 2009 at 4:24pm<br /><br /><P>&nbsp;</P><P>I have been playing around with the calendarControl for a few days now.</P><P>This is what I have learnt.</P><P>you can connect in 2 ways:</P><P>single user: single CalendarResource</P><DIV></DIV>you just connect the CalendarControl.SetDataProvider directly to your data provider.<DIV>&nbsp;</DIV><DIV>Multiple User:</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create CalendarResource per Resource (ViewingGroup)</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; each Resource needs it's own dataprovider</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; each Resource has ShechduleIDs collection which shows to whom Events can be scheduled to and is connected to multiple CalendarSchedule objects.</DIV><DIV>&nbsp;</DIV><DIV>each DataProvider has a collection called Schedules &#091;kinda like different calendars&#093;</DIV><DIV>&nbsp; &nbsp;The Schedules&nbsp;collection shows what the DataProvider is to filter and read from it's datawarehouse to find events</DIV><DIV>&nbsp;&nbsp; The Schedules collection is connected to multiple CalendarSchedules.</DIV><DIV>&nbsp;</DIV><DIV>The difference between Schedules and ScheduleIDs is purely functional, they have pretty much&nbsp;&nbsp;the same objectives:&nbsp; to hold a collection of CalendarSchedule objects, and there only difference is in their respective utlity members for locating, adding and removing individual CalendarSchedule items to them.</DIV><DIV>&nbsp;</DIV><DIV>-----------</DIV><DIV>&nbsp;</DIV><DIV>To move from multiple back to singular without breaking your model&nbsp;you do the following:<DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>&nbsp;</DIV><DIV>Dim c As CalendarResource<BR>&nbsp; <BR>&nbsp; CalendarControl.MultipleResources.RemoveAll '&nbsp;Remove all the multiple resources<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;<BR>&nbsp; 'add resources to resource collection<BR><BR>&nbsp; arResources.Add pRes0 ' the resource you want as singular<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp; CalendarControl.SetMultipleResources arResources<BR></DIV><DIV>'clear the names and ScheduleIDs&nbsp;from the Calendarcontrol</DIV><DIV>&nbsp; For Each c In CalendarControl.MultipleResources<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; c.Name = ""<BR>&nbsp;&nbsp; c.ScheduleIDs.RemoveAll<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp; Next</DIV><DIV></pre></td></tr></table></DIV><DIV>*** This will automaticaly be done for you if you use the SetDataProvider function.</DIV><DIV>this is incase you do not wish to use it.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; </DIV>]]>
   </description>
   <pubDate>Tue, 26 May 2009 16:24:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14390&amp;PID=49350&amp;title=multiple-vs-singular#49350</guid>
  </item> 
 </channel>
</rss>