<?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 Resources</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Multiple Resources]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:56:40 +0000</pubDate>
  <lastBuildDate>Wed, 03 May 2006 11:07:37 +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=4099</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 Resources : Ensure you&amp;#039;ve called:  C...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4099&amp;PID=12610&amp;title=multiple-resources#12610</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4099<br /><strong>Posted:</strong> 03 May 2006 at 11:07am<br /><br />Ensure you've called:<br><table width="99%"><tr><td><pre class="BBcode"><br> CalendarControl.SetMultipleResources(Resources);<br>CalendarControl.Populate();<br></pre></td></tr></table><br>&nbsp;<br>Compare your code with code in calendar VB sample project:<br>mnuMultiSchedulesSimple_Click();<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Wed, 03 May 2006 11:07:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4099&amp;PID=12610&amp;title=multiple-resources#12610</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple Resources : Hi, Based on the explanation...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4099&amp;PID=12597&amp;title=multiple-resources#12597</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 4099<br /><strong>Posted:</strong> 03 May 2006 at 7:42am<br /><br /><P>Hi,</P><P>Based on the explanation above, I have implemented the following code: </P><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> </P><FONT size=2><P></FONT><FONT color=#008080 size=2>CalendarResources</FONT><FONT size=2> Resources = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>CalendarResourcesClass</FONT><FONT size=2>();</P><P></FONT><FONT color=#008080 size=2>CalendarResource</FONT><FONT size=2> Resource=</FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>CalendarResourceClass</FONT><FONT size=2>();</P><P>Resource.SetDataProvider(CalendarControl.DataProvider,</FONT><FONT color=#0000ff size=2>false</FONT><FONT size=2> );</P><P></P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (CalendarControl.DataProvider.Schedules.Count &lt; 1)</P><P>{</P><P>CalendarControl.DataProvider.Schedules.AddNewSchedule(</FONT><FONT color=#800000 size=2>"Test"</FONT><FONT size=2>);</P><P>}</P><P>Resource.Name=</FONT><FONT color=#800000 size=2>"Test"</FONT><FONT size=2>;</P><P> Resource.ScheduleIDs.Add(CalendarControl.DataProvider.Schedu les&#091;0&#093;.Id);</P><P>Resources.Add(Resource);</P><P></P><P>Resource.DataProvider.Save();</P><P></td></tr></table></P><P>and when I create my event after the above has been executed and set the Schedule ID as follows:</P><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> </P><FONT size=2><P>ptrEvent.ScheduleID = CalendarControl.DataProvider.Schedules&#091;0&#093;.Id;</P></FONT><P></td></tr></table></P><P>I see no difference in the execution. I have done these changes in the sample code given while installing the controls</P></FONT>]]>
   </description>
   <pubDate>Wed, 03 May 2006 07:42:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4099&amp;PID=12597&amp;title=multiple-resources#12597</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple Resources : Hi Fabian,Firstly please look...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4099&amp;PID=12543&amp;title=multiple-resources#12543</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4099<br /><strong>Posted:</strong> 01 May 2006 at 6:02am<br /><br />Hi Fabian,<br><br>Firstly please look at corresponding examples in calendar VB sample project:<br>mnuMultiSchedulesSimple_Click()<br>mnuMultiSchedulesExtended_Click()<br>&nbsp;<br>1.<br>instead of <br>&nbsp;&nbsp;&nbsp; Resource.ScheduleIDs.Add 1<br>use:<br>&nbsp;&nbsp;&nbsp; Resource.ScheduleIDs.Add Schedules.Item(0).Id<br>&nbsp;<br>2.<br>instead of <br>&nbsp;&nbsp;&nbsp; Schedules.AddNewSchedule "Test"<br>use:<br>&nbsp;&nbsp;&nbsp; If Schedules.Count &lt; 1 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Schedules.AddNewSchedule "Test"<br>&nbsp;&nbsp;&nbsp; End If<br>because XML/file data provider saves/loads schedules when Save/Open methods are called.<br>&nbsp;<br>3.&nbsp;&nbsp; <br>Resource.SetDataProvider(CalendarControl1.DataProvider, False)<br>&nbsp;<br>NOTE: if you set False to bCloseDataProviderWhenDestroy - please close (and save if necessary) a DataProvider manually when exit from app/form.<br>&nbsp;<br>4. for events which you add you have to set ScheduleID.<br><br>5. Look also at CalendarResource.SetDataProvider2 method.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Mon, 01 May 2006 06:02:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4099&amp;PID=12543&amp;title=multiple-resources#12543</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple Resources : Hi I try to incorporate multiple...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4099&amp;PID=12529&amp;title=multiple-resources#12529</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=841">Fabian</a><br /><strong>Subject:</strong> 4099<br /><strong>Posted:</strong> 30 April 2006 at 11:19am<br /><br /><P>Hi</P><P>I try to incorporate multiple resources in my (working) calendar app. </P><P>CalendarControl1.SetDataProvider(...)<BR>CalendarControl1.DataProvider.Open</P><P>'----- New code<BR>Set Resources=New CalendarResources<BR>Set Resource=New CalendarResource<BR> Resource.SetDataProvider(CalendarControl1.DataProvider,False )<BR>Set Schedules=Resource.DataProvider.Schedules<BR>Schedules.AddNewSchedule "Test"<BR>Resource.Name="Test"<BR>Resource.ScheduleIDs.Add 1<BR>Resources.Add Resource<BR>Resource.DataProvider.Save<BR>'-----</P><P>'Now adding events to CalendarControl1.DataProvider as before.</P><P>If we run the app with the new code the resource was shown but the DataProvider is empty and inplace adding an event was no more&nbsp;possible... without the resource addition all work as expected but without resources...</P><P>What do I wrong?</P><P>Thanks a lot for any help!</P>]]>
   </description>
   <pubDate>Sun, 30 Apr 2006 11:19:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4099&amp;PID=12529&amp;title=multiple-resources#12529</guid>
  </item> 
 </channel>
</rss>