<?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 : Loading calendar data</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Loading calendar data]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 18:48:40 +0000</pubDate>
  <lastBuildDate>Sat, 26 Dec 2009 15:51:39 +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=15919</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[Loading calendar data : Looking at this further, I am...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15919&amp;PID=55852&amp;title=loading-calendar-data#55852</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5725">EricFowler</a><br /><strong>Subject:</strong> 15919<br /><strong>Posted:</strong> 26 December 2009 at 3:51pm<br /><br />Looking at this further, I am calling Populate() but it is returning no data ... calendar remains empty. <br /><br />Here is the code: <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_ctrlCalendar.SetDataProvider(xtpCalendarDataProviderMemory);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPCalendarData * pData = m_ctrlCalendar.GetDataProvider(); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CString strConnect = _T("Provider=XML;Data Source='.\\mystuff.caldata.xml'");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pData-&gt;SetConnectionString(strConnect);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;VERIFY(m_ctrlCalendar.Create(WS_CHILD | WS_VISIBLE , rcCalendar, this, IDC_CALENDAR_CTRL_ID));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_ctrlCalendar.ModifyStyleEx(0, WS_EX_STATICEDGE, 0);<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPCalendarControl::CUpdateContext updateCNT(&m_ctrlCalendar);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_ctrlCalendar.Populate();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_ctrlCalendar.RedrawControl();<br /><br />]]>
   </description>
   <pubDate>Sat, 26 Dec 2009 15:51:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15919&amp;PID=55852&amp;title=loading-calendar-data#55852</guid>
  </item> 
  <item>
   <title><![CDATA[Loading calendar data : *bump*  I know it&amp;#039;s Christmas...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15919&amp;PID=55845&amp;title=loading-calendar-data#55845</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5725">EricFowler</a><br /><strong>Subject:</strong> 15919<br /><strong>Posted:</strong> 25 December 2009 at 11:06pm<br /><br />*bump*<br /><br />I know it's Christmas (for a little longer anyway) but I am stuck on this, so if any of Santa's elves know how to fix it, I have a candy cane for you.<br /><br />Eric]]>
   </description>
   <pubDate>Fri, 25 Dec 2009 23:06:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15919&amp;PID=55845&amp;title=loading-calendar-data#55845</guid>
  </item> 
  <item>
   <title><![CDATA[Loading calendar data : I am able to save calendar data...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15919&amp;PID=55836&amp;title=loading-calendar-data#55836</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5725">EricFowler</a><br /><strong>Subject:</strong> 15919<br /><strong>Posted:</strong> 24 December 2009 at 12:39am<br /><br />I am able to save calendar data to a file using the default, RAM provider. I do this by getting the data source, and setting it's connection string to a file name. <br /><br />I then execute this code: <br /><br />void CCalendar::OnDestroy()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPCalendarData * pData = this-&gt;GetDataProvider();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(pData)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(pData-&gt;IsOpen())<br />&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;pData-&gt;Save(); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pData-&gt;Close(); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;__super::OnDestroy();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Revoke();<br />}<br /><br /><br />It creates a binary file, and I can see my data in it. All is good. <br /><br />Now I need to load the data from the file into the app. I looked for a CXTPCalendarData::Load() or -Read() function to no avail. <br /><br />I tried using Populate(), to no avail. Nothing loads. <br /><br />What do I need to do? It should be simple. <br /><br />Eric]]>
   </description>
   <pubDate>Thu, 24 Dec 2009 00:39:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15919&amp;PID=55836&amp;title=loading-calendar-data#55836</guid>
  </item> 
 </channel>
</rss>