<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Complex double eval...</title><link>https://www.infopathdev.com:443/forums/thread/74991.aspx</link><pubDate>Mon, 06 Feb 2012 16:52:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74991</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74991.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74991</wfw:commentRss><description>&lt;p&gt;I think you can just do the same thing here as you did with the Business field:&lt;/p&gt;
&lt;p&gt;xdMath:Eval(xdMath:Eval(xdXDocument:GetDOM(&amp;quot;Who To Copy&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Who_To_Copy[@Business = xdXDocument:get-DOM()/my:myFields/my:SKUIntroductionGroup/my:Business and @Admin = &amp;quot;1&amp;quot; and @Region = xdXDocument:get-DOM()/my:myFields/my:SKUIntroductionGroup/my:Region[. != &amp;#39;&amp;#39;]], &amp;#39;concat(@Email, &amp;quot;; &amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Have you tried that yet?&lt;/p&gt;</description></item><item><title>Complex double eval...</title><link>https://www.infopathdev.com:443/forums/thread/74983.aspx</link><pubDate>Mon, 06 Feb 2012 15:45:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74983</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74983.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74983</wfw:commentRss><description>&lt;p&gt;Hi, I am using InfoPath 2007.&lt;/p&gt;
&lt;p&gt;I have a secondary data source.&lt;/p&gt;
&lt;p&gt;myFields&lt;br /&gt;&amp;nbsp; dataFields (group)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Who_To_Copy (repeating group)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Business&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Region&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Email&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Admin.&lt;/p&gt;
&lt;p&gt;In my main data source I have &lt;/p&gt;
&lt;p&gt;myFields&lt;br /&gt;&amp;nbsp; SKUIntroductionGroup - group&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Business&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Region (repeating field)&lt;/p&gt;
&lt;p&gt;I want to concatenate the email field&amp;nbsp;from Who_To_Copy where the Business matches the Business in the main data source, and the Admin is set to true, AND the region matches any of the non blank regions set in the main data source.&amp;nbsp; It is the last criteria that I am having problems with... so far I have the following. which works&lt;/p&gt;
&lt;p&gt;xdMath:Eval(xdMath:Eval(xdXDocument:GetDOM(&amp;quot;Who To Copy&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Who_To_Copy[@Business = xdXDocument:get-DOM()/my:myFields/my:SKUIntroductionGroup/my:Business and @Admin = &amp;quot;1&amp;quot;], &amp;#39;concat(@Email, &amp;quot;; &amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&lt;/p&gt;
&lt;p&gt;I have tried adding the following to the filter - but that does not work.&lt;/p&gt;
&lt;p&gt;and count(xdXDocument:get-DOM()/my:myFields/my:SKUIntroductionGroup/my:Region[. = xdXDocument:GetDOM(&amp;quot;Who To Copy&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Who_To_Copy/@Region]) &amp;gt; 0 &lt;/p&gt;
&lt;p&gt;I have tried adding and that doesn&amp;#39;t work.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;and count(xdXDocument:get-DOM()/my:myFields/my:SKUIntroductionGroup/my:Region[. = current()/@Region]) &amp;gt; 0 &lt;/p&gt;
&lt;p&gt;Is this a step to far ?&amp;nbsp; Is there a way to achieve this ?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>