<?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 : [solved] Do not sort footer rows</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [solved] Do not sort footer rows]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 03 Apr 2026 22:42:17 +0000</pubDate>
  <lastBuildDate>Sun, 01 Apr 2018 18:57:55 +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=23618</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[[solved] Do not sort footer rows : Hello Martin,Thanks for information...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23618&amp;PID=76727&amp;title=solved-do-not-sort-footer-rows#76727</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23618<br /><strong>Posted:</strong> 01 April 2018 at 6:57pm<br /><br />Hello Martin,<br><br>Thanks for information about this issue. I think it is enough to change method CXTPReportSection::SortRows&nbsp;<table width="99%"><tr><td><pre class="BBcode">void CXTPReportSection::SortRows(CXTPReportRows *pRows)<div>{</div><div>&nbsp; &nbsp; <b><font color="#00cc00">ASSERT(pRows);</font></b></div><div><br></div><div>&nbsp; &nbsp; CXTPReportColumns *pColumns = m_pControl-&gt;m_pColumns;</div><div>&nbsp; &nbsp; XTPReportRowsCompareFunc pRowsCompareFunc = m_pControl-&gt;m_pRowsCompareFunc;</div><div><br></div><div>&nbsp; &nbsp; if (<b><font color="#00cc00">pRows == NULL || </font></b>0 == pRows-&gt;GetCount() <b><font color="#00cc00">|| !IsAllowSort()</font></b>)</div>&nbsp; &nbsp; &nbsp; &nbsp; return;</pre></td></tr></table><br>I will add these changes to next release.<br><br>Regards,<br>&nbsp;Oleksandr Lebed]]>
   </description>
   <pubDate>Sun, 01 Apr 2018 18:57:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23618&amp;PID=76727&amp;title=solved-do-not-sort-footer-rows#76727</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Do not sort footer rows : Hello;Can someone from CJ please...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23618&amp;PID=76722&amp;title=solved-do-not-sort-footer-rows#76722</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 23618<br /><strong>Posted:</strong> 27 March 2018 at 12:16pm<br /><br />Hello;<br><br>Can someone from CJ please confirm this bug?<br>]]>
   </description>
   <pubDate>Tue, 27 Mar 2018 12:16:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23618&amp;PID=76722&amp;title=solved-do-not-sort-footer-rows#76722</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Do not sort footer rows : But, perhaps it&amp;#039;s better...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23618&amp;PID=76720&amp;title=solved-do-not-sort-footer-rows#76720</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 23618<br /><strong>Posted:</strong> 27 March 2018 at 3:43am<br /><br />But, perhaps it's better to return from CXTPReportSection::SortRows() as soon as CXTPreportSection::IsAllowSort() returns FALSE to catch other possibilities in toolkit code too!<br>]]>
   </description>
   <pubDate>Tue, 27 Mar 2018 03:43:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23618&amp;PID=76720&amp;title=solved-do-not-sort-footer-rows#76720</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Do not sort footer rows : Hi;I believe I found the error!When...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23618&amp;PID=76719&amp;title=solved-do-not-sort-footer-rows#76719</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 23618<br /><strong>Posted:</strong> 27 March 2018 at 3:33am<br /><br />Hi;<br><br>I believe I found the error!<br>When CXTPReportControl::PopulateFooterRows() is called it is forwarded to CXTPReportSection::Populate(). Within this methode I see a SortRows() call that's not necessary when IsAllowSort() of the section returns FALSE!<br>Therefore, it's a bug inside the toolkit.<br><br>Please change this in the next release within CXTPReportSection::Populate():<br><br><table width="99%"><tr><td><pre class="BBcode">...<br>if (IsVirtualMode())<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; BuildTree(m_pTree, NULL, m_pRecords);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_nPopulatedRecordsCount = m_pTree-&gt;GetCount();<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><font color="#FF0000">if (IsAllowSort())&nbsp;&nbsp;&nbsp; &lt;-- This condition is missing here!</font></b><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; SortRows(m_pTree);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int nGroupRowsCount = 0;<br>...</pre></td></tr></table><br>]]>
   </description>
   <pubDate>Tue, 27 Mar 2018 03:33:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23618&amp;PID=76719&amp;title=solved-do-not-sort-footer-rows#76719</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Do not sort footer rows : Hi;I use several footer rows with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23618&amp;PID=76718&amp;title=solved-do-not-sort-footer-rows#76718</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 23618<br /><strong>Posted:</strong> 27 March 2018 at 3:10am<br /><br />Hi;<br><br>I use several footer rows with merged cells at the beginning (column 0 to 7). I add the records in a distinct order to the footer records collection that never should change.<br>But as soon as the user sorts one of the columns that are part of the merged cells the order of the footer rows change too (see screenshot):<br><br><img src="uploads/109/27-03-_2018_09-01-15.png" height="697" width="564" border="0" /><br><br>How can I avoid this unwanted change!<br>]]>
   </description>
   <pubDate>Tue, 27 Mar 2018 03:10:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23618&amp;PID=76718&amp;title=solved-do-not-sort-footer-rows#76718</guid>
  </item> 
 </channel>
</rss>