<?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 : Schedule Question</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Schedule Question]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 29 May 2026 22:35:52 +0000</pubDate>
  <lastBuildDate>Wed, 23 Jul 2008 13:48:55 +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=11554</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[Schedule Question :  This is a snip of code from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11554&amp;PID=38788&amp;title=schedule-question#38788</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 11554<br /><strong>Posted:</strong> 23 July 2008 at 1:48pm<br /><br /><font size="2">This is a snip of code from my InitCalendar function. Iam trying to add the resources to the calendar for my multipleschedules so both schedules show up (red code), but in addition I amalso trying to add the schedules to the Calendar Schedules so thebuilt-in dialogs contain the schedules for selection (Blue Code)<br><br></font><font size="1"><font size="2">As the code is shown below, the events show upunder the correct schedule, but the schedules do no appear in theedit/add dialogs. if I remove the red code, obviously the events do notdisplay properly, but the schedules ARE listed in the dialogs.<br><br>A) What am I missing?<br>B) How do I make the dialog Schedule IDs (blue code) match the ID I've assigned them in the red code?</font><br></font><font size="1"><br>Private Sub InitCalendar()<br>&nbsp; Set R = OpenRS("Select * From CalendarSchedules order by ScheduleName")<br>&nbsp; <br>&nbsp; <font color="#ff0000">Dim objResources As CalendarResources<br>&nbsp; Set objResources = New CalendarResources<br>&nbsp; <br>&nbsp; Dim objResource As CalendarResource</font><br>&nbsp; Do While Not R.EOF<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <font color="#ff0000">Set objResource = New CalendarResource<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; objResource.Name = R!ScheduleName<br>&nbsp;&nbsp;&nbsp; objResource.SetDataProvider2 "memory", False<br>&nbsp;&nbsp;&nbsp; objResource.DataProvider.Create<br>&nbsp;&nbsp;&nbsp; objResource.ScheduleIDs.Add R!Id<br>&nbsp;&nbsp;&nbsp; objResources.Add objResource</font><br>&nbsp;&nbsp;&nbsp; <br><font color="#0000ff">&nbsp;&nbsp;&nbsp; Dim B As Boolean<br>&nbsp;&nbsp;&nbsp; B = Calendar1.DataProvider.Schedules.AddNewSchedule(R!ScheduleName)</font><br>&nbsp;&nbsp;&nbsp; R.MoveNext<br>&nbsp;&nbsp;&nbsp; <br>&nbsp; Loop<br>&nbsp; R.Close <br><br>&nbsp; Calendar1.SetMultipleResources objResources<br>&nbsp; <br>&nbsp; PopulateCalendar<br><br>End Sub<br></font><br><br><font size="1"><br>Sub PopulateCalendar()<br>&nbsp; Dim R As Recordset<br>&nbsp; Dim NewEvent As CalendarEvent<br>&nbsp; Dim UserIncluded As Boolean<br>&nbsp; <br>&nbsp; Calendar1.DataProvider.RemoveAllEvents<br><br>&nbsp; <br>&nbsp; Set R = OpenRS("Select * From CalendarEvents Where Endtime&gt;='" &amp; DateAdd("d", -60, Date) &amp; "'")<br><br>&nbsp; Do While Not R.EOF<br>&nbsp;&nbsp;&nbsp; Set NewEvent = Calendar1.DataProvider.CreateEventEx(R!EventID)<br><br>&nbsp;&nbsp;&nbsp; NewEvent.StartTime = R!StartTime<br>&nbsp;&nbsp;&nbsp; NewEvent.EndTime = R!EndTime<br>&nbsp;&nbsp;&nbsp; NewEvent.body = CheckForNulls(R!body)<br>&nbsp;&nbsp;&nbsp; NewEvent.location = CheckForNulls(R!location)<br>&nbsp;&nbsp;&nbsp; NewEvent.Subject = R!EventTitle<br>&nbsp;&nbsp;&nbsp; NewEvent.AllDayEvent = (R!AllDay = "Y")<br>&nbsp;&nbsp;&nbsp; NewEvent.PrivateFlag = (R!Private = "Y")<br>&nbsp;&nbsp;&nbsp; NewEvent.MeetingFlag = (R!meeting = "Y")<br>&nbsp;&nbsp;&nbsp; NewEvent.Reminder = (R!Reminder = "Y")<br>&nbsp;&nbsp;&nbsp; NewEvent.ReminderMinutesBeforeStart = R!Remindermin<br>&nbsp;&nbsp;&nbsp; NewEvent.BusyStatus = val(CheckForNulls(R!ShowTimeAs))<br>&nbsp;&nbsp;&nbsp; NewEvent.ScheduleID = R!ScheduleID<br>&nbsp;&nbsp;&nbsp; NewEvent.Categories.LoadFromString R!Categories<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp; Calendar1.DataProvider.AddEvent NewEvent<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp; R.MoveNext<br>&nbsp; Loop<br>&nbsp; Calendar1.Populate<br>&nbsp; CalendarEventAddedFromDB = False<br>End Sub</font>]]>
   </description>
   <pubDate>Wed, 23 Jul 2008 13:48:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11554&amp;PID=38788&amp;title=schedule-question#38788</guid>
  </item> 
 </channel>
</rss>