<?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 : Get C&#111;nstraint assoziated Data from Combo</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Get C&#111;nstraint assoziated Data from Combo]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 23:09:08 +0000</pubDate>
  <lastBuildDate>Mon, 20 Feb 2006 06:25:15 +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=3676</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[Get C&#111;nstraint assoziated Data from Combo : Fixed the problem by adding an...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3676&amp;PID=11062&amp;title=get-constraint-assoziated-data-from-combo#11062</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1796">Janomat</a><br /><strong>Subject:</strong> 3676<br /><strong>Posted:</strong> 20 February 2006 at 6:25am<br /><br />Fixed the problem by adding an own implementation of CXTPReportRecordItem:<br><br>Here is the code snipped:<br><br>class MyCustomReportRecordItem : public CXTPReportRecordItem<br>{<br>&nbsp;&nbsp;&nbsp; virtual void OnConstraintChanged(XTP_REPORTRECORDITEM_ARGS* pItemArgs, CXTPReportRecordItemConstraint* pConstraint)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(pConstraint)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_dwData = pConstraint-&gt;m_dwData;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_strCaption = pConstraint-&gt;m_strConstraint;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>};<br><br><br>]]>
   </description>
   <pubDate>Mon, 20 Feb 2006 06:25:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3676&amp;PID=11062&amp;title=get-constraint-assoziated-data-from-combo#11062</guid>
  </item> 
  <item>
   <title><![CDATA[Get C&#111;nstraint assoziated Data from Combo :  Hi there,i&#180;m facing problems...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3676&amp;PID=11060&amp;title=get-constraint-assoziated-data-from-combo#11060</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1796">Janomat</a><br /><strong>Subject:</strong> 3676<br /><strong>Posted:</strong> 20 February 2006 at 5:25am<br /><br />Hi there,<br><br>i´m facing problems in retrieving the assoziated constraint data from an inplace combo on a CXTPReportControl. While adding the data is no problem i find that retrieving is absolutly impossible. Here is the code snipped:<br><br>&nbsp;&nbsp;&nbsp; CXTPReportRecordItemEditOptions *m_pEditOptions;<br>&nbsp;&nbsp;&nbsp; m_pEditOptions = pColumn-&gt;GetEditOptions();<br>&nbsp;&nbsp;&nbsp; m_pEditOptions-&gt;m_bAllowEdit = false;<br>&nbsp;&nbsp;&nbsp; m_pEditOptions-&gt;m_bConstraintEdit = false; <br>&nbsp;&nbsp;&nbsp; m_pEditOptions-&gt;AddComboButton();<br>&nbsp;&nbsp;&nbsp; m_pEditOptions-&gt;AddConstraint(_T("Name"),1);<br>&nbsp;&nbsp;&nbsp; m_pEditOptions-&gt;AddConstraint(_T("Surname"),2);<br><br>I receive the notification for the changed value using <br>&nbsp;&nbsp;&nbsp; ON_NOTIFY(XTP_NM_REPORT_VALUECHANGED, IDC_LISTPARAM, EditItemPARAM)<br><br>While the recorditem is holding the new string value after edit the item is NOT holding the associated data value<br><br>CXTPReportRecordItemText *pItem =   dynamic_cast&lt;CXTPReportRecordItemText*&gt;(pItemNotify-&a mp;g t;pItem);<br><br>pItem-&gt;GetValue() success (holds the selected text value)<br>pItem-&gt;GetItemData() fails (always 0)<br><br>Questions:<br>1.) Why does the inplace combo set the text value but not the data value ?<br>2.) How do i retrieve the selected index or the selected constraint itself if NOT using enum types (cannot handle this here cause the content of the inplacebutton changes with every edit)<br><br>Would be really happy if someone can answer these questions...<br><br>Jan<br><br><br><br><br><br>]]>
   </description>
   <pubDate>Mon, 20 Feb 2006 05:25:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3676&amp;PID=11060&amp;title=get-constraint-assoziated-data-from-combo#11060</guid>
  </item> 
 </channel>
</rss>