<?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 : Events not visible when calendar resource is used.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Events not visible when calendar resource is used.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 04:51:10 +0000</pubDate>
  <lastBuildDate>Sat, 01 Sep 2007 06:55:22 +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=7915</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[Events not visible when calendar resource is used. : Hi, Iam using calendar control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7915&amp;PID=25457&amp;title=events-not-visible-when-calendar-resource-is-used#25457</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1445">Nataraj</a><br /><strong>Subject:</strong> 7915<br /><strong>Posted:</strong> 01 September 2007 at 6:55am<br /><br />Hi,<DIV>Iam using calendar control 10.3. Iam using the following code to show the name of the resource in the header. But when i add the id to the scheduleids collection i no longer see the events. </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; Dim loNewEvent As CalendarEvent, loCalendarEvent As CalendarEvent<BR>&nbsp;&nbsp;&nbsp; Dim loSchedules As CalendarSchedules<BR>&nbsp;&nbsp;&nbsp; Dim loCalendarResource As CalendarResource<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; With CalendarControl1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .DataProvider.Create<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set loCalendarResource = .MultipleResources(0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set loNewEvent = loCalendarResource.DataProvider.CreateEvent<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loNewEvent.Subject = "Test event"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loNewEvent.StartTime = Now<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loNewEvent.EndTime = DateAdd("n", 30, loNewEvent.StartTime)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loCalendarResource.DataProvider.AddEvent loNewEvent<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set loSchedules = loCalendarResource.DataProvider.Schedules<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loSchedules.AddNewSchedule "First"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loCalendarResource.Name = "My resource"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loCalendarResource.ScheduleIDs.Add loSchedules.Item(0).Id</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Populate<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .RedrawControl<BR>&nbsp;&nbsp;&nbsp; End With</DIV><DIV>&nbsp;</DIV><DIV>if i comment the line loCalendarResource.ScheduleIDs.Add loSchedules.Item(0) then iam able to see the event but not the header. </DIV><DIV>&nbsp;</DIV><DIV>what is wrong in the above code which prevents the event from being displayed. When i use the getevent method to retrieve the event i get and instance of the event. So iam sure that the event is there in memory but not visible.</DIV>]]>
   </description>
   <pubDate>Sat, 01 Sep 2007 06:55:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7915&amp;PID=25457&amp;title=events-not-visible-when-calendar-resource-is-used#25457</guid>
  </item> 
 </channel>
</rss>