<?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 New Feature</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Possible New Feature]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 16:38:45 +0000</pubDate>
  <lastBuildDate>Mon, 03 Oct 2005 17:12:34 +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=2758</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 New Feature : I should have known better than...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2758&amp;PID=8932&amp;title=possible-new-feature#8932</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=33">RolandoE.</a><br /><strong>Subject:</strong> 2758<br /><strong>Posted:</strong> 03 October 2005 at 5:12pm<br /><br /><P>I should have known better than to ask that dumb question!! <IMG src="http://forum.codejock.com/smileys/smiley18.gif" border="0"></P><P>Thanks for the answer. It actually began to make sence what I had to do after I gave your suggestion more thought.</P><P>Thanks anyway!! <IMG src="http://forum.codejock.com/smileys/smiley9.gif" border="0"></P>]]>
   </description>
   <pubDate>Mon, 03 Oct 2005 17:12:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2758&amp;PID=8932&amp;title=possible-new-feature#8932</guid>
  </item> 
  <item>
   <title><![CDATA[Possible New Feature : Rolando,  That should be your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2758&amp;PID=8919&amp;title=possible-new-feature#8919</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 2758<br /><strong>Posted:</strong> 03 October 2005 at 6:03am<br /><br />Rolando,<br /><br />That should be your code, not a patch to Calendar sources. And you can insert it anywhere as you like <img border="0" src="http://forum.codejock.com/smileys/smiley1.gif" border="0">, even inside Calendar class. <br /><br />It can be a member of class derived from calendar, or a member of your view or dialog class, or even a global function, if this is convenient for you.  <img border="0" src="http://forum.codejock.com/smileys/smiley2.gif" border="0"> <br /><br />--<br />WBR,<br />Serge]]>
   </description>
   <pubDate>Mon, 03 Oct 2005 06:03:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2758&amp;PID=8919&amp;title=possible-new-feature#8919</guid>
  </item> 
  <item>
   <title><![CDATA[Possible New Feature :   This is probably a dumb question...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2758&amp;PID=8907&amp;title=possible-new-feature#8907</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=33">RolandoE.</a><br /><strong>Subject:</strong> 2758<br /><strong>Posted:</strong> 02 October 2005 at 7:03pm<br /><br /><P>This is probably a dumb question but here goes! <IMG src="http://forum.codejock.com/smileys/smiley17.gif" border="0"></P><P>The code you are referring to above...</P><P><FONT face="Courier New, Courier, mono">void Populate(LPCTSTR pcszUserName)</FONT> </P><P>Am I to create this code within one of my application's classes or within the Calendar class?</P><P>Rolando <IMG src="http://forum.codejock.com/smileys/smiley18.gif" border="0"></P>]]>
   </description>
   <pubDate>Sun, 02 Oct 2005 19:03:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2758&amp;PID=8907&amp;title=possible-new-feature#8907</guid>
  </item> 
  <item>
   <title><![CDATA[Possible New Feature : Rolando,  Yes, it&amp;#039;s clear...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2758&amp;PID=8260&amp;title=possible-new-feature#8260</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 2758<br /><strong>Posted:</strong> 22 August 2005 at 10:28am<br /><br />Rolando,<br /><br />Yes, it's clear what do you need. We are preparing almost identical piece of functionality for further releases. Currently you can only filter events coming into Calendar control in some customized manner. One of possible solutions is what I've mentioned above.<br /><br />--<br />WBR, <br />Serge]]>
   </description>
   <pubDate>Mon, 22 Aug 2005 10:28:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2758&amp;PID=8260&amp;title=possible-new-feature#8260</guid>
  </item> 
  <item>
   <title><![CDATA[Possible New Feature : Hi, Thanks for the quick reply....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2758&amp;PID=8259&amp;title=possible-new-feature#8259</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=33">RolandoE.</a><br /><strong>Subject:</strong> 2758<br /><strong>Posted:</strong> 22 August 2005 at 10:15am<br /><br /><P>Hi,</P><P>Thanks for the quick reply. Even though I already have an appointment table in my database I already was able to link it to the Event table created by this control. </P><P>What I'm looking to do is the following...</P><P>Since we are developing a multi-user application I would like to display only the events which belong to the person using the application. The way I see doing this (short of having multiple Calendar MDB files) is by passing a list of EventIDs to the Calendar control. This way the control will only display the specified events.</P><P>Thanks.</P>]]>
   </description>
   <pubDate>Mon, 22 Aug 2005 10:15:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2758&amp;PID=8259&amp;title=possible-new-feature#8259</guid>
  </item> 
  <item>
   <title><![CDATA[Possible New Feature : Hi Rolando,  As I understand you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2758&amp;PID=8257&amp;title=possible-new-feature#8257</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 2758<br /><strong>Posted:</strong> 22 August 2005 at 9:55am<br /><br />Hi Rolando,<br /><br />As I understand you have your own database with events data and you need to display them in the CalendarControl.<br /> <br />In this case you cannot use DataBase data provider which is shipped with the Calendar control because it is designed to work with Access DB and expects some predefined DB tables structure.<br /> <br />We already got some questions about how to connect calendar control to custom database. To make this process more universal data providers mechanism will be reorganized in the next versions. <br /> <br />But for the current version (and for the future to) you can use another technique described below.<br />It is quite easy and straightforward but for big amounts of events in the database it will have not very good performance results (load speed and memory usage).<br />But for a few thousands events it works fine. Of course, in the new versions this problem will be fixed.<br /> <br /><br />So, to use your custom database, you have to write your own function to populate CalendarControl from the DB and catch events like EventAdded, EventChanged, EventDeleted to update your DB contents when user makes some changes in the calendar.<br /> <br />Look at the example below which illustrates this idea:<br /> <br />void Populate(LPCTSTR pcszUserName)<br />{<br /> &nbsp;&nbsp;&nbsp;&nbsp;pWndCalendar-&gt;GetDataProvider()-& gt;RemoveAllEvents();<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;// Read events for the specified user from your DB here<br />&nbsp;&nbsp;&nbsp;&nbsp;// objEventsCollection - recordset object with events data<br /> <br />&nbsp;&nbsp;&nbsp;&nbsp;while( !objEventsCollection-&gt;GetbEOF() )<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DWORD dwEventID = &lt;objEventsCollection("EventID")&gt; or XTP_CALENDAR_UNKNOWN_EVENT_ID;<br /> <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPCalendarEventPtr ptrEvent = CXTPCalendarData::CreateNewEvent(dwEventID);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;  <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ptrEvent-&gt;SetStartTime = ...<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ...<br /> <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pWndCalendar-&gt;GetDataProvider().AddEvent(ptrEvent);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /> <br />&nbsp;&nbsp;&nbsp;&nbsp;pWndCalendar-&gt;Populate();<br />}<br /> <br />Also you can advise to the following calendar notifications to update database:<br />&nbsp;&nbsp;&nbsp;&nbsp;XTP_NC_CALENDAREVENTWASADDED<br />&nbsp;&nbsp;&nbsp;&nbsp;XTP_NC_CALENDAREVENTWASDELETED<br />&nbsp;&nbsp;&nbsp;&nbsp;XTP_NC_CALENDAREVENTWASCHANGED<br /> <br />Please see also Calendar Demo project and documentation how to work with them.<br /><br />Also, look at the similar questions at <a href="http://forum.codejock.com/forum_posts.asp?TID=2735&PN=1" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=2735&PN=1</a><br /><br />--<br />WBR, <br />Serge<br />]]>
   </description>
   <pubDate>Mon, 22 Aug 2005 09:55:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2758&amp;PID=8257&amp;title=possible-new-feature#8257</guid>
  </item> 
  <item>
   <title><![CDATA[Possible New Feature : Hi, This functionality wasn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2758&amp;PID=8251&amp;title=possible-new-feature#8251</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=33">RolandoE.</a><br /><strong>Subject:</strong> 2758<br /><strong>Posted:</strong> 21 August 2005 at 11:25pm<br /><br /><P>Hi,</P><P>This functionality wasn't apparent when reviewing the documentation but I need to filter the calendar event to be displayed by user. I have a table called ApptTaskList and from there I can get a list of all calendar events by user. I would then like to display the calendar event which belong to the chosen user.</P><P>Is this possible with the present control or should I post this as a suggestion? </P><P>Thanks.</P><span style="font-size:10px"><br /><br />Edited by RolandoE.</span>]]>
   </description>
   <pubDate>Sun, 21 Aug 2005 23:25:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2758&amp;PID=8251&amp;title=possible-new-feature#8251</guid>
  </item> 
 </channel>
</rss>