<?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>Re: Problem with Repeating Table in Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/50834.aspx</link><pubDate>Thu, 21 Jan 2010 05:24:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50834</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50834.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50834</wfw:commentRss><description>&lt;p&gt;sorry i cant open the zips here, can you please mail them to &lt;a href="mailto:anis.qazi@bitwiseglobal.com"&gt;anis.qazi@bitwiseglobal.com&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Problem with Repeating Table in Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/50786.aspx</link><pubDate>Wed, 20 Jan 2010 15:50:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50786</guid><dc:creator>etchemin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50786.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50786</wfw:commentRss><description>&lt;p&gt;Hi, Qasi!&lt;/p&gt;&lt;p&gt;It took me some time to find out how to make an attachment, I&amp;#39;m sorry for that. Since the screenshotfile is to big to be send as an attachment I choose to send you the original InfoPath testform. I hope you can open and test it. It is designed with InfoPath2007 and VSTA (VBA).&lt;/p&gt;&lt;p&gt;The correct use MUST be: &lt;/p&gt;&lt;p&gt;1. enter data into the first repeating table (at least two rows) &lt;br /&gt;&lt;/p&gt;&lt;p&gt;2. click &amp;quot;insert item&amp;quot;&amp;nbsp; on the repeating SECTION&lt;/p&gt;&lt;p&gt;3. click the &amp;quot;Button&amp;quot;-button. Now the first repeating table must be copied into the new repeating section&lt;/p&gt;&lt;p&gt;4. change the data in the repeating table and continue with steps 2. and 3. .Now the changed repeating table contents MUST be copied into the new section and so on ....&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I hope it becomes clear to you what the difference is to the current behaviour of the code.&lt;/p&gt;&lt;p&gt;Many thanks and best regards&lt;/p&gt;&lt;p&gt;Robert Heinzel (Hamburg, Germany) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Problem with Repeating Table in Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/50783.aspx</link><pubDate>Wed, 20 Jan 2010 14:10:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50783</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50783.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50783</wfw:commentRss><description>&lt;p&gt;you can just put them as attachments here&lt;/p&gt;</description></item><item><title>Re: Problem with Repeating Table in Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/50775.aspx</link><pubDate>Wed, 20 Jan 2010 10:42:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50775</guid><dc:creator>etchemin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50775.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50775</wfw:commentRss><description>&lt;p&gt;Hi, Qasi!&lt;/p&gt;&lt;p&gt;I&amp;#39;m so sorry but it doesn&amp;#39;t work properly yet. It must be something wrong with the XPath expressions and the navigator. Therefore I prepared some screenshots so that you can get an impression on what exactly the design and the underlying code is as well as of the strange (or better &amp;quot;unwanted&amp;quot;) results the code produces. My problem now is: how can I mail you this word document. Is it possible to do it as an attachement to a post here or is it better to send it outside InfoPath Dev via normal e-mail?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;



