<?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 : GetSelectedConstraintData question</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : GetSelectedConstraintData question]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 14:57:02 +0000</pubDate>
  <lastBuildDate>Sat, 02 May 2009 21:47:00 +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=13105</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[GetSelectedConstraintData question : hi   what is the equivalent...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13105&amp;PID=48563&amp;title=getselectedconstraintdata-question#48563</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5194">gopalreddy_g</a><br /><strong>Subject:</strong> 13105<br /><strong>Posted:</strong> 02 May 2009 at 9:47pm<br /><br />hi <DIV>&nbsp;</DIV><DIV>what is the equivalent code to do the same in Vb.Net</DIV><DIV>&nbsp;</DIV><DIV>Gopal</DIV>]]>
   </description>
   <pubDate>Sat, 02 May 2009 21:47:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13105&amp;PID=48563&amp;title=getselectedconstraintdata-question#48563</guid>
  </item> 
  <item>
   <title><![CDATA[GetSelectedConstraintData question : Thanks! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13105&amp;PID=44460&amp;title=getselectedconstraintdata-question#44460</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13105<br /><strong>Posted:</strong> 12 January 2009 at 3:12am<br /><br />Thanks!]]>
   </description>
   <pubDate>Mon, 12 Jan 2009 03:12:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13105&amp;PID=44460&amp;title=getselectedconstraintdata-question#44460</guid>
  </item> 
  <item>
   <title><![CDATA[GetSelectedConstraintData question : base class function AFX_INLINE...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13105&amp;PID=44388&amp;title=getselectedconstraintdata-question#44388</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13105<br /><strong>Posted:</strong> 09 January 2009 at 11:53am<br /><br />base class function<DIV><FONT size=2>AFX_INLINE DWORD CXTPReportRecordItem::GetSelectedConstraintData(XTP_REPORTRECORDITEM_ARGS* </FONT><FONT color=#008000 size=2>/*pItemArgs*/</FONT><FONT size=2>) {</DIV><DIV></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> DWORD(-1);} - do nothing, derived class can do that you wants - see function</FONT></DIV><DIV><FONT size=2><FONT size=2>DWORD CXTPReportRecordItemVariant::GetSelectedConstraintData(XTP_REPORTRECORDITEM_ARGS* pItemArgs)</FONT></FONT></DIV><DIV><FONT size=2>example - in TaskListView from ReportSample app</FONT></DIV><DIV><FONT size=2><FONT size=2><P></FONT><FONT color=#0000ff size=2>class</FONT><FONT size=2> CTaskItemImportance : </FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2> CXTPReportRecordItem</P><P>{</P><P></FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2>:</P><P>CTaskItemImportance(TaskImportance taskImportance){SetImportance(taskImportance);}</P><P></FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> OnConstraintChanged(XTP_REPORTRECORDITEM_ARGS* </FONT><FONT color=#008000 size=2>/*pItemArgs*/</FONT><FONT size=2>, CXTPReportRecordItemConstraint* pConstraint){SetImportance((TaskImportance)pConstraint-&gt;m_dwData);}</P><P></P><P>DWORD GetSelectedConstraintData(XTP_REPORTRECORDITEM_ARGS* </FONT><FONT color=#008000 size=2>/*pItemArgs*/</FONT><FONT size=2>){</FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> m_taskImportance;}</P></FONT></DIV></FONT>]]>
   </description>
   <pubDate>Fri, 09 Jan 2009 11:53:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13105&amp;PID=44388&amp;title=getselectedconstraintdata-question#44388</guid>
  </item> 
  <item>
   <title><![CDATA[GetSelectedConstraintData question : I really need help with this....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13105&amp;PID=44365&amp;title=getselectedconstraintdata-question#44365</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13105<br /><strong>Posted:</strong> 09 January 2009 at 7:19am<br /><br />I really need help with this. In OnReportValueChanged(...):<DIV>&nbsp;</DIV><DIV>// TODO: It should be possible to get the constraint data without string comparison!<BR>&nbsp;&nbsp;&nbsp;BOOL isEnabled = FALSE;<BR>&nbsp;&nbsp;&nbsp;int numberConstraints = pItemNotify-&gt;pColumn-&gt;GetEditOptions()-&gt;GetConstraints()-&gt;GetCount();<BR>&nbsp;&nbsp;&nbsp;for (int i = 0; i &lt; numberConstraints; ++i)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;CXTPReportRecordItemConstraint* pConstraint = pItemNotify-&gt;pColumn-&gt;GetEditOptions()-&gt;GetConstraints()-&gt;GetAt(i);<BR>&nbsp;&nbsp;&nbsp;&nbsp;if (pItemString-&gt;GetValue() == pConstraint-&gt;m_strConstraint)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isEnabled = static_cast&lt;BOOL&gt;(pConstraint-&gt;m_dwData);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;}<BR></DIV><DIV>&nbsp;</DIV><DIV>It should be possible to get the constraint data immediately, without this ugly code! Any ideas?</DIV>]]>
   </description>
   <pubDate>Fri, 09 Jan 2009 07:19:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13105&amp;PID=44365&amp;title=getselectedconstraintdata-question#44365</guid>
  </item> 
  <item>
   <title><![CDATA[GetSelectedConstraintData question : I handle XTP_NM_REPORT_VALUECHANGED....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13105&amp;PID=44248&amp;title=getselectedconstraintdata-question#44248</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13105<br /><strong>Posted:</strong> 07 January 2009 at 10:47am<br /><br />I handle <FONT color=#010001 size=2>XTP_NM_REPORT_VALUECHANGED. Inside my handler I want to retrieve the data of the selected constraint.</FONT><DIV>&nbsp;</DIV><DIV><strong>GetSelectedConstraintData</strong> always <strong>returns -1.</strong> Is this a bug? How do I get the associated data?</DIV><DIV>&nbsp;</DIV><DIV>(I know I can loop through the constraints and compare their string values, but that is very ugly and not reliable.)</DIV>]]>
   </description>
   <pubDate>Wed, 07 Jan 2009 10:47:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13105&amp;PID=44248&amp;title=getselectedconstraintdata-question#44248</guid>
  </item> 
 </channel>
</rss>