<?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: Filter issue</title><link>https://www.infopathdev.com:443/forums/thread/28633.aspx</link><pubDate>Thu, 08 May 2008 23:27:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28633</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28633.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28633</wfw:commentRss><description>&lt;p&gt;Anyway, glad to hear its working!&lt;/p&gt;</description></item><item><title>Re: Filter issue</title><link>https://www.infopathdev.com:443/forums/thread/28632.aspx</link><pubDate>Thu, 08 May 2008 23:27:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28632</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28632.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28632</wfw:commentRss><description>&lt;p&gt;current() confuses most people. Once you understand it, it makes life much easier, however, always knowing exactly which node it represents can sometimes present a problem! It bites me sometimes too.&lt;/p&gt;</description></item><item><title>Re: Filter issue</title><link>https://www.infopathdev.com:443/forums/thread/28607.aspx</link><pubDate>Thu, 08 May 2008 09:08:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28607</guid><dc:creator>ben.oates</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28607.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28607</wfw:commentRss><description>&lt;p&gt;Cheers Greg... right on the money. I have to be honest, current() does often confuse me!&lt;/p&gt;</description></item><item><title>Re: Filter issue</title><link>https://www.infopathdev.com:443/forums/thread/28600.aspx</link><pubDate>Thu, 08 May 2008 00:00:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28600</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28600.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28600</wfw:commentRss><description>&lt;p&gt;Your mistake is very common--which is not understanding how current() works.&lt;/p&gt;
&lt;p&gt;If your XPath is a filter on the Hardware repeater, then current() = the repeating Order node.&lt;/p&gt;
&lt;p&gt;The XPath &lt;strong&gt;current()/my:myFields/my:Order/my:HWID &lt;/strong&gt;means absolutely nothing... it points to nowhere.&lt;/p&gt;
&lt;p&gt;If &lt;strong&gt;current() &lt;/strong&gt;points to the &lt;strong&gt;Order &lt;/strong&gt;node, then you would want an XPath more like this: &lt;strong&gt;current()/my:HWID&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Do you see the difference? &lt;strong&gt;current() &lt;/strong&gt;is actually a representation of &lt;strong&gt;my:Order &lt;/strong&gt;-- so if you translate that back to what you had it would be this: &lt;strong&gt;my:Order/my:myFields/my:Order/my:HWID &lt;/strong&gt;, which means nothing.&lt;/p&gt;
&lt;p&gt;Hope that helps.&lt;/p&gt;</description></item><item><title>Filter issue</title><link>https://www.infopathdev.com:443/forums/thread/28578.aspx</link><pubDate>Wed, 07 May 2008 17:02:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28578</guid><dc:creator>ben.oates</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28578.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28578</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I have the following basic layout for my data source:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;myFields&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Hardware (repeating)&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;HID&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;etc.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;
&lt;div&gt;Order (repeating)&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;HWID (repeating)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;etc.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;
&lt;p&gt;In my print view, I would like to show the other information held in the relevant Hardware node where the HID exists within the repeating HWID element of the current Order node. I have tried to use the current() operator to do this to no avail.&lt;/p&gt;
&lt;p&gt;I have nested a repeating section for Hardware within a repeating section for Order on the view. I think the problem is that my XPath is looking for the current HWID rather than the current order and all HWID elements. My XPath is below. How do I get it to look at the HWID elements of the current order please?&lt;/p&gt;
&lt;p&gt;my:HID = current()/my:myFields/my:Order/my:HWID&lt;/p&gt;
&lt;p&gt;I think this is my problem because if I ignore the use of current() it works but shows all HWID items in every Order, but hides the ones that are not yet in an order.&lt;/p&gt;
&lt;p&gt;Your help is greatly appreciated, thanks.&lt;/p&gt;</description></item></channel></rss>