<?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: Can't get xml to work.</title><link>https://www.infopathdev.com:443/forums/thread/55137.aspx</link><pubDate>Thu, 20 May 2010 16:56:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55137</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55137.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=55137</wfw:commentRss><description>&lt;p&gt;Thank you Jimmy.&amp;nbsp; - Why does the expression box work ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have moved on one step now....&lt;/p&gt;
&lt;p&gt;I have a secondary data source (GetWhosWho) which has Fields; Region,Role;Email&lt;/p&gt;
&lt;p&gt;I have a field whose default value is xdXDocument:GetDOM(&amp;quot;GetWhosWho&amp;quot;)/dfs:myFields/dfs:dataFields/ns3:GetListItemsStrResponse/ns3:GetListItemsStrResult/Rows/row/Email[../Role = &amp;quot;Regional EVP&amp;quot; and ../Region = xdXDocument:get-DOM()/my:myFields/my:FormCalculationsGroup/my:TopNonBlankRegionalGroup]&lt;/p&gt;
&lt;p&gt;My field TopNonBlankRegionalGroup displays a value (Thanks to Jimmy above)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Eg China&amp;nbsp; I have a row in my secondary data source which corresponds to China and Regional EVP - but no value is displayed in my field.&lt;/p&gt;
&lt;p&gt;I thought it was because the &amp;quot;China&amp;quot; in my secondary data source was different to the &amp;quot;China&amp;quot; in my field BUT&lt;/p&gt;
&lt;p&gt;I have an expression box whose value is xdXDocument:GetDOM(&amp;quot;GetWhosWho&amp;quot;)/dfs:myFields/dfs:dataFields/ns3:GetListItemsStrResponse/ns3:GetListItemsStrResult/Rows/row/Email[../Role = &amp;quot;Regional EVP&amp;quot; and ../Region = xdXDocument:get-DOM()/my:myFields/my:FormCalculationsGroup/my:TopNonBlankRegionalGroup]&lt;/p&gt;
&lt;p&gt;ie identical and the correct value appears in the expression box.&lt;/p&gt;
&lt;p&gt;This is truly driving me nuts.&amp;nbsp; My pc will be heading out the window shortly.&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item><item><title>Re: Can't get xml to work.</title><link>https://www.infopathdev.com:443/forums/thread/55119.aspx</link><pubDate>Thu, 20 May 2010 12:57:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55119</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55119.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=55119</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The funky thing about multi-selection list boxes is that default values that reference them only get updated when an item is deselected.&amp;nbsp; In addition to leaving the default value as that formula you have, please try using a rule to set the value of FirstNonBlankRegionalGroup to the value of that formula.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Can't get xml to work.</title><link>https://www.infopathdev.com:443/forums/thread/55116.aspx</link><pubDate>Thu, 20 May 2010 11:52:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55116</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55116.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=55116</wfw:commentRss><description>&lt;p&gt;I have the following data source&lt;/p&gt;
&lt;p&gt;SKUIntroductionGroup&lt;br /&gt;&amp;nbsp;&amp;nbsp; RegionalGroup (repeating field) (multi selection box on form)&lt;br /&gt;FormCalculationsGroup&lt;br /&gt;&amp;nbsp;&amp;nbsp; FirstNonBlankRegionalGroup&lt;/p&gt;
&lt;p&gt;in the FirstNonBlankRegionalGroup I want to have the first value of RegionalGroup which is not blank.&lt;/p&gt;
&lt;p&gt;I have put the default value of /my:myFields/my:SKUIntroductionGroup/my:RegionalGroup[. != &amp;quot;&amp;quot;] and it never displays any value.&lt;/p&gt;
&lt;p&gt;I have created an expression box control and put the same /my:myFields/my:SKUIntroductionGroup/my:RegionalGroup[. != &amp;quot;&amp;quot;] in it and it works fine.&amp;nbsp; I think I am going nuts.&amp;nbsp; What have I done wrong?&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item></channel></rss>