<?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 : Best  method ? Multi-USER / Multi-Resource</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Best  method ? Multi-USER / Multi-Resource]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 10:01:04 +0000</pubDate>
  <lastBuildDate>Sat, 21 Oct 2006 18:28:31 +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=5295</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[Best  method ? Multi-USER / Multi-Resource : If you set sonnection string &amp;#034;provider=Custom&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16703&amp;title=best-method-multiuser-multiresource#16703</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5295<br /><strong>Posted:</strong> 21 October 2006 at 6:28pm<br /><br />If you set sonnection string "provider=Custom" the custom data provider is created. In this case calendar sends DoXXX events, which you have to catch and process like in our example (connect DB by yourself using ADO or somthing other, write SQL to read from DB and Update DB, etc)<br>&nbsp;<br>If you set sonnection string "Provider=Microsoft.Jet.OLEDB.4.0; ..." the built-in Access data provider is created, which connects to DB and processes requests inside. DoXXX events are not sent in this case. This provider works with predefined tables.<br>&nbsp;<br>You can use any of those providers.<br>&nbsp;<br>Custom provider:<br>&nbsp;&nbsp;&nbsp; Advantage:&nbsp;&nbsp;&nbsp;&nbsp; flexibility. Everything is in your hands.<br>&nbsp;&nbsp;&nbsp; Disadvantage:&nbsp; it is complex to implement.<br>&nbsp;<br>Built-In Access data provider:<br>&nbsp;&nbsp;&nbsp; Advantage:&nbsp;&nbsp;&nbsp;&nbsp; it is easy to use. <br>&nbsp;&nbsp;&nbsp; Disadvantage:&nbsp; it use some predefined tables, and not so flexibile.<br>&nbsp;<br>In any case you can read Options and Schedules after you Open data provider. Just read data from DB and put it to CalendarControl.Option and CalendarDataProvider.Schedules objects.<br>&nbsp;<br>When you call CalendarDataProvider.Open (or Create) those members are filled with default values (or empty).<br>&nbsp;<br>And save this data to DB before closing a data provider (custom or access).<br>&nbsp;<br>ps: regarding @gaudetm's advice: you can use notifications EventAdded, EventChanged, EventDeleted to mark that data has been changed. They are sending for any data provider.<br><br>--<br>WBR,<br>Serge <br>]]>
   </description>
   <pubDate>Sat, 21 Oct 2006 18:28:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16703&amp;title=best-method-multiuser-multiresource#16703</guid>
  </item> 
  <item>
   <title><![CDATA[Best  method ? Multi-USER / Multi-Resource : When I set the pRes0.SetDataProvider2...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16695&amp;title=best-method-multiuser-multiresource#16695</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=331">vbuser</a><br /><strong>Subject:</strong> 5295<br /><strong>Posted:</strong> 21 October 2006 at 11:39am<br /><br /><DIV>When I set the pRes0.SetDataProvider2&nbsp; =&nbsp;"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &amp; App.Path &amp; "\events.mdb", True everything runs file, the Schedules table is accessed, resource names are read, etc. When I set&nbsp; pRes0.SetDataProvider2&nbsp;=&nbsp;"Provider=custom", True, the table is no longer read, where are&nbsp;do I process the table&nbsp;events? How do I access or set database events for the resources? In my application the resources names are to be read from an EMPLOYEES table, not the default 'Schedules' table. Also, how do I save the OPTIONS when in 'custom' mode?</DIV><DIV>I have tried different ways to make this work and I need help please...</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 21 Oct 2006 11:39:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16695&amp;title=best-method-multiuser-multiresource#16695</guid>
  </item> 
  <item>
   <title><![CDATA[Best  method ? Multi-USER / Multi-Resource : Too bad about the scroll bar,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16640&amp;title=best-method-multiuser-multiresource#16640</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=331">vbuser</a><br /><strong>Subject:</strong> 5295<br /><strong>Posted:</strong> 18 October 2006 at 7:51pm<br /><br />Too bad about the scroll bar, I will think of a solution...<DIV>&nbsp;</DIV><DIV>@gaudetm,</DIV><DIV>thanks for your great input - I was inclined to do something like that, and may be add code to avoid updating the calendar if user is editing an event, etc. Thanks again!</DIV>]]>
   </description>
   <pubDate>Wed, 18 Oct 2006 19:51:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16640&amp;title=best-method-multiuser-multiresource#16640</guid>
  </item> 
  <item>
   <title><![CDATA[Best  method ? Multi-USER / Multi-Resource : My solution for multiusers synchronisation...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16632&amp;title=best-method-multiuser-multiresource#16632</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2364">gaudetm</a><br /><strong>Subject:</strong> 5295<br /><strong>Posted:</strong> 18 October 2006 at 10:21am<br /><br />My solution for multiusers synchronisation is simple, implent a new table in the database call Updates in that table add fields documenttype and lastupdate (time and date) and put a timer on my main form and check updates every 2 secondes and update only is lastdate &gt; date in table updates so that way only update when someone do a change and when someone add, delete or modify a record on the save function just update the table updates<DIV>&nbsp;</DIV><DIV>Hope this help, It's as far as I know the best solution yet, dont take so many time consuming besause of a good sql query and timers in vb6 are in a separated thread so don't freeze the application</DIV><DIV>&nbsp;</DIV><DIV>Marc</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 18 Oct 2006 10:21:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16632&amp;title=best-method-multiuser-multiresource#16632</guid>
  </item> 
  <item>
   <title><![CDATA[Best  method ? Multi-USER / Multi-Resource :    vbuser wrote: QUESTION:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16619&amp;title=best-method-multiuser-multiresource#16619</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5295<br /><strong>Posted:</strong> 18 October 2006 at 3:36am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by vbuser" alt="Originally posted by vbuser" style="vertical-align: text-bottom;" /> <strong>vbuser wrote:</strong><br /><br />&nbsp;<div>QUESTION: How can I add a <strong>horizontal scroll</strong> to the control?</div><div>I need this because I have to show many resources.</div></td></tr></table><br><br>This is not possible. See also <a href="http://forum.codejock.com/forum_posts.asp?TID=3664" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=3664</a><br><br>Try to think about some workaround like show only 1 day in DayView, or change resource configuration on the fly (after switching a day, or with some additional chackboxes available for a user, and so on)<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Wed, 18 Oct 2006 03:36:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16619&amp;title=best-method-multiuser-multiresource#16619</guid>
  </item> 
  <item>
   <title><![CDATA[Best  method ? Multi-USER / Multi-Resource : Yeah, I had left those 2 lines...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16618&amp;title=best-method-multiuser-multiresource#16618</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=331">vbuser</a><br /><strong>Subject:</strong> 5295<br /><strong>Posted:</strong> 18 October 2006 at 2:55am<br /><br />Yeah, I had left those 2 lines - I think the trick was to make sure the pRes0.SetDataProvider2 has&nbsp;'Provider=custom. Thank you<DIV>&nbsp;</DIV><DIV>QUESTION: How can I add a <strong>horizontal scroll</strong> to the control?</DIV><DIV>I need this because I have to show many resources.</DIV>]]>
   </description>
   <pubDate>Wed, 18 Oct 2006 02:55:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16618&amp;title=best-method-multiuser-multiresource#16618</guid>
  </item> 
  <item>
   <title><![CDATA[Best  method ? Multi-USER / Multi-Resource : 1. Call Populate method: Cale...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16592&amp;title=best-method-multiuser-multiresource#16592</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5295<br /><strong>Posted:</strong> 17 October 2006 at 7:51am<br /><br />1. Call Populate method:<br><table width="99%"><tr><td><pre class="BBcode"><br>CalendarControl.SetMultipleResources<br>CalendarControl. Populate<br></pre></td></tr></table><br>2. Calendar Event has ScheduleID field and property.<br>Ensure that events in you table have ScheduleIDs corresponding<br>other ScheduleIDs which you setup in data provider <b>Schedules </b>member.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Tue, 17 Oct 2006 07:51:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16592&amp;title=best-method-multiuser-multiresource#16592</guid>
  </item> 
  <item>
   <title><![CDATA[Best  method ? Multi-USER / Multi-Resource : I converted the providerSQLServer...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16587&amp;title=best-method-multiuser-multiresource#16587</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=331">vbuser</a><br /><strong>Subject:</strong> 5295<br /><strong>Posted:</strong> 17 October 2006 at 3:37am<br /><br /><DIV>I converted the providerSQLServer to use Access in CUSTOM mode, so I can handle all the DoXX events for Multi-User enviroments. </DIV><DIV>I CANNOT figure out how to set up multi-resources, how do I populate&nbsp; pRes0.SetDataProvider2 ? This is what I got from teh sample:</DIV><DIV>Dim arResources As New CalendarResources<BR>&nbsp;&nbsp;&nbsp; Dim pRes0 As New CalendarResource<BR>&nbsp;&nbsp;&nbsp; Dim pRes1 As New CalendarResource<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; pRes0.SetDataProvider2 =<strong>"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &amp; App.Path &amp; "\events.mdb", True</strong><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If pRes0.DataProvider Is Nothing Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Assert False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If Not pRes0.DataProvider.Open Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not pRes0.DataProvider.Create Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Assert False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; '// ** schedules<BR>&nbsp;&nbsp;&nbsp; Dim pSchedules As CalendarSchedules<BR>&nbsp;&nbsp;&nbsp; Set pSchedules = pRes0.DataProvider.Schedules<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If pSchedules Is Nothing Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If pSchedules.Count &lt; 1 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pSchedules.AddNewSchedule "Tech 1"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pSchedules.AddNewSchedule "Tech 2"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes0.DataProvider.Save<BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; '// ** resources<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; pRes0.Name = pSchedules.Item(0).Name<BR>&nbsp;&nbsp;&nbsp; pRes0.ScheduleIDs.Add pSchedules.Item(0).Id<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; pRes1.SetDataProvider pRes0.DataProvider, False<BR>&nbsp;&nbsp;&nbsp; pRes1.Name = pSchedules.Item(1).Name<BR>&nbsp;&nbsp;&nbsp; pRes1.ScheduleIDs.Add pSchedules.Item(1).Id<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; arResources.Add pRes0<BR>&nbsp;&nbsp;&nbsp; arResources.Add pRes1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; CalendarControl.SetMultipleResources arResources</DIV><DIV>&nbsp;</DIV><DIV><strong>The problem here is that when I do this the Calendar control switches back to the internal access data provider and no longer calls the DoXX events... What did I miss?</strong></DIV><DIV>&nbsp;</DIV><DIV>Also, I need a SCROLL BAR at the buttom of the scheduler because I need to have MANY resources, about 17, in day view, and&nbsp;the scheduler&nbsp;cannot fit them properly - how can I implement this? Thank yoU!&nbsp;&nbsp;&nbsp; </DIV>]]>
   </description>
   <pubDate>Tue, 17 Oct 2006 03:37:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16587&amp;title=best-method-multiuser-multiresource#16587</guid>
  </item> 
  <item>
   <title><![CDATA[Best  method ? Multi-USER / Multi-Resource : No we have only built-in Access...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16570&amp;title=best-method-multiuser-multiresource#16570</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5295<br /><strong>Posted:</strong> 16 October 2006 at 12:09pm<br /><br />No we have only built-in Access data provider.<br>Try to use SQL Server custom data provider sample to create the same one for Access...<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Mon, 16 Oct 2006 12:09:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16570&amp;title=best-method-multiuser-multiresource#16570</guid>
  </item> 
  <item>
   <title><![CDATA[Best  method ? Multi-USER / Multi-Resource : Do you have a sampleusing Access...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16559&amp;title=best-method-multiuser-multiresource#16559</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=331">vbuser</a><br /><strong>Subject:</strong> 5295<br /><strong>Posted:</strong> 16 October 2006 at 10:30am<br /><br /><DIV>Do you have a sample&nbsp;using <strong>Access in CUSTOM mode</strong>? Perhaps an access implementation of the 'providerSQLServer" class?</DIV><DIV>thank you!</DIV>]]>
   </description>
   <pubDate>Mon, 16 Oct 2006 10:30:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5295&amp;PID=16559&amp;title=best-method-multiuser-multiresource#16559</guid>
  </item> 
 </channel>
</rss>