<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Need help with preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/102073.aspx</link><pubDate>Wed, 08 Apr 2015 13:43:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102073</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102073.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102073</wfw:commentRss><description>&lt;p&gt;Hi Mozzak,&lt;/p&gt;
&lt;p&gt;The XPath for that would be &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;AmendmentGrp[last()]/AmendVerNum&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;If you&amp;#39;re using a browser form and it doesn&amp;#39;t like the use of &lt;strong&gt;last()&lt;/strong&gt;, then this one will probably work:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;AmendmentGrp[not(following-sibling::my:AmendmentGrp)]/AmendVerNum&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Need help with preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/102067.aspx</link><pubDate>Tue, 07 Apr 2015 17:57:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102067</guid><dc:creator>Mozzak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102067.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102067</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;You seem like the expert with xpath so I have one more question for you.&lt;/p&gt;
&lt;p&gt;The following will give me the value of field AmendVerNum of first row.&lt;/p&gt;
&lt;p&gt;AmendmentGrp[1]/AmendVerNum&lt;/p&gt;
&lt;p&gt;&amp;nbsp;How can I get the value of the last row ?&lt;/p&gt;
&lt;p&gt;thanks again&lt;/p&gt;</description></item><item><title>Re: Need help with preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/102043.aspx</link><pubDate>Mon, 06 Apr 2015 18:50:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102043</guid><dc:creator>Mozzak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102043.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102043</wfw:commentRss><description>&lt;p&gt;good idea. Might go that route if I run into other problems with the default value.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks again Hilary&lt;/p&gt;</description></item><item><title>Re: Need help with preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/102042.aspx</link><pubDate>Mon, 06 Apr 2015 18:40:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102042</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102042.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102042</wfw:commentRss><description>&lt;p&gt;Maybe instead of using this as a default, you could add a rule to the repeating group to set the field to the preceding sibling. Then when the row is inserted, the field gets set.... But if turning off refresh works for you, that&amp;#39;s great too. :)&lt;/p&gt;</description></item><item><title>Re: Need help with preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/102041.aspx</link><pubDate>Mon, 06 Apr 2015 18:38:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102041</guid><dc:creator>Mozzak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102041.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102041</wfw:commentRss><description>&lt;p&gt;I might have found the solution myself.&lt;/p&gt;
&lt;p&gt;I turned off &amp;quot;refresh value when formula is recalculated&amp;quot; and it seems to start working as expected.&lt;/p&gt;
&lt;p&gt;is that how to do it?&lt;/p&gt;
&lt;p&gt;thanks again&lt;/p&gt;</description></item><item><title>Re: Need help with preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/102040.aspx</link><pubDate>Mon, 06 Apr 2015 18:23:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102040</guid><dc:creator>Mozzak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102040.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102040</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;do you mind if I ask for help one more time ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Everything is working in the filler but once deployed as web form the fields behave strange. For example when I select a dropdown value in the repeating table it jumps back to blank immediately. I assume this is because it is the first row in the table and preceding row does not exist.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How would you work around that problem?&lt;/p&gt;
&lt;p&gt;thank you!!&lt;/p&gt;</description></item><item><title>Re: Need help with preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/101996.aspx</link><pubDate>Thu, 02 Apr 2015 22:47:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101996</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101996.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101996</wfw:commentRss><description>&lt;p&gt;You bet, glad that helped - for more, you may want to take a look at this: &lt;a href="http://zvon.org/xxl/XPathTutorial/Output/example16.html"&gt;http://zvon.org/xxl/XPathTutorial/Output/example16.html&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Need help with preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/101995.aspx</link><pubDate>Thu, 02 Apr 2015 22:41:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101995</guid><dc:creator>Mozzak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101995.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101995</wfw:commentRss><description>&lt;p&gt;awesome. it works like a charm.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Bets of all, I know now how the syntax goes. &lt;/p&gt;
&lt;p&gt;Thanks so much Hilary.&lt;/p&gt;</description></item><item><title>Re: Need help with preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/101993.aspx</link><pubDate>Thu, 02 Apr 2015 21:59:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101993</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101993.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101993</wfw:commentRss><description>&lt;p&gt;Okay, so if you want to set FootprintCommRate to the preceding value:&lt;/p&gt;
&lt;p&gt;../preceding-sibling::my:FootprintGrp/my:FootprintCommRate&lt;/p&gt;</description></item><item><title>Re: Need help with preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/101992.aspx</link><pubDate>Thu, 02 Apr 2015 21:49:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101992</guid><dc:creator>Mozzak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101992.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101992</wfw:commentRss><description>&lt;p&gt;Thank you Hilary.&lt;/p&gt;
&lt;p&gt;So here is the actual example xpath of a field from the repeater table:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;/dfs:myFields/my:FootprintGrp/my:FootprintCommRate&lt;/p&gt;
&lt;p&gt;Earlier I just used Field1 but it actually is FootprintCommRate.&lt;/p&gt;
&lt;p&gt;Thank you so much in advance&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;</description></item><item><title>Re: Need help with preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/101989.aspx</link><pubDate>Thu, 02 Apr 2015 21:07:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101989</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101989.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101989</wfw:commentRss><description>&lt;p&gt;Right click Field1 in the main data source task pane and select copy XPath - is it really an attribute? Paste the XPath in a reply and I can help you out.&lt;/p&gt;</description></item><item><title>Need help with preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/101988.aspx</link><pubDate>Thu, 02 Apr 2015 20:27:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101988</guid><dc:creator>Mozzak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101988.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101988</wfw:commentRss><description>&lt;p&gt;Hi All:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a pepeater table and trying to copy the previous row to the new row once a user clicks &amp;#39;add new row&amp;#39;.&lt;/p&gt;
&lt;p&gt;My approach is to set up a formular for each column as default value.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here is my field structure:&lt;/p&gt;
&lt;p&gt;- myFields&lt;/p&gt;
&lt;p&gt;-- my:FootprintGrp&lt;/p&gt;
&lt;p&gt;----- Field1&lt;/p&gt;
&lt;p&gt;----- Field2&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So I opened Field1 and added the following formula as a default value:&lt;/p&gt;
&lt;p&gt;../preceding-sibling::my:my:FootprintGrp/@Field1&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I always receive Validation Errors.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can someone point me to the right direction ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>