<?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: Set field in repeating table from other repeating table</title><link>https://www.infopathdev.com:443/forums/thread/118583.aspx</link><pubDate>Wed, 21 Mar 2018 21:31:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118583</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118583.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118583</wfw:commentRss><description>Glad that worked for you. The current() function is very useful - it always refers to the current context node, so if you had a rule on a button, for example, current() is the node the section the button is in is bound to. :)</description></item><item><title>Re: Set field in repeating table from other repeating table</title><link>https://www.infopathdev.com:443/forums/thread/118579.aspx</link><pubDate>Wed, 21 Mar 2018 12:14:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118579</guid><dc:creator>joubin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118579.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118579</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hilary, you&amp;#39;re a genius!!&lt;/p&gt;&lt;p&gt;Amazingly simple&amp;nbsp;how you used the .=current()/ function&lt;/p&gt;&lt;p&gt;Thanks a lot&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Set field in repeating table from other repeating table</title><link>https://www.infopathdev.com:443/forums/thread/118571.aspx</link><pubDate>Tue, 20 Mar 2018 15:09:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118571</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118571.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118571</wfw:commentRss><description>Here&amp;#39;s your form using a calculated default.</description></item><item><title>Re: Set field in repeating table from other repeating table</title><link>https://www.infopathdev.com:443/forums/thread/118567.aspx</link><pubDate>Tue, 20 Mar 2018 12:02:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118567</guid><dc:creator>joubin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118567.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118567</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I think this was a leftover of a previous design, but should not interfere with&amp;nbsp;functionality.&lt;/p&gt;&lt;p&gt;the default value does not work for consecutive cars unfortunately!&lt;/p&gt;&lt;p&gt;I tried&amp;nbsp;something in code behind, but it doesn&amp;#39;t update the field properly:&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;try&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;
&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myForm = MainDataSource.CreateNavigator();&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;
&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; field0 = myForm.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/my:myFields/my:Invoices_List/my:group6/my:VehicleNo&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;
&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; field1 = myForm.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/my:myFields/my:Invoices_List/my:group6/my:Liters&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;
&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; field2 = myForm.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/my:myFields/my:group10/my:group11/my:car1/@my:car1_liters&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;
&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; P0 = field0.Value;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;
&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; P1 = field1.Value;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;
&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; P2 = field2.Value;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;
&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;MessageBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Show(P0 + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot; &amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + P1 + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot; &amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + P2, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Warning&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;MessageBoxButtons&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.YesNo);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;
field2.SetValue(P1); &lt;/font&gt;&lt;p&gt;&lt;font size="2"&gt;
}&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;
&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;catch&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Exception&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ex)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: Set field in repeating table from other repeating table</title><link>https://www.infopathdev.com:443/forums/thread/118562.aspx</link><pubDate>Mon, 19 Mar 2018 18:57:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118562</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118562.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118562</wfw:commentRss><description>I think a default value would do this then, but I&amp;#39;m confused by your nested repeating data. Can you help me understand why both the group and the field are repeating?</description></item><item><title>Re: Set field in repeating table from other repeating table</title><link>https://www.infopathdev.com:443/forums/thread/118561.aspx</link><pubDate>Mon, 19 Mar 2018 17:25:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118561</guid><dc:creator>joubin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118561.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118561</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Hilary Stoupa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Will there be any starting data in the liters in the table on the settings page? Or will it always just be the total from the other table when the user fills up the car?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;initially the liters will be empty, just gradually filling up for every invoice (i.e. to track gas usage&amp;nbsp;per quarter)&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Set field in repeating table from other repeating table</title><link>https://www.infopathdev.com:443/forums/thread/118560.aspx</link><pubDate>Mon, 19 Mar 2018 16:07:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118560</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118560.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118560</wfw:commentRss><description>Will there be any starting data in the liters in the table on the settings page? Or will it always just be the total from the other table when the user fills up the car?</description></item><item><title>Re: Set field in repeating table from other repeating table</title><link>https://www.infopathdev.com:443/forums/thread/118559.aspx</link><pubDate>Mon, 19 Mar 2018 15:51:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118559</guid><dc:creator>joubin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118559.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118559</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Hilary Stoupa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;So - you want to update this when the &amp;quot;OK&amp;quot; button is clicked?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;exactly, so every time&amp;nbsp;user fills up the car the value of liters shall increase. Seems to be tricky how to point to the car currently chosen from drop-down...&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Set field in repeating table from other repeating table</title><link>https://www.infopathdev.com:443/forums/thread/118558.aspx</link><pubDate>Mon, 19 Mar 2018 14:50:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118558</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118558.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118558</wfw:commentRss><description>So - you want to update this when the &amp;quot;OK&amp;quot; button is clicked?</description></item><item><title>Re: Set field in repeating table from other repeating table</title><link>https://www.infopathdev.com:443/forums/thread/118557.aspx</link><pubDate>Mon, 19 Mar 2018 13:37:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118557</guid><dc:creator>joubin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118557.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118557</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;here we go...&lt;/p&gt;&lt;p&gt;I managed to set the default value, but it only works for the very first item in table &amp;#39;cars&amp;#39;.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Set field in repeating table from other repeating table</title><link>https://www.infopathdev.com:443/forums/thread/118540.aspx</link><pubDate>Fri, 16 Mar 2018 15:09:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118540</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118540.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118540</wfw:commentRss><description>Can I see your form? You can attach it under the Options tab in a reply.</description></item><item><title>Set field in repeating table from other repeating table</title><link>https://www.infopathdev.com:443/forums/thread/118529.aspx</link><pubDate>Thu, 15 Mar 2018 15:25:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118529</guid><dc:creator>joubin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118529.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118529</wfw:commentRss><description>&lt;p&gt;In an offline form (not browser-enabled) I have a repeating table (Master) for vehicle license plates (field my:car) and fuel amount (my:car_liters).&lt;/p&gt;&lt;p&gt;From another view, in second repeating table (Invoices) users select a vehicle from drop-down column (my:VehicleNo) and put the liters of fuel they filled on a given date (my:Liters).&lt;/p&gt;&lt;p&gt;A button accepts the value and should update the fuel field of (my:car_liters) in the master table.&lt;/p&gt;&lt;p&gt;I tried to set a filtered Action Rule to the button using the current() function as suggested by Hilary Stoupa in my xPath:&lt;/p&gt;&lt;p&gt;&amp;lt;xsf:assignmentAction&amp;gt;targetField=&amp;quot;../../my:group/my:car/@my:car_liters[../@my:car=current()/../my:VehicleNo]&amp;quot; expression=&amp;quot;my:Liters&amp;quot;&amp;gt;&amp;lt;/xsf:assignmentAction&amp;gt;&lt;/p&gt;&lt;p&gt;but it does not work.&lt;/p&gt;&lt;p&gt;How can I assign current row&amp;#39;s fuel value?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>