<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Add column to repeating section, switch views, then add column to a second repeating section</title><link>https://www.infopathdev.com:443/forums/thread/71707.aspx</link><pubDate>Thu, 03 Nov 2011 03:39:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71707</guid><dc:creator>Nugget_RK</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71707.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71707</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve set up the repeating sections using the Default Values, then using conditional formatting to hide the excess sections unless required. How do I configure the &amp;quot;Unit&amp;quot; field in the second repeating section to pull a field value from the first? At the moment it just repeats the first value across every instance.&lt;/p&gt;</description></item><item><title>Re: Add column to repeating section, switch views, then add column to a second repeating section</title><link>https://www.infopathdev.com:443/forums/thread/71682.aspx</link><pubDate>Wed, 02 Nov 2011 20:59:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71682</guid><dc:creator>Nugget_RK</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71682.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71682</wfw:commentRss><description>&lt;p&gt;The second repeating section has only one field from the first repeating section, but additional rows of information. Could I just have one repeating section that has all possible rows in it, copy it and paste it on the various views,&amp;nbsp;then hide/unhide the applicable rows depending on which view it&amp;#39;s on?&lt;/p&gt;</description></item><item><title>Re: Add column to repeating section, switch views, then add column to a second repeating section</title><link>https://www.infopathdev.com:443/forums/thread/71681.aspx</link><pubDate>Wed, 02 Nov 2011 20:52:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71681</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71681.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71681</wfw:commentRss><description>&lt;p&gt;Yes, that should be possible, but if you&amp;#39;re going to go that far, is there a reason to have two separate repeating groups?&amp;nbsp; Is there a reason not to have just one that you display in both views?&lt;/p&gt;</description></item><item><title>Re: Add column to repeating section, switch views, then add column to a second repeating section</title><link>https://www.infopathdev.com:443/forums/thread/71679.aspx</link><pubDate>Wed, 02 Nov 2011 20:40:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71679</guid><dc:creator>Nugget_RK</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71679.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71679</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy, that works perfectly.&lt;/p&gt;
&lt;p&gt;Is it easy for me to bind one field of the second repeating section to a field in the first? I want it to always display the correct value of the corresponding section in the sequence (i.e: the value in the first column of the first repeating section is displayed first column of the second repeating section, the value in the second is the same in both, the value in the 3rd columns is the same, etc....)&lt;/p&gt;
&lt;p&gt;Sorry if the above is a little confusing, it&amp;#39;s difficult to put into words when I don&amp;#39;t know the correct way to describe the controls and their components.&lt;/p&gt;</description></item><item><title>Re: Add column to repeating section, switch views, then add column to a second repeating section</title><link>https://www.infopathdev.com:443/forums/thread/71619.aspx</link><pubDate>Wed, 02 Nov 2011 05:55:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71619</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71619.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71619</wfw:commentRss><description>&lt;p&gt;How about having putting a repeating section for your &lt;strong&gt;group4&lt;/strong&gt; group on your&amp;nbsp;&amp;quot;Requestor Content&amp;quot; view,&amp;nbsp;inside a section that&amp;#39;s always hidden?&amp;nbsp; Then you could probably add rows to it without switching views, and the changes would be reflected in your &amp;quot;Lab Content&amp;quot; view.&lt;/p&gt;</description></item><item><title>Add column to repeating section, switch views, then add column to a second repeating section</title><link>https://www.infopathdev.com:443/forums/thread/71615.aspx</link><pubDate>Wed, 02 Nov 2011 01:52:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71615</guid><dc:creator>Nugget_RK</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71615.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71615</wfw:commentRss><description>&lt;p&gt;Using Infopath 2007, VB code&lt;/p&gt;
&lt;p&gt;Hi,&lt;br /&gt;I have a button on one view which adds a column to a repeating section when clicked, which works fine.&amp;nbsp;What I now want it to do is add to the first repeating section, then switch views and add to a different repeating section. The goal of this is that the second repeating section will have the same number of sections as the first, so that one field from the first section can be displayed in the second section with additional rows of data.&lt;/p&gt;I have been trying the code below...&lt;br /&gt;&lt;font size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; add to first section then switch views&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;CurrentView.ExecuteAction(ActionType.XCollectionInsert, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;SampleInfo_54&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.ViewInfos.SwitchView(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Lab Content&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; add to second section then switch back to original view&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;CurrentView.ExecuteAction(ActionType.XCollectionInsert, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;group4_64&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.ViewInfos.SwitchView(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Requestor Content&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;The error occurs as it tries to add to the second section, with the following error: &amp;quot;The form&amp;#39;s code contains errors. The following call in the form&amp;#39;s code failed: View.ExecuteAction Unknown name.&amp;quot;&lt;br /&gt;I&amp;#39;m confused as when I put the second piece of code onto a separate button it adds to the second section without any errors, I just can&amp;#39;t do both from the one button on the first view.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;I&amp;#39;m new to Infopath, so any help would be greatly appreciated!&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Cheers,&lt;br /&gt;Richard&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item></channel></rss>