<?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 : Load multiple resources and events</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Load multiple resources and events]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 08:59:57 +0000</pubDate>
  <lastBuildDate>Thu, 05 Oct 2006 15:01: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=5174</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[Load multiple resources and events :  Sorry for the previous question,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5174&amp;PID=16350&amp;title=load-multiple-resources-and-events#16350</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2378">Rod001</a><br /><strong>Subject:</strong> 5174<br /><strong>Posted:</strong> 05 October 2006 at 3:01pm<br /><br /><DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">Sorry for the previous question, everything did work. Things&nbsp;works a lot </P><DIV>better&nbsp;when you (<strong>me</strong>) cuts and paste <strong><SPAN style="FONT-FAMILY: Verdana">all</SPAN></strong> the code.</DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P></DIV><DIV><DIV>Thanks again,</DIV></DIV><DIV>Rod001</DIV><DIV><strong>&nbsp;</strong></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 05 Oct 2006 15:01:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5174&amp;PID=16350&amp;title=load-multiple-resources-and-events#16350</guid>
  </item> 
  <item>
   <title><![CDATA[Load multiple resources and events :  Serge,  The changeswork great!I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5174&amp;PID=16273&amp;title=load-multiple-resources-and-events#16273</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2378">Rod001</a><br /><strong>Subject:</strong> 5174<br /><strong>Posted:</strong> 03 October 2006 at 2:46pm<br /><br /><SPAN style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Verdana"><DIV>Serge,</DIV><DIV>&nbsp;</DIV><DIV>The changes&nbsp;work great!&nbsp;I am trying to develop a proof of concept for our management team and would appreciate any and all help.</DIV><DIV>After updating&nbsp;the code with the changes I can't seem to make&nbsp;the&nbsp;events for adding dates to show up in the calendar.</DIV><DIV>&nbsp;</DIV><DIV>Thank you,</DIV><DIV>Rod001&nbsp;</SPAN></DIV><!-- End Member Post -->]]>
   </description>
   <pubDate>Tue, 03 Oct 2006 14:46:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5174&amp;PID=16273&amp;title=load-multiple-resources-and-events#16273</guid>
  </item> 
  <item>
   <title><![CDATA[Load multiple resources and events : Hi,You just mixed up some things...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5174&amp;PID=16258&amp;title=load-multiple-resources-and-events#16258</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5174<br /><strong>Posted:</strong> 03 October 2006 at 10:44am<br /><br />Hi,<br><br>You just mixed up some things a little, and as result - no data provider is attached to Calendar at all.<br>&nbsp;<br>I mean that you create data provider in pRes0 but skip a step of adding pRes0 to an array. <br>Also you have to set data provider to each resource.<br>&nbsp;<br><table width="99%"><tr><td><pre class="BBcode"><br>Public Sub BuildResourceItems(sNames As String)<br>&nbsp;&nbsp;&nbsp; Dim arResources As New CalendarResources<br>&nbsp;&nbsp;&nbsp; Dim pRes0 As New CalendarResource<br>&nbsp;&nbsp;&nbsp; Dim pRes1 As New CalendarResource<br>&nbsp;&nbsp;&nbsp; Dim NewEvent As CalendarEvent<br>&nbsp;&nbsp;&nbsp; Dim pSchedules As CalendarSchedules<br>&nbsp;&nbsp;&nbsp; Dim strConnectionString As String<br>&nbsp;&nbsp;&nbsp; Dim sArray() As String<br>&nbsp;&nbsp;&nbsp; Dim ldx As Integer<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; strConnectionString = "Provider=Custom;Data Source="<br>&nbsp;&nbsp;&nbsp; pRes0.SetDataProvider2 strConnectionString, True<br>&nbsp;&nbsp;&nbsp; If pRes0.DataProvider Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Assert False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; If Not pRes0.DataProvider.Open Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not pRes0.DataProvider.Create Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Assert False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; '// ** schedules<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; Set pSchedules = pRes0.DataProvider.Schedules<br>&nbsp;&nbsp;&nbsp; sArray = Split(sNames, ",")<br>&nbsp;&nbsp;&nbsp; For ldx = 0 To UBound(sArray)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pSchedules.AddNewSchedule sArray(ldx)<br>&nbsp;&nbsp;&nbsp; Next<br>&nbsp;&nbsp;&nbsp; pRes0.DataProvider.Save<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; pRes0.Name = pSchedules.Item(0).Name<br>&nbsp;&nbsp;&nbsp; pRes0.ScheduleIDs.Add pSchedules.Item(0).Id<br>&nbsp;<br><b>&nbsp;&nbsp;&nbsp; ' Add first resource to array<br>&nbsp;&nbsp;&nbsp; arResources.Add pRes0<br></b>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sArray = Split(sNames, ",")<br>&nbsp;&nbsp;&nbsp; ' Add others (exclude first one)<br>&nbsp;&nbsp;&nbsp; For ldx = 1 To UBound(sArray)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set pRes1 = New CalendarResource<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.Name = sArray(ldx)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.ScheduleIDs.Add ldx<br>&nbsp;<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' set data provider from first resource<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.SetDataProvider pRes0.DataProvider, False<br>&nbsp;</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arResources.Add pRes1<br>&nbsp;&nbsp;&nbsp; Next<br>&nbsp;&nbsp;&nbsp; CalendarControl1.SetMultipleResources arResources<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set NewEvent = CalendarControl1.DataProvider.CreateEvent <b>' error problem occurs here</b><br><br>&nbsp;&nbsp;&nbsp; NewEvent.StartTime = Now<br>&nbsp;&nbsp;&nbsp; NewEvent.EndTime = Now<br>&nbsp;&nbsp;&nbsp; NewEvent.Subject = "Product Meeting"<br>&nbsp;&nbsp;&nbsp; NewEvent.ScheduleID = 1<br>&nbsp;&nbsp;&nbsp; CalendarControl1.DataProvider.AddEvent NewEvent<br>&nbsp;CalendarControl1.Populate<br>End Sub<br></pre></td></tr></table><br><br><br>--<br>WBR,<br>Serge <br>]]>
   </description>
   <pubDate>Tue, 03 Oct 2006 10:44:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5174&amp;PID=16258&amp;title=load-multiple-resources-and-events#16258</guid>
  </item> 
  <item>
   <title><![CDATA[Load multiple resources and events : Hi,   I&amp;#039;m new to this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5174&amp;PID=16185&amp;title=load-multiple-resources-and-events#16185</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2378">Rod001</a><br /><strong>Subject:</strong> 5174<br /><strong>Posted:</strong> 29 September 2006 at 11:56am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV><DIV>I'm new to this control, and I'm trying to test and understand the MultipleResources and date events. I'm able to set up the calendar with multiple resources but&nbsp;not able to add any date events.</DIV><BR>&nbsp;&nbsp;Private Sub Form_Load()<BR>&nbsp;&nbsp;&nbsp; Init<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; BuildResourceItems "john,tim,rod,bill,nancy"</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;End Sub</DIV><DIV>&nbsp;</DIV><DIV>Public Sub BuildResourceItems(sNames As String)</DIV><DIV>Dim arResources As New CalendarResources<BR>Dim pRes0 As New CalendarResource<BR>Dim pRes1 As New CalendarResource<BR>Dim NewEvent As CalendarEvent<BR>Dim pSchedules As CalendarSchedules</DIV><DIV>Dim strConnectionString As String<BR>Dim sArray() As String<BR>Dim ldx As Integer<BR>&nbsp;&nbsp; <BR>strConnectionString = "Provider=Custom;Data Source="<BR>pRes0.SetDataProvider2 strConnectionString, True<BR>If pRes0.DataProvider Is Nothing Then<BR>&nbsp;&nbsp;&nbsp; Debug.Assert False<BR>&nbsp;&nbsp;&nbsp; Exit Sub<BR>End If</DIV><DIV>If Not pRes0.DataProvider.Open Then<BR>&nbsp;&nbsp;&nbsp; If Not pRes0.DataProvider.Create Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Assert False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<BR>&nbsp;&nbsp;&nbsp; End If<BR>End If</DIV><DIV>&nbsp;'// ** schedules<BR>&nbsp;<BR>&nbsp;Set pSchedules = pRes0.DataProvider.Schedules<BR>&nbsp;sArray = Split(sNames, ",")<BR>&nbsp;For ldx = 0 To UBound(sArray)<BR>&nbsp;&nbsp;&nbsp; pSchedules.AddNewSchedule sArray(ldx)<BR>&nbsp;&nbsp; <BR>&nbsp;Next<BR>&nbsp;pRes0.DataProvider.Save<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;pRes1.SetDataProvider pRes0.DataProvider, False<BR>&nbsp;<BR>&nbsp;pRes0.Name = pSchedules.Item(0).Name<BR>&nbsp;pRes0.ScheduleIDs.Add pSchedules.Item(0).Id<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;sArray = Split(sNames, ",")<BR>&nbsp;For ldx = 0 To UBound(sArray)<BR>&nbsp;&nbsp;&nbsp; Set pRes1 = New CalendarResource</DIV><DIV>&nbsp;&nbsp;&nbsp; pRes1.Name = sArray(ldx)<BR>&nbsp;&nbsp;&nbsp; pRes1.ScheduleIDs.Add ldx<BR>&nbsp;&nbsp;&nbsp; arResources.Add pRes1<BR>&nbsp;&nbsp; <BR>&nbsp;Next<BR>&nbsp;CalendarControl1.SetMultipleResources arResources</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; Set NewEvent = CalendarControl1.DataProvider.CreateEvent<strong>&nbsp;' error problem occurs here</strong></DIV><DIV><BR>&nbsp;&nbsp; NewEvent.StartTime = Now<BR>&nbsp;&nbsp;&nbsp; NewEvent.EndTime = Now<BR>&nbsp;&nbsp;&nbsp; NewEvent.Subject = "Product Meeting"<BR>&nbsp;&nbsp;&nbsp; NewEvent.ScheduleID = 1<BR>&nbsp;&nbsp;&nbsp; CalendarControl1.DataProvider.AddEvent NewEvent</DIV><DIV>&nbsp;CalendarControl1.Populate</DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Thank you,</DIV><DIV>Rod001</DIV>]]>
   </description>
   <pubDate>Fri, 29 Sep 2006 11:56:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5174&amp;PID=16185&amp;title=load-multiple-resources-and-events#16185</guid>
  </item> 
 </channel>
</rss>