<?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>update repeating table on form load</title><link>https://www.infopathdev.com:443/forums/thread/93329.aspx</link><pubDate>Fri, 27 Sep 2013 23:09:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93329</guid><dc:creator>SusanP</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93329.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=93329</wfw:commentRss><description>&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoNormal"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;My InfoPath 2010 web-enabled form includes a data connection to
a SharePoint list, which provides a group of choices.&amp;nbsp; As user makes one or more selections, &lt;b style="mso-bidi-font-weight:normal;"&gt;one at a time&lt;/b&gt;, a row in a
repeating table is&amp;nbsp;populate&lt;font color="#1f497d"&gt;d&lt;/font&gt;.&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoNormal"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;On subsequent loads of the form, I want to re-query that SP
list to update the a single column in that repeating table for each row &lt;b style="mso-bidi-font-weight:normal;"&gt;(all at once)&lt;/b&gt;.&amp;nbsp; Was hoping I could use rules with ID = current() in form
load, but all rows are updating with
the data from the last
row’s record ID.&amp;nbsp; My statement in form load&amp;nbsp;looks like this:&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;xdXDocument:GetDOM(&amp;quot;Security Roles&amp;quot;)&lt;br /&gt;
/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Approvers/pc:Person/pc:AccountId&lt;br /&gt;
[../../../d:ID =
current()/my:backOfficeSection/my:fmsFunctions/my:fmsFunction/my:fmsRoleTitle]&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Any ideas?&amp;nbsp; I&amp;#39;m unable to use code.&amp;nbsp; Thank you&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;!&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>