<?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 : Possible bug in costum data provider</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Possible bug in costum data provider]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 04:48:16 +0000</pubDate>
  <lastBuildDate>Tue, 17 Jul 2007 06:46:54 +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=7333</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[Possible bug in costum data provider : &amp;#039;bump&amp;#039;  Claus Pedersen...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7333&amp;PID=24506&amp;title=possible-bug-in-costum-data-provider#24506</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3061">cjprb</a><br /><strong>Subject:</strong> 7333<br /><strong>Posted:</strong> 17 July 2007 at 6:46am<br /><br />'bump'<DIV>&nbsp;</DIV><DIV>Claus Pedersen</DIV>]]>
   </description>
   <pubDate>Tue, 17 Jul 2007 06:46:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7333&amp;PID=24506&amp;title=possible-bug-in-costum-data-provider#24506</guid>
  </item> 
  <item>
   <title><![CDATA[Possible bug in costum data provider : Hi all  Below is the code i...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7333&amp;PID=23525&amp;title=possible-bug-in-costum-data-provider#23525</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3061">cjprb</a><br /><strong>Subject:</strong> 7333<br /><strong>Posted:</strong> 08 June 2007 at 5:25am<br /><br />Hi all<DIV>&nbsp;</DIV><DIV>Below is the code i have written to set up the events for a multi resource calendar. Everythink works as expected, except that when i use a costom data provider the events dosent show up in the calendar. If i use the "memory" data provider they do. The lines in bold are the only lines i have changed to make it work.</DIV><DIV>&nbsp;</DIV><DIV>I changed the line </DIV><DIV>&nbsp;</DIV><DIV><strong>lo_resource.SetDataProvider2("Provider=custom;DSN=MyOracle",true)</strong><BR></DIV><DIV>&nbsp;</DIV><DIV>to</DIV><DIV>&nbsp;</DIV><DIV><strong>lo_resource.SetDataProvider2("Provider=XML;Data Source=c:\temp\schedule.xml",true)</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV>and then the events showed up in the calendar.</DIV><DIV>&nbsp;</DIV><DIV>I dont read anything from the dataprovider, all my data is comming from the database and must be saved there again. So im asking, am i doing something wrong here in the code for the costum dataprovider ?</DIV><DIV>&nbsp;</DIV><DIV>Thanks for your time</DIV><DIV>&nbsp;</DIV><DIV>Claus</DIV><DIV>&nbsp;</DIV><DIV><BR>&nbsp;lo_resources = CREATE OLEObject<BR>&nbsp;li_ret = lo_resources.ConnectToNewObject("Codejock.CalendarResources.11.1.3")<BR></DIV><DIV><BR>ll_antMed = myBesog.med_list.of_Get(medarb_nodes)<BR>FOR li_medarb = 1 to ll_antMed<BR>&nbsp;medarb_nodes&#091;li_medarb&#093;.of_getdata(la_temp)<BR>&nbsp;l_medarb = la_temp<BR>&nbsp;<BR>&nbsp;lo_resource = CREATE OLEObject<BR>&nbsp;li_ret = lo_resource.ConnectToNewObject("Codejock.CalendarResource.11.1.3")<BR>&nbsp;<BR>&nbsp;if li_medarb = 1 then<BR>&nbsp;&nbsp;//&nbsp;we&nbsp;will use a costom data provider</DIV><DIV><strong>&nbsp;//&nbsp;lo_resource.SetDataProvider2("Provider=custom;DSN=MyOracle",true)<BR>&nbsp;&nbsp;lo_resource.SetDataProvider2("Provider=XML;Data Source=c:\temp\schedule.xml",true)</strong><BR>&nbsp;&nbsp;if not lo_resource.DataProvider.Open() then<BR>&nbsp;&nbsp;&nbsp;lo_resource.DataProvider.create()<BR>&nbsp;&nbsp;end if<BR>&nbsp;&nbsp;lo_schedules = lo_resource.DataProvider.Schedules();<BR>&nbsp;&nbsp;lo_res1 = lo_resource<BR>&nbsp;else<BR>&nbsp;&nbsp;lo_resource.SetDataProvider(lo_res1.DataProvider(),false)<BR>&nbsp;end if<BR>&nbsp;<BR>&nbsp;lo_schedules.AddNewSchedule(l_medarb.ini);<BR>&nbsp;lo_schedules.item(li_medarb - 1).id = l_medarb.id</DIV><DIV><BR>&nbsp;lo_resource.name = l_medarb.ini<BR>&nbsp;lo_resource.ScheduleIDs.Add(l_medarb.id)<BR>&nbsp;<BR>&nbsp;lo_resources.Add(lo_resource)<BR>&nbsp;<BR>NEXT</DIV><DIV>&nbsp;</DIV><DIV>// Get the events<BR>OLEObject ptrEvent</DIV><DIV><BR>besoeg_list = myBesog.of_get_besoeg( )<BR>ll_AntVisit = besoeg_list.of_Get(besoegs_nodes)</DIV><DIV><BR>FOR li_visit = 1 to ll_AntVisit<BR>&nbsp;besoegs_nodes&#091;li_visit&#093;.of_getdata(la_temp)<BR>&nbsp;l_besoeg = la_temp<BR>&nbsp;</DIV><DIV>ls_body = "Test body"<BR><BR>&nbsp;&nbsp;//&nbsp;Make a new event<BR>&nbsp;ptrEvent = lo_res1.DataProvider.CreateEvent()<BR>&nbsp;ptrEvent.Subject = l_besoeg.name<BR>&nbsp;ptrEvent.StartTime = l_besoeg.starttime <BR>&nbsp;ptrEvent.EndTime = l_besoeg.endtime<BR>&nbsp;ptrEvent.Body = ls_body<BR>&nbsp;ptrEvent.ScheduleID = l_besoeg.med_id<BR>&nbsp;lo_res1.DataProvider.AddEvent(ptrEvent)</DIV><DIV><BR>NEXT</DIV><DIV><BR>gruppetavle.object.SetMultipleResources(lo_resources)<BR>&nbsp;<BR>gruppetavle.object.Populate()<BR>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 08 Jun 2007 05:25:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7333&amp;PID=23525&amp;title=possible-bug-in-costum-data-provider#23525</guid>
  </item> 
 </channel>
</rss>