<?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 resource problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Multiple resource problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 13:32:27 +0000</pubDate>
  <lastBuildDate>Thu, 01 Feb 2007 14:51:36 +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=6017</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 resource problem : I have 4 rooms and when i&amp;#039;m...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6017&amp;PID=20011&amp;title=multiple-resource-problem#20011</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2709">lexicon</a><br /><strong>Subject:</strong> 6017<br /><strong>Posted:</strong> 01 February 2007 at 2:51pm<br /><br />I have 4 rooms and when i'm adding events for each one the data in access db shows correctly the field scheduleID as 1,2,3,4 correct<DIV>&nbsp;</DIV><DIV>But in Calendar displays all 4 events for everyone</DIV><DIV>&nbsp;</DIV><DIV>Sorry I'm new here, How to configure resources?</DIV><DIV>&nbsp;</DIV><DIV>I'm using the example on your code without any modifications, only i change the dataprovider for the nultischedule from .xml to .mdb</DIV>]]>
   </description>
   <pubDate>Thu, 01 Feb 2007 14:51:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6017&amp;PID=20011&amp;title=multiple-resource-problem#20011</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple resource problem : Most likely you incorrectly configured...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6017&amp;PID=20010&amp;title=multiple-resource-problem#20010</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6017<br /><strong>Posted:</strong> 01 February 2007 at 1:56pm<br /><br />Most likely you incorrectly configured Resources. Your first resource looks to contain both schedule 1 and schedule 2, but it should contain only schedule 1.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 01 Feb 2007 13:56:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6017&amp;PID=20010&amp;title=multiple-resource-problem#20010</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple resource problem : I wrote the code to make a multiple...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6017&amp;PID=19993&amp;title=multiple-resource-problem#19993</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2709">lexicon</a><br /><strong>Subject:</strong> 6017<br /><strong>Posted:</strong> 01 February 2007 at 7:38am<br /><br />I wrote the code to make a multiple schedule calendar and i added 2 schedules<DIV>&nbsp;</DIV><DIV>When i'm adding a event in schedule 1 then it appears and in schedule 2</DIV><DIV>but, when i'm addind a event to schedule 2 then it appears only in schedule 2</DIV><DIV>&nbsp;</DIV><DIV>Tha data in database is correct but the display of them is wrong</DIV><DIV>&nbsp;</DIV><DIV>What i'm doing wrong?</DIV>]]>
   </description>
   <pubDate>Thu, 01 Feb 2007 07:38:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6017&amp;PID=19993&amp;title=multiple-resource-problem#19993</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple resource problem : worked like a charm!   thanks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6017&amp;PID=19084&amp;title=multiple-resource-problem#19084</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2651">scbdpm</a><br /><strong>Subject:</strong> 6017<br /><strong>Posted:</strong> 09 January 2007 at 9:08pm<br /><br />worked like a charm! <DIV>&nbsp;</DIV><DIV>thanks for the changes!!!!!!</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 09 Jan 2007 21:08:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6017&amp;PID=19084&amp;title=multiple-resource-problem#19084</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple resource problem :  Look below for the fixed code: &amp;#039;//...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6017&amp;PID=19073&amp;title=multiple-resource-problem#19073</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6017<br /><strong>Posted:</strong> 09 January 2007 at 1:36pm<br /><br />Look below for the fixed code:<br><table width="99%"><tr><td><pre class="BBcode"><br><font color="#00cc00"><font color="#006600">'// ** resources </font><br></font><br>pRes0.Name = pSchedules.Item(0).Name <br>pRes0.ScheduleIDs.Add pSchedules.Item(0).Id <br>arResources.Add pRes0 <br><br>'<font color="#006600">' <b>no need for this line here </b><br>'' pRes1.SetDataProvider pRes0.DataProvider, False <br></font><br>Dim ldx As Integer <br>For ldx = 1 To pSchedules.Count - 1 'changed Ubound(sarray) <br>Set pRes1 = New CalendarResource <br>pRes1.Name = pSchedules.Item(ldx).Name ' sArray(ldx) <br><font color="#006600">'' <b>!!! main BUG is here !!! </b><br>'' The <b>ID </b>must be specified there, not index <br>'' pRes1.ScheduleIDs.Add <font color="#ff0000">ldx </font></font><br>pRes1.ScheduleIDs.Add <b>pSchedules.Item(ldx).Id </b>' the same way as for pRes0 <br><font color="#006600">' set data provider from first resource <br>' second parameter value should be <b>False </b><br>' no a big bug, but you can have problems due this <br>'' pRes1.SetDataProvider pRes0.DataProvider, <font color="#ff0000">True </font></font><br>pRes1.SetDataProvider pRes0.DataProvider, False <br><br>arResources.Add pRes1 <br>Next<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Tue, 09 Jan 2007 13:36:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6017&amp;PID=19073&amp;title=multiple-resource-problem#19073</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple resource problem : I have the code below which loads...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6017&amp;PID=18943&amp;title=multiple-resource-problem#18943</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2651">scbdpm</a><br /><strong>Subject:</strong> 6017<br /><strong>Posted:</strong> 06 January 2007 at 4:53pm<br /><br />I have the code below which loads my resources ('Schedules') and Events/appointments from my Access DB wonderfully!<DIV>&nbsp;</DIV><DIV>However, it appears to be 'shifted'. What I mean by that is the the same appointments are showing in the first two columns (i.e. resources) and then the appointments that are supposed to be in the second column is in the third and so on......</DIV><DIV>&nbsp;</DIV><DIV>Here is code:</DIV><DIV>&nbsp;</DIV><DIV>Public Sub LoadSchedule(dtNewDate As Date)</DIV><DIV><BR>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; <BR>&nbsp;&nbsp;&nbsp; pRes0.SetDataProvider2 "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &amp; App.Path &amp; "\Data\Events.mdb", True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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; <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; <BR>&nbsp;&nbsp;&nbsp; '// ** schedules<BR>&nbsp;&nbsp;&nbsp; Dim pSchedules As CalendarSchedules<BR>&nbsp;&nbsp;&nbsp; Set pSchedules = pRes0.DataProvider.Schedules<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If pSchedules Is Nothing Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; '// ** resources<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</DIV><DIV>&nbsp;&nbsp;&nbsp; arResources.Add pRes0<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; pRes1.SetDataProvider pRes0.DataProvider, False<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; Dim ldx As Integer<BR>&nbsp;&nbsp;&nbsp; For ldx = 1 To pSchedules.Count - 1 'changed Ubound(sarray)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set pRes1 = New CalendarResource<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.Name = pSchedules.Item(ldx).Name ' sArray(ldx)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.ScheduleIDs.Add ldx<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' set data provider from first resource<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.SetDataProvider pRes0.DataProvider, True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arResources.Add pRes1<BR>&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; CalendarControl.SetMultipleResources arResources<BR>&nbsp;&nbsp;&nbsp; CalendarControl.ActiveView.DayHeaderFormatLong = "mm/dd/yyyy"<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; CalendarControl.Populate</DIV><DIV>&nbsp;&nbsp;&nbsp; CalendarControl.DayView.ShowDays dtNewDate, dtNewDate<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; End Sub</DIV>]]>
   </description>
   <pubDate>Sat, 06 Jan 2007 16:53:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6017&amp;PID=18943&amp;title=multiple-resource-problem#18943</guid>
  </item> 
 </channel>
</rss>