<?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 : Multiresource Calendar in Progress (solved)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Multiresource Calendar in Progress (solved)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 29 May 2026 22:36:02 +0000</pubDate>
  <lastBuildDate>Tue, 29 Jul 2008 12:32:26 +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=11613</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[Multiresource Calendar in Progress (solved) : Solved:  I have to use 2 Dat...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11613&amp;PID=39104&amp;title=multiresource-calendar-in-progress-solved#39104</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2147">WolfStone</a><br /><strong>Subject:</strong> 11613<br /><strong>Posted:</strong> 29 July 2008 at 12:32pm<br /><br />Solved:<DIV>&nbsp;</DIV><DIV>I have to use 2 Dataprovider.</DIV><DIV>&nbsp;</DIV><DIV>chCalendarcontrol:Dataprovider for normal Schedules</DIV><DIV>and</DIV><DIV>chResource0:Dataprovider for Mutischedules</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>regards</DIV><DIV>Wolfgang</DIV>]]>
   </description>
   <pubDate>Tue, 29 Jul 2008 12:32:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11613&amp;PID=39104&amp;title=multiresource-calendar-in-progress-solved#39104</guid>
  </item> 
  <item>
   <title><![CDATA[Multiresource Calendar in Progress (solved) : Hi @ all   I have a Problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11613&amp;PID=38988&amp;title=multiresource-calendar-in-progress-solved#38988</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2147">WolfStone</a><br /><strong>Subject:</strong> 11613<br /><strong>Posted:</strong> 28 July 2008 at 8:47am<br /><br />Hi @ all <DIV>&nbsp;</DIV><DIV>I have a Problem with multiple Resources and Schedules in my Calendar-application. I uses progress OpenEdge 10.1b and ActivexSuite 10.3</DIV><DIV>&nbsp;</DIV><DIV>I know that Progress is not your "normal" language but I think the calls are the same as in VB6.</DIV><DIV>&nbsp;</DIV><DIV>Now I make a little Demo programm in Progress.</DIV><DIV>This Programm only displays 3 Recources (John, Jane, Test).</DIV><DIV>I use only 1 Dataprovider (memory)</DIV><DIV>(I create each event manually)</DIV><DIV>&nbsp;</DIV><DIV>My Problem: </DIV><DIV>I could not see the event. </DIV><DIV>&nbsp;</DIV><DIV>Whats wrong in my Code ?<img src="http://forum.codejock.com/smileys/smiley5.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Thx </DIV><DIV>&nbsp;</DIV><DIV>Wolfgang</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20080728_084439_calendarSample.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV>-------------------------------- BEGIN SOURCE ----------------------------------------</DIV><DIV><FONT size=1>&nbsp; DEFINE VARIABLE chCalendarControl AS COM-HANDLE NO-UNDO.<BR>&nbsp; DEFINE VARIABLE chDataProvider&nbsp;&nbsp;&nbsp; AS COM-HANDLE NO-UNDO.<BR>&nbsp; </FONT></DIV><DIV><FONT size=1>&nbsp; DEFINE VARIABLE cResources AS CHARACTER INIT "John,Jain,Test"&nbsp; NO-UNDO.</FONT></DIV><DIV><FONT size=1>&nbsp; DEFINE VARIABLE cConnectionString AS CHARACTER&nbsp; NO-UNDO.</FONT></DIV><DIV><FONT size=1>&nbsp; DEFINE VARIABLE chEvent AS COM-HANDLE&nbsp;&nbsp;&nbsp;&nbsp; NO-UNDO.<BR>&nbsp; DEFINE VARIABLE chSchedules AS COM-HANDLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NO-UNDO.<BR>&nbsp; DEFINE VARIABLE chSchedule AS COM-HANDLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NO-UNDO.<BR>&nbsp; DEFINE VARIABLE iInt AS INTEGER&nbsp;&nbsp;&nbsp;&nbsp; NO-UNDO.<BR>&nbsp; DEFINE VARIABLE iScheduleId AS INTEGER&nbsp;&nbsp;&nbsp;&nbsp; NO-UNDO.<BR>&nbsp; DEFINE VARIABLE chResources&nbsp; AS COM-HANDLE&nbsp;&nbsp; NO-UNDO.<BR>&nbsp; DEFINE VARIABLE chResource&nbsp; AS COM-HANDLE&nbsp;&nbsp; NO-UNDO.<BR>&nbsp; <BR>&nbsp; chCalendarControl = chCtrlFrame:CalendarControl.<BR>&nbsp; <BR>&nbsp; cConnectionString = "Provider=memory".<BR>&nbsp; chCalendarControl:SetDataProvider(cConnectionString).<BR>&nbsp; <BR>&nbsp; chDataProvider = chCalendarControl:DataProvider.</FONT></DIV><DIV><FONT size=1>&nbsp; /*If the Data Source can not be opened, then create a new data source*/<BR>&nbsp; IF NOT chDataProvider:OPEN() THEN<BR>&nbsp; DO:<BR>&nbsp;&nbsp;&nbsp; /* Create a new data source to use. */<BR>&nbsp;&nbsp;&nbsp; chDataProvider:CREATE().<BR>&nbsp; END.</FONT></DIV><DIV><FONT size=1>&nbsp; chCalendarControl:ViewType = 0.&nbsp;&nbsp; </FONT></DIV><DIV><FONT size=1>&nbsp; chCalendarControl:DayView:ScrollToWorkDayBegin().<BR>&nbsp; chSchedules =&nbsp; chDataProvider:Schedules.</FONT></DIV><DIV><FONT size=1>&nbsp; CREATE "Codejock.CalendarResources.10.3.1" chResources.</FONT></DIV><DIV><FONT size=1>&nbsp; iInt = 0.<BR>&nbsp; FahrzeugSchleife:<BR>&nbsp; DO iInt = 1 TO NUM-ENTRIES(cResources):<BR>&nbsp; <BR>&nbsp;&nbsp;&nbsp; /*Create an Schedule for each Resource*/<BR>&nbsp;&nbsp;&nbsp; chSchedules:AddNewSchedule (ENTRY(iInt,cResources)).</FONT></DIV><DIV><FONT size=1>&nbsp;&nbsp;&nbsp; CREATE "Codejock.CalendarResource.10.3.1" chResource.</FONT></DIV><DIV><FONT size=1>&nbsp;&nbsp;&nbsp; chResource:SetDataProvider(chDataProvider,FALSE).<BR>&nbsp;&nbsp;&nbsp; chResource:NAME = ENTRY(iInt,cResources).<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; /*Schedule to Resource*/<BR>&nbsp;&nbsp;&nbsp; chSchedule = chSchedules:ITEM(iInt - 1).&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; iScheduleId = chSchedule:Id.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; chResource:ScheduleIDs:Add (iScheduleId). </FONT></DIV><DIV><FONT size=1>&nbsp;&nbsp;&nbsp; chResources:ADD(chResource).&nbsp; /*Resource to Resources*/<BR>&nbsp; END.<BR>&nbsp; <BR>&nbsp; chCalendarControl:SetMultipleResources(chResources).</FONT></DIV><DIV><FONT size=1>&nbsp; chCalendarControl:Populate.&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp; chCalendarControl:RedrawControl.&nbsp; </FONT></DIV><DIV><BR><FONT size=1>&nbsp; /**********************************/<BR>&nbsp; /*******&nbsp; CREATE 1 Event **********/<BR>&nbsp; /**********************************/</FONT></DIV><DIV><FONT size=1>&nbsp; chEvent = chDataProvider:CreateEventEx(1).&nbsp;&nbsp; /*EventId = 1*/<BR>&nbsp; <BR>&nbsp; chEvent:StartTime = toDateTime2 (TODAY, "1000").<BR>&nbsp; chEvent:EndTime = toDateTime2 (TODAY, "1630").<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp; chSchedules =&nbsp; chDataProvider:Schedules.&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;&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;&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;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp; ScheduleSchleife:<BR>&nbsp; DO iInt = 1 TO chSchedules:COUNT():</FONT></DIV><DIV><FONT size=1>&nbsp;&nbsp;&nbsp; chSchedule = chSchedules:ITEM(iInt - 1).</FONT></DIV><DIV><FONT size=1>&nbsp;&nbsp;&nbsp; IF chSchedule:NAME = "John" THEN<BR>&nbsp;&nbsp;&nbsp; DO:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chEvent:ScheduleID = chSchedule:Id.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LEAVE ScheduleSchleife.<BR>&nbsp;&nbsp;&nbsp; END.<BR>&nbsp; END.</FONT></DIV><DIV><FONT size=1>&nbsp; chEvent:AllDayEvent = FALSE.<BR>&nbsp; chEvent:Subject = "John's Event".<BR>&nbsp; <BR>&nbsp; chDataProvider:AddEvent(chEvent).<BR>&nbsp; /**********************************/</FONT></DIV><DIV><FONT size=1>&nbsp; chCalendarControl:Populate.&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp; chCalendarControl:RedrawControl.&nbsp;&nbsp; <BR>&nbsp; </FONT></DIV><DIV><FONT size=1>-----------------------------END Source----------------------------------</FONT><BR></DIV>]]>
   </description>
   <pubDate>Mon, 28 Jul 2008 08:47:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11613&amp;PID=38988&amp;title=multiresource-calendar-in-progress-solved#38988</guid>
  </item> 
 </channel>
</rss>