<?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: adding rows to repeating table with cascading drop-downs programmatically</title><link>https://www.infopathdev.com:443/forums/thread/52815.aspx</link><pubDate>Wed, 17 Mar 2010 06:52:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52815</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52815.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=52815</wfw:commentRss><description>&lt;p&gt;the code should work perfectly i guess your form falls under the scenarios for which this code doesnt work as mentioned by jimmy in the blog. if it doesnt please attach a skelton of your template (with code) so that we can have a look at it &lt;/p&gt;</description></item><item><title>adding rows to repeating table with cascading drop-downs programmatically</title><link>https://www.infopathdev.com:443/forums/thread/52791.aspx</link><pubDate>Tue, 16 Mar 2010 19:36:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52791</guid><dc:creator>sukiakisue</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52791.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=52791</wfw:commentRss><description>&lt;p&gt;I have an InfoPath form with an XML datasource which lists all hospitals in the country. On the main tab there is a drop-down for the region you are in. My XML datasource is formatted like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;HOSPITAL Region=&amp;quot;Region Name&amp;quot; Zone=&amp;quot;#&amp;quot; name=&amp;quot;Hospital Name&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Once a user chooses the region, there is a tab for Hospital Access on which they can choose the Zone# and then pick facilities. There is a repeating table with column 1 housing the Zones as a drop-down list and column 2 housing the facilities as a multiple selection list box.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My users don&amp;#39;t want to to &amp;quot;Click Here to Insert Another Row&amp;quot; when they need to pick another Zone in the repeating table. Right now, they click here and they can choose another Zone # and the list box populates with all hospitals in that zone. &lt;/p&gt;
&lt;p&gt;Is there anyway to populate those rows with the Zones from each region automatically when a region is chosen? I still want them to be able to change the Region selected and have the Zones refresh, but I need a way to add those rows programmatically for them. Each&amp;nbsp;Region has a different number of zones, btw.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I saw this link from another post: &lt;a href="http://www.infopathdev.com/blogs/jimmy/archive/2009/03/06/automatically-adding-rows-to-repeating-sections.aspx"&gt;http://www.infopathdev.com/blogs/jimmy/archive/2009/03/06/automatically-adding-rows-to-repeating-sections.aspx&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, I wasn&amp;#39;t able to get it working in my form. I am using VB&amp;nbsp;and tried using this line, but I&amp;#39;m not sure if this is the wrong track... Any help is greatly appreciated. &lt;/p&gt;&lt;font size="2"&gt;Here&amp;#39;s the code I&amp;#39;m using now:&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;Public&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;Sub&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; repeatinGroup_142()&lt;/p&gt;CurrentView.ExecuteAction(ActionType.XCollectionInsert, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;repeatingGroup_142&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;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&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;Sub&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item></channel></rss>