<?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: qRules to Update Existing Repeating Table Data</title><link>https://www.infopathdev.com:443/forums/thread/101815.aspx</link><pubDate>Mon, 23 Mar 2015 00:47:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101815</guid><dc:creator>GwenW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101815.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=101815</wfw:commentRss><description>&lt;p&gt;Thanks Hilary, this worked! &lt;/p&gt;
&lt;p&gt;Gwen&lt;/p&gt;</description></item><item><title>Re: qRules to Update Existing Repeating Table Data</title><link>https://www.infopathdev.com:443/forums/thread/101800.aspx</link><pubDate>Fri, 20 Mar 2015 21:39:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101800</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101800.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=101800</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;So, I&amp;#39;m having a little trouble understanding quite what you are doing here, but I&amp;#39;d suggest this, basing it on some guesses of your schema. :)&lt;/p&gt;
&lt;p&gt;concat(&amp;quot;SetValue /xpath=/my:myFields/my:TempHold/my:TempHoldSubmit[my:tmp_TestID=&amp;quot;, ID2,&amp;quot;]/my:tmp_ck_WT_Gravimetric /value=&amp;quot;, ck_WT_Gravimetric[ID2 = tmp_TestID])&lt;/p&gt;
&lt;p&gt;So your XPath, after concat, should select the TempHoldSubmit row where the tmp_TestID is equal to the ID2 of the row you are working on?&lt;/p&gt;</description></item><item><title>qRules to Update Existing Repeating Table Data</title><link>https://www.infopathdev.com:443/forums/thread/101793.aspx</link><pubDate>Fri, 20 Mar 2015 15:14:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101793</guid><dc:creator>GwenW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101793.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=101793</wfw:commentRss><description>&lt;p&gt;Hi, I need help with a qrules setvalue command to update&amp;nbsp;existing&amp;nbsp;data in a repeating table....&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a form where I am collecting data from the user, and&amp;nbsp;pushing&amp;nbsp;it to a&amp;nbsp;repeating&amp;nbsp;table (this is simply a holder such that once all data is collected, all data is submitted at once to a SharePoint list). Everything is working well, with one exception. Here&amp;#39;s&amp;nbsp;the scenario&amp;nbsp;(see screenshot): user enters 3 items in the main repeating table, for each, the user selects tests using the button in the repeating table which opens the&amp;nbsp; checkboxs view 2. After tests have been selected, there is a button in View 2 that has rules to submit the data to the &amp;quot;hidden&amp;quot; repeating table. This is done initially using qRules (all occurrences of ID2 != to tmp_TestID) with commands to insert the row and set values to push the data in. This works fine. Lastly, the user is taken back to View 1 to enter more tests.&lt;/p&gt;
&lt;p&gt;Here is the command to push in data: concat(&amp;quot;SetValue /xpath=/my:myFields/my:TempHold/my:TempHoldSubmit[last()]/my:tmp_WT_Gravimetric /value=&amp;quot;, WT_Gravimetric[ID2 = tmp_TestID])&lt;/p&gt;
&lt;p&gt;*ID2 is the id from the original repeating table for the given row (view 1), and tmp_TestID is the matching ID in the hiddlen repeating table&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the fun part: Now, if the user wants to go back and edit his selection, he clicks the same button in the view 1 repeating table for whichever row he wants to edit.&amp;nbsp;The data is brought back to the view from the hidden repeating table&amp;nbsp;(checkboxes populate back accordingly). He makes edits, and clicks the &amp;quot;submit button&amp;quot; again. Ideally, if the user is editing row 2, then the row 2 data is updated with the new selections in the hidden repeating table. I have this working if there is only one row to start with. Also, it works if there are multiple rows, but the user only edits the last row (the highest ID number). However, it does not work if there are multiple rows, and the user edits any but the latest row.&lt;/p&gt;
&lt;p&gt;My update rule is &amp;quot;any occurrence of ID2 = tmpID. But I have also tried simply ID2=tmp_TestID, and it doesn&amp;#39;t help. Then there are multiple commands to set each value (similar to the original push). Here is one...&lt;/p&gt;
&lt;p&gt;concat(&amp;quot;SetValue /xpath=/my:myFields/my:TempHold/my:TempHoldSubmit[current()]/my:tmp_ck_WT_Gravimetric /value=&amp;quot;, ck_WT_Gravimetric[ID2 = tmp_TestID])&lt;/p&gt;
&lt;p&gt;I have tried leaving the [last()] (like the original push command), but then tried the [current()] and&amp;nbsp;neither have worked.&lt;/p&gt;
&lt;p&gt;I also tried instead of using ID2 (the main repeating table row ID number), but using a text field where ID 2 is passed into the second view into this text field (so it&amp;#39;s not repeating). This didn&amp;#39;t help.&lt;/p&gt;
&lt;p&gt;Any suggestions? &lt;/p&gt;
&lt;p&gt;I have qRules 6.1, InfoPath 2010 and SharePoint 2010.&lt;/p&gt;
&lt;p&gt;Thanks! Gwen&lt;/p&gt;</description></item></channel></rss>