<?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 : Custom Provider &amp; Schedules Object - Help</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Custom Provider &amp; Schedules Object - Help]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 23:08:35 +0000</pubDate>
  <lastBuildDate>Tue, 20 Nov 2007 11:40:56 +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=8841</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[Custom Provider &amp; Schedules Object - Help : I&amp;#039;m using a CustomProvider,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8841&amp;PID=28670&amp;title=custom-provider-schedules-object-help#28670</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=331">vbuser</a><br /><strong>Subject:</strong> 8841<br /><strong>Posted:</strong> 20 November 2007 at 11:40am<br /><br /><DIV>I'm using a CustomProvider, how do you load the schedules? This is how I'm doing it:</DIV><DIV>&nbsp;</DIV><DIV>Set rs = cnADO.Execute(sSQL, adCmdText)<BR>&nbsp;&nbsp;&nbsp; If Not (rs.BOF And rs.eof) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rs.MoveFirst<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do While Not rs.eof<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i = i + 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReDim Preserve pRes(i)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set pRes(i) = New CalendarResource<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If i = 0 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes(i).SetDataProvider2 strConnectionString, True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes(i).SetDataProvider CalendarControl1.DataProvider, False&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'add the schedule to the resource<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes(i).Name = rs!ShortName &amp; ""<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes(i).ScheduleIDs.Add rs!EmployeeNo &amp; ""<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'add resource to resource array<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arResources.Add pRes(i)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rs.MoveNext<BR>&nbsp;&nbsp;&nbsp; Loop<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; rs.Close<BR>&nbsp;&nbsp;&nbsp; Set rs = Nothing</DIV><DIV>&nbsp;&nbsp; 'add resource array to calendarcontrol<BR>&nbsp;&nbsp; CalendarControl1.SetMultipleResources arResources</DIV><DIV>&nbsp;</DIV><DIV>They showup OK on the calendar, but when I add an event the following code does not work:</DIV><DIV>&nbsp;</DIV><DIV>'Fill schedules combobox<BR>&nbsp;&nbsp;&nbsp; Dim pSchedule As CalendarSchedule<BR>&nbsp;&nbsp;&nbsp; For Each pSchedule In frmPaneScheduler.CalendarControl1.DataProvider.Schedules<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cboSchedule.AddItem pSchedule.Name<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cboSchedule.ItemData(cboSchedule.NewIndex) = pSchedule.ID<BR>&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>any help will be appreciate it! Thank you</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 20 Nov 2007 11:40:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8841&amp;PID=28670&amp;title=custom-provider-schedules-object-help#28670</guid>
  </item> 
 </channel>
</rss>