<?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: Cascading dropdown with a twist</title><link>https://www.infopathdev.com:443/forums/thread/66490.aspx</link><pubDate>Thu, 12 May 2011 15:13:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66490</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66490.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=66490</wfw:commentRss><description>&lt;p&gt;Hi, Catharine:&lt;/p&gt;&lt;p&gt;I&amp;#39;ve attached a sample form that I think does what you want. I started with more complex approaches to filtering the second multiselect, but turned out not to need them -- just a simple &amp;quot;Field from repeating group&amp;nbsp;is equal to field bound to multiselect&amp;quot; worked in my case -- I am using IP 2010 (I remember with IP 2003 and 2007 there were cases where default values behaved slightly differently in regards to current(), so I&amp;#39;m mentioning that just in case). So that would be the equivalent of the first option you tried, I think. At any rate, try this template on your machine, and see if it works for you....&lt;/p&gt;</description></item><item><title>Cascading dropdown with a twist</title><link>https://www.infopathdev.com:443/forums/thread/66392.aspx</link><pubDate>Mon, 09 May 2011 15:52:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66392</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66392.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=66392</wfw:commentRss><description>&lt;p&gt;My DataSource looks like this...&lt;/p&gt;
&lt;p&gt;MyFields&lt;br /&gt;&amp;nbsp;&amp;nbsp; RepeatingFieldHolder (Group)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RepeatingField&amp;nbsp;(repeating)&lt;br /&gt;&amp;nbsp;&amp;nbsp; LookupListGroup (Group)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RepeatingLookupGroup ( Group - repeating)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LookupList (field)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LookupListCode (field)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LookupListDescription (field)&amp;nbsp;&lt;br /&gt;&amp;nbsp; PrimaryGroup&amp;nbsp; (group)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryField (field)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a multiple selection box which stores data in /my:myFields/my:RepeatingFieldHolder/my:RepeatingField and uses&amp;nbsp;&amp;nbsp;/my:myFields/my:LookUpListGroup/my:RepeatingLookupGroup for the data items.&amp;nbsp; The Description is provided by LookupListDescription, and the value that is stored is the LookupListCode.&lt;/p&gt;
&lt;p&gt;This works great.&lt;/p&gt;
&lt;p&gt;I then need to find out which of the entries ticked is the &amp;quot;primary&amp;quot; and store the information in /my:myFields/my:PrimaryGroup/my:PrimaryField&lt;/p&gt;
&lt;p&gt;So what I want to do is create a dropdown of all the values selected in the multiple selection box.&amp;nbsp; I can create the dropdown and use /my:myFields/my:RepeatingFieldHolder/my:RepeatingField as the source of the data.&amp;nbsp; BUT when I do that the list is only showing the LookupListCode - because I haven&amp;#39;t stored the description.&lt;/p&gt;
&lt;p&gt;My thought was I could use /my:myFields/my:LookUpListGroup/my:RepeatingLookupGroup&amp;nbsp;again and add a filter to see if the LookupListCode existed in /my:myFields/my:RepeatingFieldHolder/my:RepeatingField.&amp;nbsp; I have tried several different options and don&amp;#39;t seem to be able to get the filter right.&amp;nbsp; I know I have to make sure I look in all the repeating fields - but need some help with the xml.&amp;nbsp; I have tried the following filters....&lt;/p&gt;
&lt;p&gt;my:LookupListCode = ../../my:RepeatingFieldHolder/my:RepeatingField&lt;br /&gt;my:LookupListCode = /my:RepeatingFieldHolder/my:RepeatingField&lt;br /&gt;my:LookupListCode = //my:RepeatingFieldHolder/my:RepeatingField&lt;br /&gt;count(/my:RepeatingFieldHolder/my:RepeatingField[.=current()/my:LookupListCode])=1&lt;/p&gt;
&lt;p&gt;Could someone point me in the right direction please&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item></channel></rss>