<?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 : Changing edit options of record item</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Changing edit options of record item]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 09:30:56 +0000</pubDate>
  <lastBuildDate>Mon, 16 Aug 2010 00:16:23 +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=14664</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[Changing edit options of record item : Hi, Could you show me the sample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14664&amp;PID=59777&amp;title=changing-edit-options-of-record-item#59777</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6280">Lee Inwoo</a><br /><strong>Subject:</strong> 14664<br /><strong>Posted:</strong> 16 August 2010 at 12:16am<br /><br /><DIV>Hi,</DIV><DIV>Could you show me the sample code more exactly plz?</DIV><DIV>The code&nbsp;you wrote not work (since I can't understand).</DIV><DIV>&nbsp;</DIV><DIV>My environment info is as follows:</DIV>Product: Xtreme Toolkit Pro version&nbsp;13.4.0 <BR>Platform: Windows&nbsp;7(64bit) <BR>Language: Visual C++ MFC 2008]]>
   </description>
   <pubDate>Mon, 16 Aug 2010 00:16:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14664&amp;PID=59777&amp;title=changing-edit-options-of-record-item#59777</guid>
  </item> 
  <item>
   <title><![CDATA[Changing edit options of record item : I&amp;#039;m trying to achieve something...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14664&amp;PID=57613&amp;title=changing-edit-options-of-record-item#57613</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=760">dennisV</a><br /><strong>Subject:</strong> 14664<br /><strong>Posted:</strong> 15 March 2010 at 5:57pm<br /><br />I'm trying to achieve something similar, but can't seem to get it to work properly.<br><br>I've got basically two lists of constraints to be chosen via a combo box. But it seems that if the first row's combo box has 10 items and the second row's combo has 11 items (and I can see them correctly - 10 and 11), I cannot select the last item in the second row's combo. I still need to investigate this a bit deeper...<br>]]>
   </description>
   <pubDate>Mon, 15 Mar 2010 17:57:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14664&amp;PID=57613&amp;title=changing-edit-options-of-record-item#57613</guid>
  </item> 
  <item>
   <title><![CDATA[Changing edit options of record item : Perfect, Doubson!Thanks a lot. ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14664&amp;PID=51368&amp;title=changing-edit-options-of-record-item#51368</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5356">coco</a><br /><strong>Subject:</strong> 14664<br /><strong>Posted:</strong> 27 July 2009 at 8:17am<br /><br />Perfect, Doubson!<br><br>Thanks a lot.<br>]]>
   </description>
   <pubDate>Mon, 27 Jul 2009 08:17:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14664&amp;PID=51368&amp;title=changing-edit-options-of-record-item#51368</guid>
  </item> 
  <item>
   <title><![CDATA[Changing edit options of record item :     CXTPReportColumn| //...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14664&amp;PID=51291&amp;title=changing-edit-options-of-record-item#51291</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14664<br /><strong>Posted:</strong> 24 July 2009 at 6:20pm<br /><br /><FONT size=2><P></FONT><FONT color=#008000 size=2></P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2></P><DIV><FONT color=#ff0000 size=2><P>CXTPReportColumn|</P></FONT></DIV><DIV>// Retrieves CXTPReportRecordItemEditOptions.</DIV></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>// Returns:</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>// Edit Options of column</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>//-----------------------------------------------------------------------</P></FONT><FONT size=2><DIV>CXTPReportRecordItemEditOptions* GetEditOptions() </FONT><FONT color=#0000ff size=2>const</FONT><FONT size=2>;</DIV><DIV></DIV><DIV></DIV><FONT size=2><P>CXTPReportRecordItemEditOptions* m_pEditOptions; </FONT><FONT color=#008000 size=2>// Edit options of the column</P><DIV><FONT color=#990000 size=2><P>CXTPReportRecordItem</P></FONT></DIV><DIV><DIV></DIV><DIV></DIV><FONT size=2><FONT color=#000000>CXTPReportRecordItemEditOptions* m_pEditOptions; </FONT></FONT><FONT color=#008000 size=2>// Edit options of the item.</FONT></DIV><DIV><FONT color=#008000 size=2><FONT size=2><P><FONT color=#000000>CXTPReportRecordItemEditOptions* CXTPReportRecordItem::GetEditOptions(CXTPReportColumn* pColumn)</FONT></P><P><FONT color=#000000>{</FONT></P><P></FONT><FONT color=#000000 size=2>if</FONT><FONT size=2><FONT color=#000000> (m_pEditOptions)</FONT></P><P></FONT><FONT color=#000000 size=2>return</FONT><FONT size=2><FONT color=#000000> m_pEditOptions;</FONT></P><P></FONT><FONT color=#000000 size=2>if</FONT><FONT size=2><FONT color=#000000> (pColumn)</FONT></P><P></FONT><FONT color=#000000 size=2>return</FONT><FONT size=2><FONT color=#000000> pColumn-&gt;GetEditOptions();</FONT></P><P></FONT><FONT color=#000000><FONT size=2>return</FONT><FONT size=2> m_pEditOptions = </FONT><FONT size=2>new</FONT></FONT><FONT size=2><FONT color=#000000> CXTPReportRecordItemEditOptions();</FONT></P><P><FONT color=#000000>}</FONT></P></FONT></FONT></DIV><DIV><FONT color=#008000 size=2>&nbsp;</DIV><DIV><FONT color=#ff0000>so you need to pass NULL instead of pColumn to create individual CXTPReportRecordItem::m_pEditOptions</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Fri, 24 Jul 2009 18:20:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14664&amp;PID=51291&amp;title=changing-edit-options-of-record-item#51291</guid>
  </item> 
  <item>
   <title><![CDATA[Changing edit options of record item :  I don&amp;#039;t know if I was clear....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14664&amp;PID=51269&amp;title=changing-edit-options-of-record-item#51269</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5356">coco</a><br /><strong>Subject:</strong> 14664<br /><strong>Posted:</strong> 24 July 2009 at 9:03am<br /><br /><DIV><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-ansi-: EN-US"><FONT size=3>I don't know if I was clear. It is a simple feature and I can not implement it in no way. </FONT></SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-ansi-: EN-US"><FONT size=3>I just must implement a column where different lines shall have different constraints.<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-ansi-: EN-US"><o:p><FONT size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-ansi-: EN-US"><FONT size=3>However, when I try to edit options of a specific record item by CXTPReportRecordItem::GetEditOptions method, it requires me a pColumn parameter: <o:p></o:p></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-ansi-: EN-US"><o:p><FONT size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-ansi-: EN-US"><FONT size=3>CXTPReportRecordItemEditOptions* GetEditOptions( CXTPReportColumn* pColumn );<o:p></o:p></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-ansi-: EN-US"><o:p><FONT size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-ansi-: EN-US"><FONT size=3>It seems that the returned value is&nbsp;a pointer to the <strong>column</strong> edit options. <o:p></o:p></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-ansi-: EN-US"><o:p><FONT size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-ansi-: EN-US"><FONT size=3>How can I access the edit option of a specific record (not applied to the whole column)?</P><DIV></DIV><DIV></DIV><DIV></DIV><DIV></FONT></SPAN>&nbsp;</DIV></DIV>]]>
   </description>
   <pubDate>Fri, 24 Jul 2009 09:03:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14664&amp;PID=51269&amp;title=changing-edit-options-of-record-item#51269</guid>
  </item> 
  <item>
   <title><![CDATA[Changing edit options of record item : Hi,  I am facing a problem when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14664&amp;PID=50545&amp;title=changing-edit-options-of-record-item#50545</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5356">coco</a><br /><strong>Subject:</strong> 14664<br /><strong>Posted:</strong> 01 July 2009 at 2:43pm<br /><br />Hi,<div>&nbsp;</div><div>I am facing a problem when trying to edit options of record items instead of columns. </div><div>The context is: I need to implement a report control with a columnof type combo box, but the constraints of the combo boxes will not bethe same for all records.&nbsp;For instance, even lines will have a set ofconstraint and odd lines will have another set of constraints (it was asimplified example).</div><div>Hence, I am accessing&nbsp;CXTPReportRecordItemEditOptions from&nbsp;each record instead of accessing it from the column. </div><div>&nbsp;</div><div>PS: documentation says that this class represents edit options of the single item or column.</div><div>&nbsp;</div><div>However, when I change edit options&nbsp;of a record, it is extended to&nbsp;the whole&nbsp;column.</div><div>&nbsp;</div><div>Does anyone know how can I change edit options (setting contraints) of a specific record?</div><div>&nbsp;</div><div>This is the code (adapted) in focus:</div><div>&nbsp;</div><font color="#008000"><font color="#008000"><font size="2" face="Courier New, Courier, mono"></font></font></font><div><font color="#008000"><font color="#008000"><font size="2" face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; CXTPReportColumns* pCols = repControl.GetColumns();<br>&nbsp;&nbsp; &nbsp;CXTPReportRecords* pRecords = repControl.GetRecords();<br>&nbsp;&nbsp; &nbsp;CXTPReportRecordItemEditOptions* pEditOptions;<br>&nbsp;&nbsp; &nbsp;CXTPReportColumn* pCol;<br><br><br>&nbsp;&nbsp; &nbsp;// resetting constraints for dynamic combo box "COLUMN_ID", row by row<br>&nbsp;&nbsp; &nbsp;pCol = pCols-&gt;GetAt( COLUMN_ID );<br>&nbsp;&nbsp; &nbsp;for ( int i = 0; i &lt; pRecords-&gt;GetCount(); i++ )<br>&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// clear old constraints<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;pRecord = ( MyRecord* )pRecords-&gt;GetAt( i );<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;pEditOptions = ( pRecord-&gt;GetItem( COLUMN_ID ) )-&gt;GetEditOptions( pCol );<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;pEditOptions-&gt;GetConstraints()-&gt;RemoveAll();<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// repopulate "id" constraints according to even/odd line<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if ( i % 2 == 0 )<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;for ( int i = MIN_PROP_ID; i &lt;= MAX_PROP_ID; i++ )<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;pEditOptions-&gt;AddConstraint( ToString( i ) );<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;else<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;for ( int i = MIN_INV_ID; i &lt;= MAX_INV_ID; i++ )<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;pEditOptions-&gt;AddConstraint( ToString( i ) );<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;}</font></font></font></div><span style="font-size: 8pt; color: green; font-family: 'Courier New';" lang="EN"></span>]]>
   </description>
   <pubDate>Wed, 01 Jul 2009 14:43:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14664&amp;PID=50545&amp;title=changing-edit-options-of-record-item#50545</guid>
  </item> 
 </channel>
</rss>