<?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: Using a button to insert data to a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/7489.aspx</link><pubDate>Thu, 18 Aug 2005 19:30:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7489</guid><dc:creator>chiablo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7489.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7489</wfw:commentRss><description>You are a genius... thank you so much!&lt;br /&gt;&lt;br /&gt;^_^</description></item><item><title>Re: Using a button to insert data to a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/7488.aspx</link><pubDate>Thu, 18 Aug 2005 19:10:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7488</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7488.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7488</wfw:commentRss><description>Hi chiablo,&lt;br /&gt;My understanding is you always want to set values to the last row of your repeating table. If that is correct then your xpath needs to change accordingly,&lt;br /&gt;&lt;br /&gt;your xpath should be&lt;br /&gt;"my:SHPR/my:Feedback_option/my:Feedback/my:Feedback_repeat[last()]/my:Name", this will get the last row of your repeating table. &lt;br /&gt;Similarly your other xpath should also change to get the last row.&lt;br /&gt;&lt;br /&gt;Hope this Helps!&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Using a button to insert data to a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/4859.aspx</link><pubDate>Thu, 18 Aug 2005 16:29:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4859</guid><dc:creator>chiablo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4859.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4859</wfw:commentRss><description>Just some background... The purpose of my form is to act as a problem report that can be passed around to different people in my company.  I have a feedback section where someone can add feedback to the form before moving it onto the next person.&lt;br /&gt;&lt;br /&gt;With our current outlook form, we've had problems with people modifying feedback that they've inserted before... this is a problem and causes alot of arguments.&lt;br /&gt;&lt;br /&gt;I've created a button in Infopath that pulls the username and time/date and attaches it to the feedback.  If the username field is populated, the feedback becomes read only.  I'm quite proud of this implimentation and it will work brilliantly... BUT I'm having problems getting the username to populate correctly.&lt;br /&gt;&lt;br /&gt;In order to get the username in, I'm using C# (it's the only way.)  Below is my code:&lt;br /&gt;&lt;font color="blue"&gt;IXMLDOMNode nodeName = &lt;br /&gt;thisXDocument.DOM.selectSingleNode("/my:SHPR/my:Feedback_option/my:Feedback/my:Feedback_repeat/my:Name");&lt;br /&gt;nodeName.text = System.Environment.UserName;			thisXDocument.DOM.selectSingleNode("/my:SHPR/my:Feedback_option/my:Feedback/my:Feedback_repeat/my:Timestamp").text = System.DateTime.Now.ToLocalTime().ToString();&lt;br /&gt;&lt;/font id="blue"&gt;&lt;br /&gt;&lt;br /&gt;So what it's doing is pulling the username and putting it into the repeating feedback table into the name field.  The same with the date and time.&lt;br /&gt;&lt;br /&gt;I type in the feedback, click the button and it works.  But if I add another feedback field (because it's a repeating table) only the first field changes.  I can't get the first field to lock and have the button apply to the subsequent fields.&lt;br /&gt;&lt;br /&gt;If further information is needed, I can supply screenshots to better describe what's happening.</description></item></channel></rss>