<?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: Infopath xpath - preceding-sibling only showing first value, not preceding</title><link>https://www.infopathdev.com:443/forums/thread/121128.aspx</link><pubDate>Wed, 12 Jun 2019 15:12:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121128</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121128.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=121128</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Here&amp;#39;s a blog post from Greg Collins from back in 2005 that I still refer to for help with the preceding-sibling axis, in case it is helpful for you as well: &lt;a href="https://www.infopathdev.com/blogs/greg/archive/2005/06/13/Using-XPath_2700_s-_2700_preceding_2D00_sibling_2700_-Axis-Correctly.aspx"&gt;https://www.infopathdev.com/blogs/greg/archive/2005/06/13/Using-XPath_2700_s-_2700_preceding_2D00_sibling_2700_-Axis-Correctly.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Infopath xpath - preceding-sibling only showing first value, not preceding</title><link>https://www.infopathdev.com:443/forums/thread/121124.aspx</link><pubDate>Wed, 12 Jun 2019 03:17:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121124</guid><dc:creator>bitultorah</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121124.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=121124</wfw:commentRss><description>Thank you Hilary, &lt;br /&gt;&lt;br /&gt;

It worked like a charm, and gave me an overall understanding of preceding siblings.&lt;br /&gt;&lt;br /&gt;

I have been reading and using your information for years, and am a big fan.&lt;br /&gt;&lt;br /&gt;

Thank you,&lt;br /&gt;
Shlomo</description></item><item><title>Re: Infopath xpath - preceding-sibling only showing first value, not preceding</title><link>https://www.infopathdev.com:443/forums/thread/121120.aspx</link><pubDate>Tue, 11 Jun 2019 15:25:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121120</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121120.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=121120</wfw:commentRss><description>Here&amp;#39;s a sample - save locally, right click &amp;amp; select design, then preview. I&amp;#39;m just summing the previous numberapproved and adding in the current in mine. I think for your schema the formula for the default value for totalnumberapproved would be: sum(../preceding-sibling::my:yearrpanel/my:numberapproved) + ../my:numberapproved</description></item><item><title>Infopath xpath - preceding-sibling only showing first value, not preceding</title><link>https://www.infopathdev.com:443/forums/thread/121098.aspx</link><pubDate>Fri, 07 Jun 2019 16:01:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121098</guid><dc:creator>bitultorah</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121098.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=121098</wfw:commentRss><description>Good afternoon,
&lt;br /&gt;&lt;br /&gt;
I have a repeating section, where contains two relevant number fields.  The first is where the user inputs a number, and the second totals it, adding that number with the previous total of the last section, placing it in this section&amp;#39;s total.
&lt;br /&gt;&lt;br /&gt;
myFields&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;yearrepeatpanel&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;yearrpanel&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;                 numberapproved&lt;br /&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;                totalnumapproved
&lt;br /&gt;&lt;br /&gt;
(xpath for totalnumapproved: my:myFields/my:yearrepeatpanel/my:yearrpanel/my:totalnumapproved)
&lt;br /&gt;&lt;br /&gt;
This is a repeating section, not table.
&lt;br /&gt;&lt;br /&gt;
I tried a bunch of xpath scripts to add them.  However, each one adds the first section&amp;#39;s total with the current number, instead of the previous section&amp;#39;s total.
&lt;br /&gt;&lt;br /&gt;
For example, if I place the number 10 in the first section this sets the total (I made a condition for the first year) to 10.
In the second section, I place 20, which sets the total to be 30 (as it should). However, by the third and subsequent section, it just adds the first total. So if I place 30, I am expecting 60, however, all I receive is 40.  This keeps this way for all later sections.
&lt;br /&gt;&lt;br /&gt;
Of the xpaths that I used were:
&lt;br /&gt;&lt;br /&gt;
preceding::my:yearrpanel/my:totalnumapproved + ../my:numberapproved&lt;br /&gt;
preceding-sibling::my:yearrpanel/my:totalnumapproved + ../my:numberapproved&lt;br /&gt;
../preceding::my:yearrpanel/my:totalnumapproved + ../my:numberapproved&lt;br /&gt;
../preceding-sibling::my:yearrpanel/my:totalnumapproved + ../my:numberapproved&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
Thank you in advance,&lt;br /&gt;
Shlomo</description></item></channel></rss>