v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}


 
  Normal
  0
  21
  
  
  false
  false
  false
  
   
   
   
   
   
  
  MicrosoftInternetExplorer4
 

 
 




 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&amp;quot;Table Normal&amp;quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:&amp;quot;&amp;quot;;
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:&amp;quot;Times New Roman&amp;quot;;
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}


 
Many thanks for your engagement&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Problem with Repeating Table in Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/50726.aspx</link><pubDate>Tue, 19 Jan 2010 12:00:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50726</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50726.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50726</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim i As Integer&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim listItemNav As XPathNodeIterator = Me.MainDataSource.CreateNavigator().Select(&amp;quot;/my:myFields/my:group1/my:group2&amp;quot;, NamespaceManager)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For i = 0 To listItemNav.Count&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listItemNav.MoveNext()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next i&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listItemNav.Current.Clone().InsertAfter(listItemNav.Current);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: Problem with Repeating Table in Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/50723.aspx</link><pubDate>Tue, 19 Jan 2010 11:08:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50723</guid><dc:creator>etchemin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50723.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50723</wfw:commentRss><description>&lt;p&gt;Hi, Qasi!&lt;/p&gt;&lt;p&gt;Unfortunately your codesnippet (after some modifictions and adaptions) did not work properly! Obviously I made some severe mistakes and did not understand the VBA eventhandling and the InfoPath XPath expression evaluation very well. I designed a very simple form consisting of a repeating section including a repeating two column table. I put the VBA code into the changed event of the repeating section but the program (VBA debugger) crashed as soon as I wanted to enter some data into the repeating table telling me of an unallowed operation in the current status of the repeating section. The other two event classes crashed in the same way. I then put a copy-button in the repeating section with the &amp;quot;copy-repeating-table&amp;quot;-code. I entered data into the repeating table then inserted a new section and clicked the copy button. The effect was that the repeating section was generated exactly four times and each instance including the repeating table (with the formerly entered data, as desired!). I then tried to modify the for loop in your proposal with even more strange effects (only one repeating section instance but four instances of the repeating table in it). So, my opinion is that there is something wrong with the XPath-expression in my code. The datasource InfoPath generated from my design is as follows:&lt;/p&gt;&lt;p&gt;&amp;nbsp;myFields&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; group1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; group2&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; group3&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; group4&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; field1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; field2&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The VBA-code for the copy button currently (state of trial and error) is as follows:&lt;/p&gt;Public Sub CTRL5_5_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39; Write your code here.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim i As Integer&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim path As String = &amp;quot;/my:myFields/my:group1/my:group2&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim listItemNav As XPathNodeIterator = Me.MainDataSource.CreateNavigator().Select(path, NamespaceManager)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim nav As XPathNodeIterator = Me.MainDataSource.CreateNavigator().Select(&amp;quot;/my:myFields/my:group1/my:group2[last()-1]/my:group3/my:group4&amp;quot;, NamespaceManager)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;For i = 0 To listItemNav.Count&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;listItemNav.MoveNext()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nav.Current.Clone().InsertAfter(listItemNav.Current)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;Next i&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Problem with Repeating Table in Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/50662.aspx</link><pubDate>Fri, 15 Jan 2010 21:40:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50662</guid><dc:creator>ricomarcelo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50662.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50662</wfw:commentRss><description>&lt;p&gt;Oh one question though.. how do I assign values to a field in both the cloned section and the original one?&lt;/p&gt;
&lt;p&gt;There&amp;#39;s a field (Version) in the repeating section&amp;nbsp;that I want to automatically set to 1.00 for the original copy and increment the value for the succeeding cloned sections.&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated. Thanks.&lt;/p&gt;
&lt;p&gt;- Ric&lt;/p&gt;</description></item><item><title>Re: Problem with Repeating Table in Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/50657.aspx</link><pubDate>Fri, 15 Jan 2010 19:21:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50657</guid><dc:creator>ricomarcelo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50657.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50657</wfw:commentRss><description>&lt;p&gt;Thank you Qazi, this helped me solve&amp;nbsp;my problem with my form.&lt;/p&gt;</description></item><item><title>Re: Problem with Repeating Table in Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/50651.aspx</link><pubDate>Fri, 15 Jan 2010 17:46:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50651</guid><dc:creator>etchemin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50651.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50651</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks Qasi! I&amp;#39;ll try this and feedback.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Problem with Repeating Table in Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/50642.aspx</link><pubDate>Fri, 15 Jan 2010 14:03:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50642</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50642.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50642</wfw:commentRss><description>&lt;p&gt;you will have to do this using VBA. i dont know of any other way. A sample code will be &lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNodeIterator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; listItemNav = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.MainDataSource.CreateNavigator().Select(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;my:myFields/my:group1/my:group2&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;for&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; i = 0; i &amp;lt; listItemNav.Count; i++, listItemNav.MoveNext()) ;&lt;/p&gt;
&lt;p&gt;listItemNav.Current.Clone().InsertAfter(listItemNav.Current);&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Problem with Repeating Table in Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/50634.aspx</link><pubDate>Fri, 15 Jan 2010 10:53:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50634</guid><dc:creator>etchemin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50634.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50634</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, everybody!&lt;/p&gt;&lt;p&gt;As a total newbee to InfoPath (and therefore also to this forum) I hope I can get some help from you experts to solve a (maybe very simple) problem dealing with a repeating table in a reapeting section in a form. The requirement is that if the user clicks &amp;quot;insert item&amp;quot; in the repeating section the entire repeating table (which itself is a member of the mentioned repeating section) MUST be copied including all its formerly entered values into the new generated repeating section. How can this be done (using rules or programming VBA)? &lt;/p&gt;&lt;p&gt;Thanks in advance! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>