<?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 : Changed behaviour of Populate method</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Changed behaviour of Populate method]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 04 Jun 2026 08:01:11 +0000</pubDate>
  <lastBuildDate>Tue, 20 Nov 2012 13:12:49 +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=20082</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[Changed behaviour of Populate method : Hi;Have you tried to set CXTPR...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=20082&amp;PID=69261&amp;title=changed-behaviour-of-populate-method#69261</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 20082<br /><strong>Posted:</strong> 20 November 2012 at 1:12pm<br /><br />Hi;<br><br>Have you tried to set <br><div ="Element5"><br>CXTPReportControl::m_bInitialSelectionEnable=FALSE;<br><br><br></div>]]>
   </description>
   <pubDate>Tue, 20 Nov 2012 13:12:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=20082&amp;PID=69261&amp;title=changed-behaviour-of-populate-method#69261</guid>
  </item> 
  <item>
   <title><![CDATA[Changed behaviour of Populate method :  I changed to 15.3.1 from 13.3.1...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=20082&amp;PID=69248&amp;title=changed-behaviour-of-populate-method#69248</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3546">Luza</a><br /><strong>Subject:</strong> 20082<br /><strong>Posted:</strong> 16 November 2012 at 11:51am<br /><br />I changed to 15.3.1 from 13.3.1 just now.<br><br>Have the same problem. App crashes because of this call.<br>I use a CXTPReportView which has a CXTPReportControl.<br>I do not derive from CXTPReportControl so i can not use your solution.<br><br>I looked at the added functionality in the Populate function and i see some added Behavior functions?!<br><br>Just added this after creating the CXTPReportView.<br><br><em> //m_pProjectTreeView is derived from CXTPReportView.<br>// Obtain the target report<br>//CXTPReportControl* CProjectTreeView::GetTargetReport()<br>//{<br>// &nbsp; return &amp;(GetReportCtrl());<br>//} <br><br>&nbsp; m_pProjectTreeView-&gt;GetTargetReport()-&gt;GetBehavior()-&gt;Notifications-&gt;Populate-&gt;bSelectionChanged = false;</em><br><br>This will do the trick. <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" /><br><br>I do not know what <em> GetBehavior()-&gt;Notifications-&gt;Populate-&gt;bSelectionChanged </em> does.<br>But as far as i can tell everything works just fine when its false.<img src="http://forum.codejock.com/smileys/smiley29.gif" border="0" alt="Wacko" title="Wacko" /><br><br><br><br>]]>
   </description>
   <pubDate>Fri, 16 Nov 2012 11:51:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=20082&amp;PID=69248&amp;title=changed-behaviour-of-populate-method#69248</guid>
  </item> 
  <item>
   <title><![CDATA[Changed behaviour of Populate method : Hi, since we changed our version...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=20082&amp;PID=68824&amp;title=changed-behaviour-of-populate-method#68824</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5151">apautrot</a><br /><strong>Subject:</strong> 20082<br /><strong>Posted:</strong> 24 August 2012 at 4:46am<br /><br />Hi, since we changed our version to the 15.31 we now have this different&nbsp;behavior&nbsp;: Populate method now call a selection clear that ends in a notification to the listener of the message&nbsp;XTP_NM_REPORT_SELCHANGED. This was not the case with the previous version we used, the 15.13.<div><br></div><div>We have to embrace our code with a lock counter to avoid reacting to selection change notification.</div><div><br></div><div>selectionLockCount++;</div><div>_report.Populate();</div><div>selectionLockCount--;</div><div><br></div><div>void OnSelectionChanged(NMHDR* pNotifyStruct, LRESULT* pResult)</div><div>{</div><blockquote style="margin: 0 0 0 40px; border: n&#111;ne; padding: 0px;"><div>if &nbsp;(selectionLockCount == 0)</div><div>{</div></blockquote><blockquote style="margin: 0 0 0 40px; border: n&#111;ne; padding: 0px;"><blockquote style="margin: 0 0 0 40px; border: n&#111;ne; padding: 0px;"><div>...</div></blockquote>}</blockquote><div>}</div><div><br></div><div>Hope that knowing that might help other programmers.</div>]]>
   </description>
   <pubDate>Fri, 24 Aug 2012 04:46:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=20082&amp;PID=68824&amp;title=changed-behaviour-of-populate-method#68824</guid>
  </item> 
 </channel>
</rss>