<?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 : Separating data set from the report control</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Separating data set from the report control]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 20:28:11 +0000</pubDate>
  <lastBuildDate>Fri, 09 Feb 2007 18:59:28 +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=6338</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[Separating data set from the report control : Sounds good.  Thanks! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20258&amp;title=separating-data-set-from-the-report-control#20258</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 6338<br /><strong>Posted:</strong> 09 February 2007 at 6:59pm<br /><br />Sounds good.<DIV>&nbsp;</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Fri, 09 Feb 2007 18:59:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20258&amp;title=separating-data-set-from-the-report-control#20258</guid>
  </item> 
  <item>
   <title><![CDATA[Separating data set from the report control : Note that in virtual mode another...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20251&amp;title=separating-data-set-from-the-report-control#20251</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6338<br /><strong>Posted:</strong> 09 February 2007 at 1:15pm<br /><br />Note that in virtual mode another control will be reading records only when there is a need to display them. So if you have only 1 tab activated at a time, it will work ok.<br><br>Having virtual mode definitely would help you, but if you need grouping feature, it's not your case because grouping is not working in virtual mode.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Fri, 09 Feb 2007 13:15:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20251&amp;title=separating-data-set-from-the-report-control#20251</guid>
  </item> 
  <item>
   <title><![CDATA[Separating data set from the report control : Not a bad idea.  I have been...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20248&amp;title=separating-data-set-from-the-report-control#20248</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 6338<br /><strong>Posted:</strong> 09 February 2007 at 11:48am<br /><br />Not a bad idea.<DIV>&nbsp;</DIV><DIV>I have been looking at this "virtual mode" functionality and if you could use the same allocated row buffer for all report controls, then your method would work. Though, what happens if a record is deleted at the same time another control is trying to read it? Feels like some mutual exclusion is needed here.</DIV><DIV>&nbsp;</DIV><DIV>Otherwise observer seems to be the right choice. I'll dig into this.</DIV><DIV>&nbsp;</DIV><DIV>Thanks for your thoughts!</DIV>]]>
   </description>
   <pubDate>Fri, 09 Feb 2007 11:48:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20248&amp;title=separating-data-set-from-the-report-control#20248</guid>
  </item> 
  <item>
   <title><![CDATA[Separating data set from the report control : Hi Chris,  just another idea...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20221&amp;title=separating-data-set-from-the-report-control#20221</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 6338<br /><strong>Posted:</strong> 08 February 2007 at 4:50pm<br /><br />Hi Chris,<DIV>&nbsp;</DIV><DIV>just another idea that came into my mind after reading your post:</DIV><DIV>What about switching all the report controls to virtual mode and implement a observer pattern like the MFC internal doc/view architecture.</DIV><DIV>When data is change in one of the controls, the control&nbsp;informs the subject about the changes and the subject then sends notifications to the (remaining) controls.</DIV><DIV>Is this a possible way for you?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 08 Feb 2007 16:50:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20221&amp;title=separating-data-set-from-the-report-control#20221</guid>
  </item> 
  <item>
   <title><![CDATA[Separating data set from the report control : Thanks!I will implement such a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20212&amp;title=separating-data-set-from-the-report-control#20212</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 6338<br /><strong>Posted:</strong> 08 February 2007 at 1:06pm<br /><br /><P>Thanks!&nbsp;I will implement such a function for my specific purposes.</P>]]>
   </description>
   <pubDate>Thu, 08 Feb 2007 13:06:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20212&amp;title=separating-data-set-from-the-report-control#20212</guid>
  </item> 
  <item>
   <title><![CDATA[Separating data set from the report control : Consider using .FilterText property.You...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20210&amp;title=separating-data-set-from-the-report-control#20210</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6338<br /><strong>Posted:</strong> 08 February 2007 at 12:19pm<br /><br />Consider using .FilterText property.<br><br>You can set different .FilterText for different views and call .Populate when switching them. It will allow to see different sets of data.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 08 Feb 2007 12:19:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20210&amp;title=separating-data-set-from-the-report-control#20210</guid>
  </item> 
  <item>
   <title><![CDATA[Separating data set from the report control : Thanks for your answer.  It...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20206&amp;title=separating-data-set-from-the-report-control#20206</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 6338<br /><strong>Posted:</strong> 08 February 2007 at 11:42am<br /><br />Thanks for your answer.<DIV>&nbsp;</DIV><DIV>It is not critical, but certain aspects of it would actually be easier if all records were shared between the report controls. Please consider this scenario:</DIV><DIV>&nbsp;</DIV><DIV>* I have three different report views; A, B and C.</DIV><DIV>* A only shows records that, say, contain the text "ok".</DIV><DIV>* All records are written to disk. To avoid unnecessary disk access records should be cached. I think CXTPRecords would be sufficient as a cached container.</DIV><DIV>* In all views --&nbsp;A, B and C --&nbsp;you can change the text to "ok". When A is activated it should contain the updated content. Here I want to avoid reading from disk and populating the control from scratch.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>If there is no obvious solution offered by the Codejock-classes, then I can of course come up with&nbsp;a solution of my own. Still, I think this type of problem is revelant for the report control itself.</DIV><DIV>&nbsp;</DIV><DIV>What do you think? Any ideas I should consider?</DIV>]]>
   </description>
   <pubDate>Thu, 08 Feb 2007 11:42:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20206&amp;title=separating-data-set-from-the-report-control#20206</guid>
  </item> 
  <item>
   <title><![CDATA[Separating data set from the report control : Hi Chris,Actually you can have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20154&amp;title=separating-data-set-from-the-report-control#20154</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6338<br /><strong>Posted:</strong> 07 February 2007 at 3:08pm<br /><br />Hi Chris,<br><br>Actually you can have a common storage of Records and it will not consume redundant memory. If you look into implementation of CXTPReportRecords methods Add() and Remove() you can see that it actually operates with Record methods InternalAddRef() and InternalRelease().&nbsp; So far, in several collections you can have references to same Record objects. <br><br>However, this may not be good when you need to edit records (specifically add/remove them).<br><br>Another solution would be to set CXTPReportControl::m_pRecords pointer to some custom common collection for all  your Report controls.<br><br>All in all, it depends on a number of records which do you have and an amount of memory used. If it is not critically, may be there are no sense to add additional complexity. <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="middle"><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Wed, 07 Feb 2007 15:08:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20154&amp;title=separating-data-set-from-the-report-control#20154</guid>
  </item> 
  <item>
   <title><![CDATA[Separating data set from the report control : Hi!  In my application I have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20141&amp;title=separating-data-set-from-the-report-control#20141</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 6338<br /><strong>Posted:</strong> 07 February 2007 at 5:12am<br /><br />Hi!<DIV>&nbsp;</DIV><DIV>In my application I have multiple views of the same data. In many of these views a report control shows the data - in different ways of course. I'm wondering if there is an easy&nbsp;way to separate the report control from the data set in order to avoid duplicates in memory.</DIV><DIV>&nbsp;</DIV><DIV>Should I add this "singleton functionality" in my overrided CXTPRecord class? Surely this is not the first time this type of behaviour is wanted. Any ideas?</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance!</DIV><DIV>/Chris, Sweden</DIV>]]>
   </description>
   <pubDate>Wed, 07 Feb 2007 05:12:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6338&amp;PID=20141&amp;title=separating-data-set-from-the-report-control#20141</guid>
  </item> 
 </channel>
</rss>