<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Comparing 2 multiple-selection list boxes looking for identical values.</title><link>https://www.infopathdev.com:443/forums/thread/95133.aspx</link><pubDate>Fri, 10 Jan 2014 15:17:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95133</guid><dc:creator>Kishan Srivastava</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95133.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=95133</wfw:commentRss><description>Hey ,

I have the same kind of requirement. 
Scenario is :
I have 2 multiple list boxes and if the values in the 2 multiple list boxes not matching then set the text Box A value to fail and if value matches then set value Pass.

I have tried getting the multiple list box value in the text box by using eval function. But its not working.
Please help.

Regards
Kishan</description></item><item><title>Re: Comparing 2 multiple-selection list boxes looking for identical values.</title><link>https://www.infopathdev.com:443/forums/thread/48144.aspx</link><pubDate>Thu, 22 Oct 2009 13:01:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48144</guid><dc:creator>TiltnSpill</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48144.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48144</wfw:commentRss><description>&lt;p&gt;Hey Jimmy,&lt;/p&gt;
&lt;p&gt;Thank you again for all of your help!&amp;nbsp; This works like a charm.&amp;nbsp; I have to say the multi-select boxes are definitely quirky and you have been a tremendous help.&lt;/p&gt;
&lt;p&gt;Have a great one.&lt;/p&gt;</description></item><item><title>Re: Comparing 2 multiple-selection list boxes looking for identical values.</title><link>https://www.infopathdev.com:443/forums/thread/48127.aspx</link><pubDate>Wed, 21 Oct 2009 22:19:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48127</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48127.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48127</wfw:commentRss><description>&lt;p&gt;The formula is:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;count(&lt;i&gt;&lt;u&gt;&lt;b&gt;full path to listbox1&amp;#39;s field&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;[. = &lt;u&gt;&lt;i&gt;&lt;b&gt;full path to listbox 2&amp;#39;s field&lt;/b&gt;&lt;/i&gt;&lt;/u&gt;])&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;so if my first listbox is bound to field2 and my second listbox is field4, the formula would be:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;count(/my:myFields/my:group1/my:field2[. = /my:myFields/my:group1/my:field4])&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;I&amp;#39;ll let you experiment around with any rules/default values for copying this value to a field.&amp;nbsp; Remember that there&amp;#39;s also the option of displaying the formula&amp;#39;s value in an expression box. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Comparing 2 multiple-selection list boxes looking for identical values.</title><link>https://www.infopathdev.com:443/forums/thread/48110.aspx</link><pubDate>Wed, 21 Oct 2009 17:27:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48110</guid><dc:creator>TiltnSpill</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48110.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48110</wfw:commentRss><description>&lt;p&gt;Thanks JImmy.&lt;/p&gt;
&lt;p&gt;I just want a count of the intersected items.&amp;nbsp; So if 2 items show up in both lists, a field value is set as 2.&lt;/p&gt;
&lt;p&gt;You are saying this can only be accomplished with code correct?&lt;/p&gt;</description></item><item><title>Re: Comparing 2 multiple-selection list boxes looking for identical values.</title><link>https://www.infopathdev.com:443/forums/thread/48108.aspx</link><pubDate>Wed, 21 Oct 2009 16:19:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48108</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48108.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48108</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;If it&amp;#39;s simply for display purposes (i.e. you&amp;#39;re not storing the intersected list somewhere in the data source), then this is possible without code.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Make a repeating table/section bound to the same field as listbox 1 and set the conditional formatting:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;Expression: not(&lt;b&gt;&lt;i&gt;&lt;u&gt;path to field for listbox 2&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;[. = current()]) &lt;/p&gt;&lt;p&gt;Behavior: hide this control &lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Comparing 2 multiple-selection list boxes looking for identical values.</title><link>https://www.infopathdev.com:443/forums/thread/48106.aspx</link><pubDate>Wed, 21 Oct 2009 16:05:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48106</guid><dc:creator>TiltnSpill</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48106.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48106</wfw:commentRss><description>&lt;p&gt;This is more of a pipe dream than anything else, but I&amp;#39;ll ask anyways!&lt;/p&gt;&lt;p&gt;I have 2 multi-selection list boxes containing identical items.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;For example.&amp;nbsp; Listbox1 contains 10 items (numbers 1-10), as does ListBox2.&amp;nbsp;&amp;nbsp;&amp;nbsp; In Listbox 1... the numbers 1,2,3 are selected. In listbox2, only numbers 1 and 2 are selected.&lt;/p&gt;&lt;p&gt;Are they any code-less solutions to compare the 2 listboxes?&amp;nbsp; I&amp;#39;d like to know what instances appear in both listboxes (1 &amp;amp; 2) and hopefully, the differences.&amp;nbsp; (the #3 appears in Listbox 2, but not in Listbox 1)&lt;/p&gt;&lt;p&gt;I doubt I can do this without coding... but maybe someone can share some good news with me!&lt;/p&gt;&lt;p&gt;Thanks in advance. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>