<?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 : Schedules with custom data provider</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Schedules with custom data provider]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 28 May 2026 14:53:51 +0000</pubDate>
  <lastBuildDate>Sun, 24 Jan 2010 17:48:19 +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=9397</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[Schedules with custom data provider : thank you very much dwise!......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=56330&amp;title=schedules-with-custom-data-provider#56330</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5843">cetinbudak</a><br /><strong>Subject:</strong> 9397<br /><strong>Posted:</strong> 24 January 2010 at 5:48pm<br /><br />thank you very much dwise!... you saved my lots of time... ]]>
   </description>
   <pubDate>Sun, 24 Jan 2010 17:48:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=56330&amp;title=schedules-with-custom-data-provider#56330</guid>
  </item> 
  <item>
   <title><![CDATA[Schedules with custom data provider : Thanks to everyone, your posts...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=31389&amp;title=schedules-with-custom-data-provider#31389</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3729">ericl</a><br /><strong>Subject:</strong> 9397<br /><strong>Posted:</strong> 20 February 2008 at 1:08pm<br /><br />Thanks to everyone, your posts helped me so much !]]>
   </description>
   <pubDate>Wed, 20 Feb 2008 13:08:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=31389&amp;title=schedules-with-custom-data-provider#31389</guid>
  </item> 
  <item>
   <title><![CDATA[Schedules with custom data provider : Ok That worked! For anyone who...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=30463&amp;title=schedules-with-custom-data-provider#30463</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3684">dwise</a><br /><strong>Subject:</strong> 9397<br /><strong>Posted:</strong> 24 January 2008 at 4:43am<br /><br /><P>Ok That worked! For anyone who is interrested, the working code: </P><DIV><FONT face="Courier New, Courier, mono">Public Sub LoadCalendar()</FONT></DIV><DIV><FONT face="Courier New"></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; Dim objResources As XtremeCalendarControl.CalendarResources<BR>&nbsp;&nbsp;&nbsp; Dim objCalendar As XtremeCalendarControl.CalendarControl<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set objCalendar = Me.ActCalendar.Object<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set objResources = New XtremeCalendarControl.CalendarResources<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; objResources.Add CreateResource("test1", 1)<BR>&nbsp;&nbsp;&nbsp; objResources.Add CreateResource("Test2", 2)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; AddEvent objResources(0).DataProvider, 1<BR>&nbsp;&nbsp;&nbsp; AddEvent objResources(1).DataProvider, 2<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; objCalendar.SetMultipleResources objResources<BR>&nbsp;&nbsp;&nbsp; objCalendar.ActiveView.ShowDay Me.TxtCurrentdag, True<BR>&nbsp;&nbsp;&nbsp; objCalendar.ViewType = xtpCalendarWorkWeekView<BR>&nbsp;&nbsp;&nbsp; objCalendar.Populate<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set objCalendar = Nothing</FONT></DIV><DIV><BR><FONT face="Courier New, Courier, mono">End Sub</FONT></DIV><DIV><FONT face="Courier New"></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">Private Function CreateResource(prmName As String, prmId As Long) As XtremeCalendarControl.CalendarResource</FONT></DIV><DIV><FONT face="Courier New, Courier, mono"></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; Dim objResource As XtremeCalendarControl.CalendarResource<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set objResource = New XtremeCalendarControl.CalendarResource<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; With objResource<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .name = prmName<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SetDataProvider2 "memory", False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .DataProvider.Create<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ScheduleIDs.Add prmId<BR>&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set CreateResource = objResource<BR>&nbsp;&nbsp;&nbsp; <BR>End Function</FONT></DIV><DIV><FONT face="Courier New"></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">Private Sub AddEvent(ByRef prmData As XtremeCalendarControl.CalendarDataProvider, prmId As Long)</FONT></DIV><DIV><FONT face="Courier New, Courier, mono"></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; Dim objEvent As XtremeCalendarControl.CalendarEvent<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set objEvent = prmData.CreateEvent<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; With objEvent<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .subject = "Event for id: " &amp; prmId<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .StartTime = Now<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EndTime = DateAdd("h", 1, Now)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ScheduleID = prmId<BR>&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; prmData.AddEvent objEvent<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set objEvent = Nothing</FONT></DIV><DIV><FONT face="Courier New"></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">End Sub</FONT></DIV><DIV><FONT face="Courier New"></FONT>&nbsp;</DIV><DIV><FONT face="Arial, Helvetica, sans-serif">Again, thank you very much!</FONT></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 24 Jan 2008 04:43:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=30463&amp;title=schedules-with-custom-data-provider#30463</guid>
  </item> 
  <item>
   <title><![CDATA[Schedules with custom data provider : This looks very promissing, i&amp;#039;m...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=30461&amp;title=schedules-with-custom-data-provider#30461</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3684">dwise</a><br /><strong>Subject:</strong> 9397<br /><strong>Posted:</strong> 24 January 2008 at 3:43am<br /><br />This looks very promissing, i'm going to give it a try. Thank you very much]]>
   </description>
   <pubDate>Thu, 24 Jan 2008 03:43:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=30461&amp;title=schedules-with-custom-data-provider#30461</guid>
  </item> 
  <item>
   <title><![CDATA[Schedules with custom data provider : Ops :) In this case I think it&#8217;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=30446&amp;title=schedules-with-custom-data-provider#30446</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2958">wlcabral</a><br /><strong>Subject:</strong> 9397<br /><strong>Posted:</strong> 23 January 2008 at 4:20pm<br /><br /><P><BR>Ops :)&nbsp;&nbsp;&nbsp; In this case I think it’s a little more complicated:</P><P>Again talking in FOXPRO way :</P><P>1 . You need to create a CalendarResources collection :</P><P>calResourceS = createobject("Codejock.CalendarResourceS.11.2.2")</P><P>2. Create a calendar Resource object for each Schedule that you want</P><P>Sche1 = createobject("Codejock.CalendarResource.11.2.2") </P><P>and for each Schedule created, set some properties :</P><P>Sche1.name = “title for schedule1”</P><P>Sche1.setDataProvider2(“memory”, false)<BR>&nbsp;dataProvider1 = sche1.dataProvider&nbsp;<BR>&nbsp;dataProvider1.create()</P><P>Sche1.ScheduleIDs.Add(nID1)&nbsp;‘ One for each ID for Schedule<BR>Sche1.ScheduleIDs.Add(nID2)&nbsp;‘ One for each ID for Schedule</P><P><BR>&nbsp;<BR>Sche2 = createobject("Codejock.CalendarResource.11.2.2") </P><P>Sche2.name = “title for schedule1”<BR>Sche2.setDataProvider2(“memory”, false)<BR>&nbsp;dataProvider2 = sche1.dataProvider&nbsp;<BR>&nbsp;dataProvider2.create()</P><P>Sche1.ScheduleIDs.Add(nID3)&nbsp;‘ One for each ID for Schedule</P><P>Sche3…Sche4…</P><P><BR>3.&nbsp; Add the schedule to Schedule collections<BR>&nbsp;CalResourceS.Add( Sche1 )<BR>&nbsp;CalResourceS.Add( Sche2 )<BR>&nbsp;CalResourceS.Add( ScheN )</P><P><BR>4 Inform the control that you want multiples resource :<BR>&nbsp;.SetMultipleResources( CalResourceS )</P><P>&nbsp;</P><P>5 Each event must be populated in the righ dataprovider</P><P>If a then<BR>&nbsp;dataP =.MultipleResources.Item(0).DataProvider<BR>else<BR>&nbsp;dataP =.MultipleResources.Item(1).DataProvider<BR>end if</P><P><BR>Set objEvent = dataP.CreateEvent()<BR>…<BR>…<BR>dataP.AddEvent objEvent</P><P><BR>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 23 Jan 2008 16:20:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=30446&amp;title=schedules-with-custom-data-provider#30446</guid>
  </item> 
  <item>
   <title><![CDATA[Schedules with custom data provider : Hi wlcabral ,   Thanks for the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=30443&amp;title=schedules-with-custom-data-provider#30443</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3684">dwise</a><br /><strong>Subject:</strong> 9397<br /><strong>Posted:</strong> 23 January 2008 at 2:06pm<br /><br />Hi wlcabral , <DIV>&nbsp;</DIV><DIV>Thanks for the code. The part of populating the calendar is not the problem. </DIV><DIV>&nbsp;</DIV><DIV>I would&nbsp;like to use different schedules (events belonging to different recources/persons). </DIV><DIV>&nbsp;</DIV><DIV>I've seen examples for this with different datasources, in my case i only have one datasource, i also do not have a connectionstring because the events are manually added.</DIV>]]>
   </description>
   <pubDate>Wed, 23 Jan 2008 14:06:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=30443&amp;title=schedules-with-custom-data-provider#30443</guid>
  </item> 
  <item>
   <title><![CDATA[Schedules with custom data provider : In my case (ms Foxpro) I can see...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=30432&amp;title=schedules-with-custom-data-provider#30432</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2958">wlcabral</a><br /><strong>Subject:</strong> 9397<br /><strong>Posted:</strong> 23 January 2008 at 12:53pm<br /><br /><P =Ms&#111;normal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>In my case (ms Foxpro) I can see 2 different options :</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 10pt"><SPAN style="mso-spacerun: yes"><FONT face=Calibri size=3>&nbsp;</FONT></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'">I</SPAN><FONT face=Calibri size=3> call </FONT><SPAN style="FONT-SIZE: 10pt; COLOR: black; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'">.dataprovider.</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'">Create</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'">() before starts and I use createevent() instead createeventEx().<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 10pt"><SPAN style="FONT-SIZE: 10pt; COLOR: black; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'">I don’t know if helps, but, here is the code ...</P><DIV></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'">Foxpro CODE:<o:p></o:p></SPAN></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">This</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">.xtremecalendar.dataprovider.</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">Create</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">()<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>&amp;&amp; I used in INIT event<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 10pt"><SPAN style="FONT-SIZE: 10pt; COLOR: black; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">This</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">.xtremecalendar.dataprovider.removeallevents()<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">This</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">.xtremecalendar.populate()<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">Select </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">(ccursor)<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">Scan<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">oevent = </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">This</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">.xtremecalendar.</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">Object</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">.dataprovider.createevent()<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">with </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">oevent<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.starttime <SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>= starttime<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.endtime<SPAN style="mso-spacerun: yes">&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>= endtime<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.subject<SPAN style="mso-spacerun: yes">&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>= </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">Alltrim</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">(subject)<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.body<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>= body<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">Label<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">= </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">Label<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">.busystatus<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>= busystatus<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.importance<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>= importance<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.privateflag<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>= Private<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.meetingflag<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>= meeting<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.customproperties.property('ukey') = ukey<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">endwith<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>This</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">.xtremecalendar.</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">Object</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">.dataprovider.addevent( oevent )<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 10pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'">Endscan</P><DIV></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 10pt"><o:p></o:p></SPAN></P>]]>
   </description>
   <pubDate>Wed, 23 Jan 2008 12:53:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=30432&amp;title=schedules-with-custom-data-provider#30432</guid>
  </item> 
  <item>
   <title><![CDATA[Schedules with custom data provider : Hi,   I use the follwing code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=30429&amp;title=schedules-with-custom-data-provider#30429</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3684">dwise</a><br /><strong>Subject:</strong> 9397<br /><strong>Posted:</strong> 23 January 2008 at 11:46am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>I use the follwing code to fill my calendar:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim objCalendar As XtremeCalendarControl.CalendarControl<BR>&nbsp;&nbsp;&nbsp; Dim objEvent As XtremeCalendarControl.CalendarEvent<BR>&nbsp;&nbsp;&nbsp; Dim objRecordset As ADODB.Recordset<BR>&nbsp;&nbsp;&nbsp; Dim a As Boolean<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set objRecordset = New ADODB.Recordset<BR>&nbsp;&nbsp;&nbsp; Set objCalendar = Me.ActCalendar.Object<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; objCalendar.ActiveView.ShowDay Me.TxtCurrentdag, True<BR>&nbsp;&nbsp;&nbsp; objCalendar.ViewType = xtpCalendarMonthView<BR>&nbsp;&nbsp;&nbsp; objCalendar.DataProvider.Schedules.AddNewSchedule "Test1"<BR>&nbsp;&nbsp;&nbsp; objCalendar.DataProvider.Schedules.AddNewSchedule "Test2"<BR>&nbsp;&nbsp;&nbsp; objCalendar.DataProvider.Save<BR>&nbsp;&nbsp;&nbsp; objCalendar.DataProvider.RemoveAllEvents</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; objRecordset.Open "OnderhoudPlanning_TotaalView", CurrentProject.AccessConnection, adOpenForwardOnly, adLockReadOnly</DIV><DIV>&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;While Not objRecordset.EOF<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set objEvent = objCalendar.DataProvider.CreateEventEx(objRecordset!id)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With objEvent<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .StartTime = objRecordset!Datum<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EndTime = DateAdd("h", 1, objRecordset!Datum)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Body = "Test"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .subject = "Test"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Code to split over different schedules<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If a Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ScheduleID = 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a = False<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; .ScheduleID = 2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objCalendar.DataProvider.AddEvent objEvent<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set objEvent = Nothing<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objRecordset.MoveNext<BR>&nbsp;&nbsp;&nbsp; Wend</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; objRecordset.Close<BR>&nbsp;&nbsp;&nbsp; Set objRecordset = Nothing</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; objCalendar.Populate</DIV><DIV>&nbsp;&nbsp;&nbsp; Set objCalendar = Nothing</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>The schedules do not show up. Can anyone give me an example of how this is done?&nbsp; All the different schedules are based on one table.</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance!</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 23 Jan 2008 11:46:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9397&amp;PID=30429&amp;title=schedules-with-custom-data-provider#30429</guid>
  </item> 
 </channel>
</rss>