<?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 : Problems with Populate() now auto-selecting a row</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Problems with Populate() now auto-selecting a row]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 04 Jun 2026 09:54:43 +0000</pubDate>
  <lastBuildDate>Tue, 17 Apr 2012 15:38:58 +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=19652</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[Problems with Populate() now auto-selecting a row :    drisch wrote:We are not sure...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19652&amp;PID=68010&amp;title=problems-with-populate-now-autoselecting-a-row#68010</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 19652<br /><strong>Posted:</strong> 17 April 2012 at 3:38pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by drisch" alt="Originally posted by drisch" style="vertical-align: text-bottom;" /> <strong>drisch wrote:</strong><br /><br /><font color="#0000ff" face="Courier New"><font color="#0000ff" face="Courier New"><font color="#0000ff" face="Courier New"></font></font></font><p><font size="2">We are not sure why this new piece of code is here. There doesn't seem to be any mention of this in the release notes. Is this a new feature?</font></p><p><font size="2"></font></td></tr></table></p>Hello,<br><br>this is a bugfix. The report control has always selected the first row on populate if <font size="2"><font face="Courier New, Courier, mono">InitialSelectionEnable</font></font> was enabled, but hasn't send the notification that the selection has changed.<br><br>If you do not want this message to be send, you can set <font size="2"><font face="Courier New, Courier, mono">GetBehavior()-&gt;Notifications-&gt;Populate-&gt;bSelectionChanged</font></font> to FALSE.<br><br>Andre<br><br><font size="2"><font face="Courier New, Courier, mono"></font></font>]]>
   </description>
   <pubDate>Tue, 17 Apr 2012 15:38:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19652&amp;PID=68010&amp;title=problems-with-populate-now-autoselecting-a-row#68010</guid>
  </item> 
  <item>
   <title><![CDATA[Problems with Populate() now auto-selecting a row : We seem to have found a solution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19652&amp;PID=68008&amp;title=problems-with-populate-now-autoselecting-a-row#68008</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2151">drisch</a><br /><strong>Subject:</strong> 19652<br /><strong>Posted:</strong> 17 April 2012 at 1:21pm<br /><br /><P>We seem to have found a solution which we are testing. We call the following on the CXTPReportControl item and this seems to prevent auto-selection.</P><FONT size=2><P><FONT face="Courier New, Courier, mono">&nbsp;&nbsp; InitialSelectionEnable(FALSE);</FONT></P><DIV>-Derek</DIV></FONT>]]>
   </description>
   <pubDate>Tue, 17 Apr 2012 13:21:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19652&amp;PID=68008&amp;title=problems-with-populate-now-autoselecting-a-row#68008</guid>
  </item> 
  <item>
   <title><![CDATA[Problems with Populate() now auto-selecting a row :    Hi, I&amp;#039;m also experiencing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19652&amp;PID=68005&amp;title=problems-with-populate-now-autoselecting-a-row#68005</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4289">fjosesen</a><br /><strong>Subject:</strong> 19652<br /><strong>Posted:</strong> 17 April 2012 at 9:47am<br /><br />&nbsp;&nbsp;&nbsp; Hi,<div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp; I'm also experiencing problems when dropping an element. Now, the first row in the control is selected, scrolling up to it. So, it's very annoying to play with drag and drop. I'm not sure if it is the same problem that described in this post. I'm also using the ActiveX version of the control.</div><div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp; Can anyone tell us anything about how to activate/simulate the previous behaviour?</div><div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp; Kind regards,</div><div>&nbsp;</div><div>Sen</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Tue, 17 Apr 2012 09:47:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19652&amp;PID=68005&amp;title=problems-with-populate-now-autoselecting-a-row#68005</guid>
  </item> 
  <item>
   <title><![CDATA[Problems with Populate() now auto-selecting a row : We use report controls extensively...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19652&amp;PID=67985&amp;title=problems-with-populate-now-autoselecting-a-row#67985</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2151">drisch</a><br /><strong>Subject:</strong> 19652<br /><strong>Posted:</strong> 13 April 2012 at 10:45am<br /><br /><P><FONT size=2>We use report controls extensively in our applications (probably more than 20 in each) and we recently upgraded from XTP 15.2.1 to 15.2.1.0403 to address a crash when dragging a grouped field onto the report. However we almost immediately began noticing very strange behavior all over our application. It turns out that each time we load data into the report control, an item is now auto-selected. Since we often respond to a user selection of data, we had the application going crazy and selecting things by itself all over the place in response to Populate calls as we often show subdetails from one item in a second report, and their children in a third. We don't want a cascading effect if the user is not actually physically clicking on the row. </FONT></P><P><FONT size=2>Here is the new piece of code inserted after the initial release of 15.2.1 at the end of&nbsp;CXTPReportControl::Populate().&nbsp;</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV><FONT face="Courier New, Courier, mono">if (GetBehavior()-&gt;Notifications-&gt;Populate-&gt;bSelectionChanged)<BR>{<BR>&nbsp;&nbsp; if (m_pSelectedRows-&gt;IsChanged())<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OnSelectionChanged();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pSelectedRows-&gt;SetChanged(FALSE);<BR>&nbsp;&nbsp; }<BR>}</FONT></FONT></DIV></BLOCKQUOTE><FONT face="Courier New" color=#0000ff><FONT face="Courier New" color=#0000ff><FONT face="Courier New" color=#0000ff><P></FONT></FONT></FONT><FONT size=2>We are not sure why this new piece of code is here. There doesn't seem to be any mention of this in the release notes. Is this a new feature?. Why is the default behavior now to send a selection changed message on populate? The CXTPReportBehavior class is not even documented. I suppose we can go to each of our report controls and set the bSelectionChanged variable to false, but would it not make more sense that this should be false by default if this makes such a big change in behavior?</FONT></P><P><FONT size=2>For now we are thinking of rolling back to the initial 15.2.1 release and live with the bugs that the hotfix resolves rather than trying to patch this new behavior and possibly miss some cases.</FONT></P><P><FONT size=2>Derek</FONT></P>]]>
   </description>
   <pubDate>Fri, 13 Apr 2012 10:45:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19652&amp;PID=67985&amp;title=problems-with-populate-now-autoselecting-a-row#67985</guid>
  </item> 
 </channel>
</rss>