<?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 a row in a repeating section based on some condition</title><link>https://www.infopathdev.com:443/forums/thread/36055.aspx</link><pubDate>Thu, 18 Dec 2008 16:21:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36055</guid><dc:creator>shivajidatta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36055.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36055</wfw:commentRss><description>&lt;p&gt;In fact I am using InfoPath 2003 myself and I do not have a Tools-&amp;gt;Form Options-&amp;gt;Programming location in 2003.&amp;nbsp; I can open up the MS Script Editor from Tools &amp;gt; Programming and clear the code.&amp;nbsp; But still I do not see any way to select any other scripting language other than JS or VBS.&lt;/p&gt;</description></item><item><title>Re: Insert a row in a repeating section based on some condition</title><link>https://www.infopathdev.com:443/forums/thread/36052.aspx</link><pubDate>Thu, 18 Dec 2008 16:03:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36052</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36052.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36052</wfw:commentRss><description>&lt;p&gt;Just go to&amp;nbsp;Tools-&amp;gt;Form Options-&amp;gt;Programming, click Remove Code, and select the new code type you want to use.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Note that only InfoPath 2007 has built-in support for C#, though Swathip&amp;#39;s code uses the InfoPath 2003 object model.&lt;/p&gt;</description></item><item><title>Re: Insert a row in a repeating section based on some condition</title><link>https://www.infopathdev.com:443/forums/thread/36038.aspx</link><pubDate>Thu, 18 Dec 2008 14:57:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36038</guid><dc:creator>shivajidatta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36038.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36038</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Jimmy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;It is posible to change the code type in your form, but it would require removing any code you already have.&amp;nbsp; Are you already using JavaScript in the form?&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Although the form is kind of 80% done,&amp;nbsp;I do not have any code in the form.&amp;nbsp; How do I change it now?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Shivaji&lt;/p&gt;</description></item><item><title>Re: Insert a row in a repeating section based on some condition</title><link>https://www.infopathdev.com:443/forums/thread/36011.aspx</link><pubDate>Thu, 18 Dec 2008 08:33:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36011</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36011.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36011</wfw:commentRss><description>&lt;p&gt;It is posible to change the code type in your form, but it would require removing any code you already have.&amp;nbsp; Are you already using JavaScript in the form?&lt;/p&gt;</description></item><item><title>Re: Insert a row in a repeating section based on some condition</title><link>https://www.infopathdev.com:443/forums/thread/36010.aspx</link><pubDate>Thu, 18 Dec 2008 08:24:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36010</guid><dc:creator>shivajidatta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36010.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36010</wfw:commentRss><description>I think my form is set to accept only javascript.  Can I write a C# script now that the form is created? I believe the scripting language needs to be specified in the very beginning.. right? I am using IP 2003.</description></item><item><title>Re: Insert a row in a repeating section based on some condition</title><link>https://www.infopathdev.com:443/forums/thread/36009.aspx</link><pubDate>Thu, 18 Dec 2008 07:55:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36009</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36009.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36009</wfw:commentRss><description>&lt;p&gt;It is C#.&lt;/p&gt;</description></item><item><title>Re: Insert a row in a repeating section based on some condition</title><link>https://www.infopathdev.com:443/forums/thread/36005.aspx</link><pubDate>Thu, 18 Dec 2008 07:49:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36005</guid><dc:creator>shivajidatta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36005.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36005</wfw:commentRss><description>Is this in VB Script?</description></item><item><title>Re: Insert a row in a repeating section based on some condition</title><link>https://www.infopathdev.com:443/forums/thread/36002.aspx</link><pubDate>Thu, 18 Dec 2008 06:18:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36002</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36002.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36002</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Add an on after change event for the field. And get the repeating node from the sample and add it to the parent group node. The following code will be useful to fulfill your requirement.&lt;/p&gt;
&lt;p&gt;[InfoPathEventHandler(MatchPath = &amp;quot;/my:myFields/my:group6/my:group7/my:field22&amp;quot;, EventType = InfoPathEventType.OnAfterChange)]&lt;/p&gt;
&lt;p&gt;public void field22_OnAfterChange(DataDOMEvent e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;if (e.IsUndoRedo || e.Operation != &amp;quot;Insert&amp;quot; || e.Parent.nodeName != &amp;quot;my:field22&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;if (e.Site.text.Length != 0)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp; IXMLDOMDocument2 sampleDataDom = (IXMLDOMDocument2)thisXDocument.CreateDOM();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;sampleDataDom.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;quot;your form name space&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;sampleDataDom.load(&amp;quot;sampledata.xml&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;IXMLDOMNode sampleGroupNode = sampleDataDom.selectSingleNode(&amp;quot;/my:myFields/my:group6/my:group7&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;IXMLDOMNode parentNode = thisXDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:group6&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;parentNode.appendChild(sampleGroupNode);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here &amp;quot;/my:myFields/my:group6/my:group7 -&amp;gt; is the repeating section xpath&lt;/p&gt;
&lt;p&gt;/my:myFields/my:group6/my:group7/my:field22 -&amp;gt; repeating section field xpath&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Insert a row in a repeating section based on some condition</title><link>https://www.infopathdev.com:443/forums/thread/36001.aspx</link><pubDate>Thu, 18 Dec 2008 05:43:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36001</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36001.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36001</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Write code on On after change event.Check the condition, when the condition is true then append a row to the repeating table.&lt;/p&gt;
&lt;p&gt;Look at the below link, it&amp;nbsp;might be helpful in writing the code&lt;/p&gt;
&lt;p&gt;&lt;a href="http://aspalliance.com/667_CodeSnip_Add_Row_to_InfoPath_Repeating_Table_on_Button_Click"&gt;http://aspalliance.com/667_CodeSnip_Add_Row_to_InfoPath_Repeating_Table_on_Button_Click&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Insert a row in a repeating section based on some condition</title><link>https://www.infopathdev.com:443/forums/thread/35977.aspx</link><pubDate>Wed, 17 Dec 2008 22:01:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35977</guid><dc:creator>shivajidatta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35977.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35977</wfw:commentRss><description>&lt;p&gt;I need to to maintain a changelog and I need soem help with repeating sections to do that.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need to Insert a row&amp;nbsp;in a repeating section,&amp;nbsp;based on&amp;nbsp;some condition (e.g. when a field is not blank).&amp;nbsp; So e.g. if I enter text in a blank field, a new row gets automatically added to a repeating section (as if I would have clicked &amp;quot;Insert Item&amp;quot;).&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Anybody have any ideas?&amp;nbsp; My last preference is to code this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>