<?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 : How to read userselected c&#111;nstraints</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : How to read userselected c&#111;nstraints]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 27 Apr 2026 14:26:16 +0000</pubDate>
  <lastBuildDate>Thu, 27 Apr 2006 02:57:13 +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=4044</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[How to read userselected c&#111;nstraints : Hi, It works!! i am working with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12449&amp;title=how-to-read-userselected-constraints#12449</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1951">cmaxmedia</a><br /><strong>Subject:</strong> 4044<br /><strong>Posted:</strong> 27 April 2006 at 2:57am<br /><br /><P>Hi, It works!!</P><P>i am working with adodb.7 recordsets to fill the user data into the report as follows:</P><P><table width="99%"><tr><td><pre class="BBcode"><BR><BR>Set Record = .Records.Add<BR>Set Item = Record.AddItem("")<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; <BR>Set Item = Record.AddItem(CStr(MyRS("strCommunicationType")))<BR>Item.Caption = CStr(MyRS("strCommunicationType"))</P><P>Set Item = Record.AddItem(MyRS("strValue"))<BR>Item.Caption = MyRS("strValue")</P><P>Set Item = Record.AddItem("")<BR>Item.Caption = NZ("")</P><P>Set Item = Record.AddItem(MyRS("ysnMain"))<BR>Item.HasCheckbox = True<BR>Item.Checked = MyRS("ysnMain")<BR><BR>Record.AddItem ""<BR>Record.PreviewText = MyRS("ID")<BR>Record.Tag = MyRS("ID")<BR><BR></pre></td></tr></table></P><P>take a look at the code line 3 and 4. now i am using the cstr() vb-command AND =&gt; it works <IMG src="http://forum.codejock.com/smileys/smiley4.gif" border="0"></P><P>Thank you for your support.<BR>markus</P>]]>
   </description>
   <pubDate>Thu, 27 Apr 2006 02:57:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12449&amp;title=how-to-read-userselected-constraints#12449</guid>
  </item> 
  <item>
   <title><![CDATA[How to read userselected c&#111;nstraints : in your sample code, it fires...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12407&amp;title=how-to-read-userselected-constraints#12407</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4044<br /><strong>Posted:</strong> 25 April 2006 at 2:13pm<br /><br />in your sample code, it fires ValueChanged if you change any item, but you should iterate constraints for your "Typ" column item. So far, it should be working if you change it in a following way:<br><table width="99%"><tr><td><pre class="BBcode"><br><font style="font-family: Courier New,Courier,mono;" size="2">Set Column = Me.wndReportControl.Columns.Add(1, "Typ", 150, True)<br>Column.EditOptions.Constraints.Add "Phone", 1<br>Column.EditOptions.Constraints.Add "Email",&nbsp;2<br>Column.EditOptions.Constraints.Add "Homepage", 3</font><font size="2"><br style="font-family: Courier New,Courier,mono;"></font><font size="1"><font size="1"><font size="2"><span style="font-family: Courier New,Courier,mono;">Column.EditOptions.AddComboButton</span></font><br></font></font></pre></td></tr></table><br><br><table width="99%"><tr><td><pre class="BBcode"><br><font style="font-family: Courier New,Courier,mono;" size="2">Private SubReportControl_ValueChanged(ByVal Row As XtremeReportControl.IReportRow,ByVal Column As XtremeReportControl.IReportColumn, ByVal Item AsXtremeReportControl.IReportRecordItem)<br>&nbsp;If Item.Index = 1 Then<br></font><font size="2"><span style="font-family: Courier New,Courier,mono;">&nbsp; For Each c In wndReportControl.Columns(Item.Index).EditOptions.Constraints</span><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">&nbsp;&nbsp; &nbsp;&nbsp; Debug.Print c.Caption </span><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">&nbsp; Next</span><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">&nbsp;End If</span><br style="font-family: Courier New,Courier,mono;"></font><p style="font-family: Courier New,Courier,mono;"><font size="2">End Sub</font></p></pre></td></tr></table><br><br>My previous piece of code works fine if you insert it into standard ReportSample, _ValueChanged handler.<br><br>If it still doesn't work for you, try attaching your sample and I'll check it up.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Tue, 25 Apr 2006 14:13:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12407&amp;title=how-to-read-userselected-constraints#12407</guid>
  </item> 
  <item>
   <title><![CDATA[How to read userselected c&#111;nstraints : oh sorry, i have currently checked,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12397&amp;title=how-to-read-userselected-constraints#12397</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1951">cmaxmedia</a><br /><strong>Subject:</strong> 4044<br /><strong>Posted:</strong> 25 April 2006 at 3:53am<br /><br /><P>oh sorry, i have currently checked, that this is the wrong forum for activex com&nbsp;<IMG src="http://forum.codejock.com/smileys/smiley18.gif" border="0"> .<BR><BR>i'd be very pleased, if you can send me a code sample</P><P>kind regards<BR>Markus</P>]]>
   </description>
   <pubDate>Tue, 25 Apr 2006 03:53:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12397&amp;title=how-to-read-userselected-constraints#12397</guid>
  </item> 
  <item>
   <title><![CDATA[How to read userselected c&#111;nstraints : hi,thank you for your reply, but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12380&amp;title=how-to-read-userselected-constraints#12380</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1951">cmaxmedia</a><br /><strong>Subject:</strong> 4044<br /><strong>Posted:</strong> 24 April 2006 at 8:28am<br /><br /><P>hi,<BR>thank you for your reply, but your the returned array is empty so the&nbsp;debug.print will not be fired.</P><P>I fill the column constraints as follows:</P><FONT size=1><P><FONT size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Column = Me.wndReportControl.Columns.Add(1, "Typ", 150, True)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.EditOptions.AddComboButton<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.EditOptions.Constraints.Add "Phone", 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.EditOptions.Constraints.Add "Email",&nbsp;2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.EditOptions.Constraints.Add "Homepage", 3<BR><BR><FONT size=2>I have tried the following code:<BR></FONT></FONT><FONT size=1>Private Sub ReportControl_ValueChanged(ByVal Row As XtremeReportControl.IReportRow, ByVal Column As XtremeReportControl.IReportColumn, ByVal Item As XtremeReportControl.IReportRecordItem)</FONT></P>For Each c In wndReportControl.Columns(Item.Index).EditOptions.Constraints<BR>&nbsp;&nbsp;&nbsp; Debug.Print c.Caption&nbsp; '&lt;= there's no debugger output<BR>Next<P><FONT size=1><FONT size=2><FONT size=1>End Sub</FONT></FONT></FONT></P><P><FONT size=1><FONT size=2>i am working with Codejock XTreme Suite Pro ActiveX V9.81<BR>thank you for your support<BR>Kind regards<BR>Markus</FONT></P></FONT></FONT>]]>
   </description>
   <pubDate>Mon, 24 Apr 2006 08:28:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12380&amp;title=how-to-read-userselected-constraints#12380</guid>
  </item> 
  <item>
   <title><![CDATA[How to read userselected c&#111;nstraints : Just iterate constraints for an...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12377&amp;title=how-to-read-userselected-constraints#12377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4044<br /><strong>Posted:</strong> 24 April 2006 at 7:51am<br /><br />Just iterate constraints for an appropriate column, which index is an item index. See below:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>For Each c In wndReportControl.Columns(Item.Index).EditOptions.Constraints<br>&nbsp;&nbsp;&nbsp; Debug.Print c.Caption<br>Next<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br><br>]]>
   </description>
   <pubDate>Mon, 24 Apr 2006 07:51:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12377&amp;title=how-to-read-userselected-constraints#12377</guid>
  </item> 
  <item>
   <title><![CDATA[How to read userselected c&#111;nstraints : Hi, thanx for your answer, the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12376&amp;title=how-to-read-userselected-constraints#12376</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1951">cmaxmedia</a><br /><strong>Subject:</strong> 4044<br /><strong>Posted:</strong> 24 April 2006 at 7:37am<br /><br /><P>Hi,</P><P>thanx for your answer, the constaints are defined for each column. How can i get the currently selected Constaint of the item, the user is editing?<BR><BR>kind regards<BR>Markus</P>]]>
   </description>
   <pubDate>Mon, 24 Apr 2006 07:37:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12376&amp;title=how-to-read-userselected-constraints#12376</guid>
  </item> 
  <item>
   <title><![CDATA[How to read userselected c&#111;nstraints : Hi, Iterate editing constraints...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12375&amp;title=how-to-read-userselected-constraints#12375</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4044<br /><strong>Posted:</strong> 24 April 2006 at 7:16am<br /><br />Hi, <br><br>Iterate editing constraints you can in a following way, depending whether you set them for a column or for an item:<br><table width="99%"><tr><td><pre class="BBcode"><br>Dim c As ReportRecordItemConstraint<br>For Each c In Item.EditOptions.Constraints ' or wndReport.Columns(column_index).EditOptions.Constraints<br>&nbsp;&nbsp;&nbsp; Debug.Print c.Caption<br>Next<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Mon, 24 Apr 2006 07:16:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12375&amp;title=how-to-read-userselected-constraints#12375</guid>
  </item> 
  <item>
   <title><![CDATA[How to read userselected c&#111;nstraints : If I have added a contstraint...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12362&amp;title=how-to-read-userselected-constraints#12362</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1951">cmaxmedia</a><br /><strong>Subject:</strong> 4044<br /><strong>Posted:</strong> 22 April 2006 at 6:49am<br /><br /><P>If I have added a contstraint to the first <strong>column</strong> of the reportcontrol like this:<BR><BR><FONT size=1>&nbsp;&nbsp;&nbsp; Column.EditOptions.AddComboButton<BR>&nbsp;&nbsp;&nbsp; Column.EditOptions.Constraints.Add "Phone", 1<BR>&nbsp;&nbsp;&nbsp; Column.EditOptions.Constraints.Add "Email",&nbsp;2<BR>&nbsp;&nbsp;&nbsp; Column.EditOptions.Constraints.Add "Homepage", 3</FONT><BR><BR>now i want to get the user selection for an item in the reportcontrol-list with about 15 lines.<BR><BR>for reading the user value i am working like this<BR><BR><FONT size=1>Private Sub ReportControl_ValueChanged(ByVal Row As XtremeReportControl.IReportRow, ByVal Column As XtremeReportControl.IReportColumn, ByVal Item As XtremeReportControl.IReportRecordItem)<BR><BR>&nbsp;&nbsp; 'this part works fine, if not constraints exists in column object<BR>&nbsp;&nbsp; Msgbox Item.Caption<BR><BR>&nbsp;&nbsp; 'now i'd like to read the user input, when a Constraints Dropdowncombo exists like<BR>&nbsp;&nbsp; Msgbox Item.SelectedConstraints.Value ?<BR><BR>End Sub<BR></FONT><FONT size=1><BR><FONT size=2>Kind regards</FONT></P></FONT>]]>
   </description>
   <pubDate>Sat, 22 Apr 2006 06:49:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4044&amp;PID=12362&amp;title=how-to-read-userselected-constraints#12362</guid>
  </item> 
 </channel>
</rss>