<?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: xml help please.</title><link>https://www.infopathdev.com:443/forums/thread/54827.aspx</link><pubDate>Thu, 13 May 2010 09:31:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54827</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54827.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54827</wfw:commentRss><description>&lt;p&gt;Thank you very much.&amp;nbsp; This works fine.&amp;nbsp; I didn&amp;#39;t know you could put two [] together like that.&amp;nbsp; The [. !=&amp;quot;&amp;quot; and 1] was the default created by infopath.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I will know for the future.&lt;/p&gt;
&lt;p&gt;As always - much appreciated.&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item><item><title>Re: xml help please.</title><link>https://www.infopathdev.com:443/forums/thread/54815.aspx</link><pubDate>Thu, 13 May 2010 00:56:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54815</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54815.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54815</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello Catharine,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Please try changing this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;my:Asset[. != &amp;quot;&amp;quot; and 1]&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;to this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;my:Asset[. != &amp;quot;&amp;quot;][1] &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;The [&lt;b&gt;number&lt;/b&gt;] node test only works when the number is in the brackets by itself.&amp;nbsp; In the &lt;b&gt;and&lt;/b&gt; expression you have there, the 1 is being treated as the boolean value &lt;b&gt;true&lt;/b&gt;, giving it essentially no meaning at all.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>xml help please.</title><link>https://www.infopathdev.com:443/forums/thread/54800.aspx</link><pubDate>Wed, 12 May 2010 16:47:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54800</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54800.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54800</wfw:commentRss><description>&lt;p&gt;I have a main data source&lt;/p&gt;
&lt;p&gt;myFields&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SKUIntroductionGroup&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Asset (repeating)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Calc&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SiteManager&lt;/p&gt;
&lt;p&gt;I have a secondary data source &amp;quot;Lookups&amp;quot;(xml) (which I use for the multi selection list values for Asset in the main data source)&lt;/p&gt;
&lt;p&gt;Lookups&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assets&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Asset (repeating)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Site&lt;/p&gt;
&lt;p&gt;And a second secondary data source&amp;nbsp; &amp;quot;GetWhosWho&amp;quot;(dataconnection from SP)&lt;/p&gt;
&lt;p&gt;row (repeating)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Email&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Role&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Region&lt;/p&gt;
&lt;p&gt;I want to put the correct email into my field SiteManager.&amp;nbsp; Selecting Email from GetWhosWho, and filtering on the Region&amp;nbsp; - where Region is equal to the Site (in lookups) - and the Site (in Lookups) has a parent (Asset) which matches the first Asset selected in the main data source. (Convoluted huh!)&lt;/p&gt;
&lt;p&gt;So to build up to my requirement - I have created an expression box to pull out the first asset in the main data source.&lt;/p&gt;
&lt;p&gt;my:SKUIntroductionGroup/my:Asset[. != &amp;quot;&amp;quot; and 1] and this works fine (call this first asset)&lt;/p&gt;
&lt;p&gt;I have then created an expression box to pull out the site of the first asset in the main data source &lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Lookups&amp;quot;)/Lookups/Assets/Asset/@Site[xdXDocument:get-DOM()/my:myFields/my:SKUIntroductionGroup/my:Asset[. != &amp;quot;&amp;quot; and 1] = ..] &lt;/p&gt;
&lt;p&gt;this does not work as I expected - my xml is obviously not right.&amp;nbsp; If I tick items on my list going downwards it seems to work ok&lt;/p&gt;
&lt;p&gt;but if I tick the items in a bizarre order - it always picks seems to sort on the Lookup list rather than the main data source.&lt;/p&gt;
&lt;p&gt;e.g. if the LookupList&amp;nbsp;is&lt;/p&gt;
&lt;p&gt;Asset A site siteA&lt;br /&gt;Asset B site siteB&lt;br /&gt;Asset C site siteC&lt;br /&gt;Asset D site siteD&lt;/p&gt;
&lt;p&gt;And in the multi selection box I select in the order&lt;/p&gt;
&lt;p&gt;Asset A&lt;br /&gt;Asset B&lt;br /&gt;Asset D&lt;/p&gt;
&lt;p&gt;then my expression box brings me siteA&lt;/p&gt;
&lt;p&gt;If in the multi selection box I select in the order&lt;/p&gt;
&lt;p&gt;Asset C&lt;br /&gt;Asset B&lt;br /&gt;Asset A&lt;/p&gt;
&lt;p&gt;my expression box brings me siteA but my &amp;quot;first asset&amp;quot; expression box brings me Asset C&lt;/p&gt;
&lt;p&gt;Obviously I cannot move on to my next level of complexity until I have figured this one out.&amp;nbsp; I have been trying various things for the last couple of hours, some inspiration from an xml expert would be gratefully received.&amp;nbsp; (I cannot use the display name/value option in the multi selection box as I want to store the asset not the site)&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item></channel></rss>