<?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 : Loading Calendar with query data</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Loading Calendar with query data]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 02:21:31 +0000</pubDate>
  <lastBuildDate>Sun, 24 Feb 2008 12:39:10 +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=6654</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[Loading Calendar with query data : but...if you make a RemoveAllEvents...&#191;what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6654&amp;PID=31535&amp;title=loading-calendar-with-query-data#31535</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2186">jcbaena</a><br /><strong>Subject:</strong> 6654<br /><strong>Posted:</strong> 24 February 2008 at 12:39pm<br /><br />but...if you make a RemoveAllEvents...¿what do you load on second loop?]]>
   </description>
   <pubDate>Sun, 24 Feb 2008 12:39:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6654&amp;PID=31535&amp;title=loading-calendar-with-query-data#31535</guid>
  </item> 
  <item>
   <title><![CDATA[Loading Calendar with query data : You have to do 2 loops: the first...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6654&amp;PID=21375&amp;title=loading-calendar-with-query-data#21375</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6654<br /><strong>Posted:</strong> 22 March 2007 at 6:20pm<br /><br />You have to do 2 loops: the first one will delete only your specific items from the existing events collection; and the second one will add all specific items reloaded from your storage.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 22 Mar 2007 18:20:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6654&amp;PID=21375&amp;title=loading-calendar-with-query-data#21375</guid>
  </item> 
  <item>
   <title><![CDATA[Loading Calendar with query data : I have tried to get the above...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6654&amp;PID=21228&amp;title=loading-calendar-with-query-data#21228</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2241">tomgriff</a><br /><strong>Subject:</strong> 6654<br /><strong>Posted:</strong> 16 March 2007 at 11:09pm<br /><br /><P>I have tried to get the above example to work for my needs, but it doesn't seem to do the trick.</P><DIV>Let me explain a bit&nbsp; more what I need.</DIV><DIV>&nbsp;</DIV><DIV>I need to load events from the event file for a specific Staff member, or a specific client, or a specific project depeding what section of my program is active.&nbsp; I do not have any data from the event in another table to copy into an event.&nbsp; When I use the removeall in the above example,&nbsp; my event table is cleared.&nbsp; I do not want to clear my event table.</DIV><DIV>&nbsp;</DIV><DIV>How can I load specific items from the event table into the calendar without clearing the event table.</DIV><DIV>&nbsp;</DIV><DIV>Is there any way to query the event table using a custom properties field, of if I have a list of the eventid's that I need to load.</DIV>]]>
   </description>
   <pubDate>Fri, 16 Mar 2007 23:09:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6654&amp;PID=21228&amp;title=loading-calendar-with-query-data#21228</guid>
  </item> 
  <item>
   <title><![CDATA[Loading Calendar with query data : Thank you very much for your quick...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6654&amp;PID=21182&amp;title=loading-calendar-with-query-data#21182</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2241">tomgriff</a><br /><strong>Subject:</strong> 6654<br /><strong>Posted:</strong> 15 March 2007 at 1:03pm<br /><br />Thank you very much for your quick response.&nbsp; I will give this a try.]]>
   </description>
   <pubDate>Thu, 15 Mar 2007 13:03:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6654&amp;PID=21182&amp;title=loading-calendar-with-query-data#21182</guid>
  </item> 
  <item>
   <title><![CDATA[Loading Calendar with query data : Just load a recordset with the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6654&amp;PID=21181&amp;title=loading-calendar-with-query-data#21181</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 6654<br /><strong>Posted:</strong> 15 March 2007 at 1:01pm<br /><br />Just load a recordset with the events that you want (or load a recordset with all of the events, you can filter out the unwanted ones later)<br><br>Then, loop through the recordset adding the events.<br><br>Dim NewEvent As CalendarEvent<br>Dim strCaption as String<br><br>Set rsDays = New ADODB.Recordset<br><br>&nbsp;&nbsp;&nbsp; With rsDays<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Open sql, db, adOpenForwardOnly, adLockReadOnly<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Calendar.DataProvider.RemoveAllEvents<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do While Not .EOF<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set NewEvent = Calendar.DataProvider.CreateEvent<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If blnContinue = True Then<br>&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;&nbsp;&nbsp;&nbsp;&nbsp; strCaption = "Event Title"<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'add any custom properties you may want&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NewEvent.CustomProperties.Property("RequestID") = CLng(!ID)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NewEvent.CustomProperties.Property("Status") = Cstr(!Status)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'set up the other event properties we need&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;&nbsp;&nbsp;&nbsp;&nbsp; NewEvent.StartTime = CDate(!StartDate)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NewEvent.EndTime = DateAdd("d", 1, CDate(!EndDate))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NewEvent.AllDayEvent = True<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NewEvent.Label = strCaption<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NewEvent.Subject = strCaption<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NewEvent.Body = strBody<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'add icons if you want<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NewEvent.CustomIcons.Add ID_VACATION<br>&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;&nbsp;&nbsp;&nbsp;&nbsp; 'set any theme properties you want to set (I am using Icons so I had to set these HeightFormula Properties)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Calendar.Theme.MonthView.Event.HeightFormula.Divisor = 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Calendar.Theme.MonthView.Event.HeightFormula.Multiplier = 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Calendar.Theme.MonthView.Event.HeightFormula.Constant = 20<br>&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;&nbsp;&nbsp;&nbsp;&nbsp; Calendar.Theme.DayView.Event.HeightFormula.Divisor = 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Calendar.Theme.DayView.Event.HeightFormula.Multiplier = 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Calendar.Theme.DayView.Event.HeightFormula.Constant = 20<br>&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;&nbsp;&nbsp;&nbsp;&nbsp; Calendar.Theme.RefreshMetrics<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Calendar.DataProvider.AddEvent NewEvent<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .MoveNext<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Loop<br>&nbsp;&nbsp;&nbsp; .Close<br><br>&nbsp;&nbsp;&nbsp; 'populate the calendar<br>&nbsp;&nbsp;&nbsp; Calendar.Populate<br>&nbsp;&nbsp;&nbsp; End With<br><br>Set rsDays = Nothing<br>]]>
   </description>
   <pubDate>Thu, 15 Mar 2007 13:01:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6654&amp;PID=21181&amp;title=loading-calendar-with-query-data#21181</guid>
  </item> 
  <item>
   <title><![CDATA[Loading Calendar with query data : Hello,   I have a program written...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6654&amp;PID=21178&amp;title=loading-calendar-with-query-data#21178</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2241">tomgriff</a><br /><strong>Subject:</strong> 6654<br /><strong>Posted:</strong> 15 March 2007 at 11:45am<br /><br />Hello, <DIV>&nbsp;</DIV><DIV>I have a program written in vb6 with an Access mdb backend.</DIV><DIV>&nbsp;</DIV><DIV>I need to load the calendar with the events for a specific Staff Member, or a specific Cleint, or a specific Project.</DIV><DIV>&nbsp;</DIV><DIV>I have a screen where the client can select a staff member and I want the calendar to load only the events for that staff member.</DIV><DIV>&nbsp;</DIV><DIV>I have looked throug the forum and I don't see topics that cover this, if I missed a topic that covers this I apologise.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 15 Mar 2007 11:45:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6654&amp;PID=21178&amp;title=loading-calendar-with-query-data#21178</guid>
  </item> 
 </channel>
</rss>