<?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 : Bug report on mixing AddRecord &amp; AddRecordEx</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Bug report on mixing AddRecord &amp; AddRecordEx]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 06:20:02 +0000</pubDate>
  <lastBuildDate>Mon, 16 May 2011 13:53:03 +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=18371</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[Bug report on mixing AddRecord &amp; AddRecordEx : Hi,please create a support ticket...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18371&amp;PID=64409&amp;title=bug-report-on-mixing-addrecord-addrecordex#64409</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 18371<br /><strong>Posted:</strong> 16 May 2011 at 1:53pm<br /><br />Hi,<br><br>please create a support ticket and attach a small sample that demonstrates the bug.<br><br>Andre<br><br>]]>
   </description>
   <pubDate>Mon, 16 May 2011 13:53:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18371&amp;PID=64409&amp;title=bug-report-on-mixing-addrecord-addrecordex#64409</guid>
  </item> 
  <item>
   <title><![CDATA[Bug report on mixing AddRecord &amp; AddRecordEx : I repost this message, the thread...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18371&amp;PID=64381&amp;title=bug-report-on-mixing-addrecord-addrecordex#64381</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5151">apautrot</a><br /><strong>Subject:</strong> 18371<br /><strong>Posted:</strong> 14 May 2011 at 5:05am<br /><br /><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">I repost this message, the thread being closed :</div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">-----</div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">I have many troubles when mixing AddRecord &amp; AddRecordEx. I discover that AddRecord is a lot faster than AddRecordEx ( ..., NULL ). But there is troubles when mixing them :</div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">I have an ASSERT in&nbsp;CXTPReportRows::CompareRows2 :</div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><div><i>if (pRecord1-&gt;GetIndex() == pRecord2-&gt;GetIndex())</i></div><div><i>{</i></div><div><i><span style="white-space: pre; ">	</span>ASSERT(FALSE);</i></div><div><i><span style="white-space: pre; ">	</span>return 0;</i></div><div><i>}</i></div></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">I also have visual bugs (rows not properly created) when using AddRecord, then AddRecordEx (with record used in AddRecord as parent) finished by a RedrawControl (faster than Populate when doing a small update to the record hierarchy that contains 10000+ items).</div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">What is done in AddRecordEx ( ..., NULL ) that is not done in AddRecord ?</div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">Is there a code example or a documentation to fastly update report content ?</div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">I'm using XTP 15.01.</div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">-----</div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">Then Andre reply :</div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">Hi,<br><br>please post the code you use to populate the report control.<br><br>Andre</div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">-----</div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">Here is my code :</div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></div><div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><font ="Apple-style-span" face="'Courier New', Courier, mono">// create record</font></span></div><div><span ="Apple-style-span" style="font-family: 'Courier New', Courier, mono; -webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">...</span></div><div><span ="Apple-style-span" style="font-family: 'Courier New', Courier, mono; -webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">pRecord -&gt; AddItem ( pNameItem );</span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><font ="Apple-style-span" face="'Courier New', Courier, mono">pRecord -&gt; AddItem ( pLibraryNameItem );</font></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><font ="Apple-style-span" face="'Courier New', Courier, mono">pRecord -&gt; AddItem ( pClassNameItem );</font></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><font ="Apple-style-span" face="'Courier New', Courier, mono">pRecord -&gt; AddItem ( pIdItem );</font></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><font ="Apple-style-span" face="'Courier New', Courier, mono"><br></font></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><font ="Apple-style-span" face="'Courier New', Courier, mono">// add</font></span></div><div><span ="Apple-style-span" style="font-family: 'Courier New', Courier, mono; -webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">if ( pParentRecord != NULL )</span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><font ="Apple-style-span" face="'Courier New', Courier, mono">{<span ="Apple-tab-span" style="white-space:pre">	</span>_oReport.AddRecordEx ( pRecord, pParentRecord ); }</font></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><font ="Apple-style-span" face="'Courier New', Courier, mono">else</font></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><font ="Apple-style-span" face="'Courier New', Courier, mono">{<span ="Apple-tab-span" style="white-space:pre">	</span>_oReport.AddRecord ( pRecord ); }</font></span></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><br></span></font></div></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><font ="Apple-style-span" face="'Courier New', Courier, mono">...</font></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><font ="Apple-style-span" face="'Courier New', Courier, mono"><br></font></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><font ="Apple-style-span" face="'Courier New', Courier, mono">// initial report fill is followed by a</font></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><font ="Apple-style-span" face="'Courier New', Courier, mono">_oReport.Populate();</font></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><font ="Apple-style-span" face="'Courier New', Courier, mono"><br></font></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><font ="Apple-style-span" face="'Courier New', Courier, mono">...</font></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><font ="Apple-style-span" face="'Courier New', Courier, mono"><br></font></div><div style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><font ="Apple-style-span" face="'Courier New', Courier, mono">// then further small changes to report are followed by a</font></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><font ="Apple-style-span" face="'Courier New', Courier, mono">_oReport.RedrawControl();</font></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">Bugs happen in case of small changes with a NULL pParentRecord (thus that falls into call of AddRecord) that are followed by a RedrawControl</span></div>]]>
   </description>
   <pubDate>Sat, 14 May 2011 05:05:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18371&amp;PID=64381&amp;title=bug-report-on-mixing-addrecord-addrecordex#64381</guid>
  </item> 
 </channel>
</rss>