<?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: Insert Item in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/47712.aspx</link><pubDate>Thu, 08 Oct 2009 13:16:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47712</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47712.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=47712</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;To answer your questions:&lt;/p&gt;&lt;p&gt;1.&amp;nbsp; You can use &lt;a href="http://www.qdabra.com/en/products/qRules.aspx"&gt;qRules&lt;/a&gt;&amp;#39; &lt;b&gt;Insert &lt;/b&gt;command to insert rows into a repeating section using rules.&amp;nbsp; Then you can turn off the &amp;quot;Allow users to insert/delete rows&amp;quot; option in the repeating section.&lt;/p&gt;&lt;p&gt;2.&amp;nbsp; Unbound controls are essentially useless.&amp;nbsp; If you don&amp;#39;t want the comment input field in your main data source, you can create a simple XML file, like:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt; &lt;br /&gt;&amp;lt;formLogic&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;comment&amp;gt;&amp;lt;/comment&amp;gt;&lt;br /&gt;&amp;lt;/formLogic&amp;gt;&lt;/p&gt;&lt;p&gt;and import this as a secondary data connection, then use a textbox bound to the &lt;b&gt;comment&lt;/b&gt; field.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;3.&amp;nbsp; Using rules to copy a value into a single row of a repeating section requires a little bit of tricky maneuvering.&amp;nbsp; &lt;a href="http://www.infopathdev.com/blogs/hilary/archive/2009/06/07/hack-manifest-xsf-to-filter-the-target-of-a-rule.aspx"&gt;Hilary Stoupa&amp;#39;s blog &lt;/a&gt;explains how to do it.&amp;nbsp; Where she uses something like:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;span style="font-size:10pt;line-height:115%;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&lt;span style="color:blue;"&gt;my:items/my:baseCost&lt;span style="background:yellow none repeat scroll 0% 0%;-moz-background-clip:border;-moz-background-origin:padding;-moz-background-inline-policy:continuous;"&gt;[../my:itemType=&amp;#39;Labor&amp;#39;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;to select a row with a certain value in one of its fields, you can use the&lt;b&gt; last() &lt;/b&gt;function like:&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;prefix:repeatingGroup&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;[last()]/&lt;i&gt;&lt;u&gt;&lt;b&gt;prefix&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;:comment &lt;/p&gt;&lt;p&gt;(using the correct node names of course) to modify the comment field in the last (most recently added) row. &lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Insert Item in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/47701.aspx</link><pubDate>Thu, 08 Oct 2009 09:58:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47701</guid><dc:creator>brittaink112</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47701.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=47701</wfw:commentRss><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;Please could you assist me in the following.:&lt;/p&gt;
&lt;p&gt;I have a form on InfoPath that adds a new request for Change to a Back end Access Database. On the database there is a subform which shows the comments made by relevant people as the form is progressed through different departments. For example I have the created request number R-13. in the subform you can add comments like &amp;quot;This is Acknowledged by catering&amp;quot;, and the date the entry took place. Then the chefs can look at it and put another line in the subform such as &amp;quot;This is acknowledged by Chefs&amp;quot;. It works fine in Access but I am having a problem in InfoPath. &lt;/p&gt;
&lt;p&gt;I have got the repeating table in InfoPath which shows the Rows of data in the subform that are linked to the main data source working fine. I can Also add new lines of comments, underneath. I dont like the Cut, Copy, and Paste option that comes with it though. What I wanted to do was have a button which enters a new line of text in the subform. That way I can ask the user to enter their comment in an unbound text box on InfoPath, and get a button to transfer this comment into a new line on the subform. Is there any way to do this. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have tried already but obviously creating a button that sets a fields value (field being the comment field in the subform) to &amp;quot;This is Acknowledged&amp;quot;, then overwrites all of the lines of the subform with that value.&lt;/p&gt;
&lt;p&gt;Please help&lt;/p&gt;
&lt;p&gt;Keith&lt;/p&gt;</description></item></channel></rss>