<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/21214.aspx</link><pubDate>Mon, 25 Jun 2007 16:32:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21214</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21214.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21214</wfw:commentRss><description>Glad you got it working! Thanks for sharing this.</description></item><item><title>Re: Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/21136.aspx</link><pubDate>Thu, 21 Jun 2007 21:54:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21136</guid><dc:creator>murphyadam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21136.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21136</wfw:commentRss><description>&lt;p&gt;This is what worked for me.&amp;nbsp; Notice the switch statment to prevent event bubbling.&lt;/p&gt;&lt;p&gt;function msoxd_my_Location::OnAfterChange(eventObj)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;if (eventObj.IsUndoRedo)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;return;&lt;br /&gt;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;switch(eventObj.Operation)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;case &amp;quot;Delete&amp;quot;:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;restoreRepeatingTable(&amp;quot;group2_297&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;case &amp;quot;Insert&amp;quot;:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (eventObj.NewValue != &amp;quot;&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fillPlantNotificationList();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;default:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&amp;nbsp;&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;function restoreRepeatingTable(cXmlToEdit)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;XDocument.View.ExecuteAction(&amp;quot;xCollection::removeAll&amp;quot;, cXmlToEdit);&lt;br /&gt;&amp;nbsp;XDocument.View.ExecuteAction(&amp;quot;xCollection::insert&amp;quot;, cXmlToEdit);&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;function fillPlantNotificationList()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;var oPnlItem&amp;nbsp;= me.selectSingleNode(&amp;quot;//my:PnlItem&amp;quot;);&lt;br /&gt;&amp;nbsp;var oPnl&amp;nbsp;&amp;nbsp;= me.selectSingleNode(&amp;quot;//my:PlantNotificationList&amp;quot;);&lt;br /&gt;&amp;nbsp;var cLocation&amp;nbsp;= me.selectSingleNode(&amp;quot;//my:Location&amp;quot;).text;&lt;/p&gt;&lt;p&gt;&amp;nbsp;var oContacts&amp;nbsp;= XDocument.DataObjects(&amp;quot;Workflow&amp;quot;).DOM.selectNodes(&amp;quot;//dfs:Workflow[@Location=&amp;#39;&amp;quot; + cLocation + &amp;quot;&amp;#39;]&amp;quot;);&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;if (oContacts)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;for (var i = 0; i &amp;lt; oContacts.length; i++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var oNewItem = oPnlItem.cloneNode(true);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;oNewItem.selectSingleNode(&amp;quot;my:PnlName&amp;quot;).text&amp;nbsp;= oContacts.item(i).selectSingleNode(&amp;quot;@First_Name&amp;quot;).text + &amp;quot; &lt;a href="mailto:%22%20+%20oContacts.item(i).selectSingleNode(%22@Last_Name%22).text"&gt;&amp;quot; + oContacts.item(i).selectSingleNode(&amp;quot;@Last_Name&amp;quot;).text&lt;/a&gt; + &amp;quot;&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;oNewItem.selectSingleNode(&amp;quot;my:PnlEmail&amp;quot;).text&amp;nbsp;= (address = oContacts.item(i).selectSingleNode(&amp;quot;@E-mail_Address&amp;quot;))? address.text: &amp;quot;&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;oNewItem.selectSingleNode(&amp;quot;my:PnlPhone&amp;quot;).text&amp;nbsp;= (phone = oContacts.item(i).selectSingleNode(&amp;quot;@Business_Phone&amp;quot;))? phone.text: &amp;quot;&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;oPnl.insertBefore(oNewItem, oPnlItem);&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/19354.aspx</link><pubDate>Wed, 25 Apr 2007 17:35:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19354</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19354.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=19354</wfw:commentRss><description>&lt;p&gt;2DS is my abbreviation for Secondary Data Source. Repeating tables bound to a 2DS are basically 2nd class citizens in InfoPath (unfortunately)--there are a lot of features turned off for them (as you&amp;#39;ve seen, inserting rows, filtering, etc).&lt;/p&gt;&lt;p&gt;Modifying the DOM of a 2DS is the same as working with your main DOM. If you are using the InfoPath 2003 object model, you&amp;#39;d be using thing like selectSingleNode() and appendChild() to add a new row. If you are using the InfoPath 2007 object model, then you&amp;#39;d be using the XmlNode, etc objects to do the same thing. Sorry I don&amp;#39;t have any links to point you to... but it is basic XML DOM manipulation, and there should be plenty of sources that explain how to do this.&lt;/p&gt;</description></item><item><title>Re: Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/19351.aspx</link><pubDate>Wed, 25 Apr 2007 13:51:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19351</guid><dc:creator>murphyadam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19351.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=19351</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve not been able to find any examples on reading a secondary data source and writing the data to a repeating table.&amp;nbsp; Can you point me in the correct direction?&lt;/p&gt;&lt;p&gt;Also, what is 2DS limitation?&lt;/p&gt;</description></item><item><title>Re: Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/19337.aspx</link><pubDate>Tue, 24 Apr 2007 21:23:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19337</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19337.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=19337</wfw:commentRss><description>&lt;p&gt;While you can set values with rules, the most useful method is using code. This will allow you to properly pinpoint the correct row and fields.&lt;/p&gt;&lt;p&gt;Using code you can also get by the limitation about adding/removing rows in a 2DS repeating table. In code you can simply insert a new row node, or remove one. Set up buttons that call into the code to accomplish this (i.e. an &amp;quot;Insert New Row&amp;quot; button, etc).&lt;/p&gt;</description></item><item><title>Re: Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/19336.aspx</link><pubDate>Tue, 24 Apr 2007 19:50:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19336</guid><dc:creator>murphyadam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19336.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=19336</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve just discovered that if I bind it to a secondary data source then a user can&amp;#39;t insert new items.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;The most desirable solution is to set the repeating table values through a rule or code using the secondary datasource.&amp;nbsp; Is this possible?&lt;/p&gt;</description></item><item><title>Re: Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/19335.aspx</link><pubDate>Tue, 24 Apr 2007 19:32:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19335</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19335.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=19335</wfw:commentRss><description>&lt;p&gt;Unfortunately filtering isn&amp;#39;t available on secondary data sources. However, you can use conditional formatting which can accomplish the same thing.&lt;/p&gt;</description></item><item><title>Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/19330.aspx</link><pubDate>Tue, 24 Apr 2007 19:13:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19330</guid><dc:creator>murphyadam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19330.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=19330</wfw:commentRss><description>&lt;p&gt;I have a drop-down control where the user selects a location.&amp;nbsp; I need to populate a repeating table based on their selection.&lt;/p&gt;&lt;p&gt;So, I pick Kanas City and then the repeating table gives me Name, Email,&amp;nbsp;Phone of each person in Kansas City.&amp;nbsp; All of my datasources are in Sharepoint lists.&lt;/p&gt;&lt;p&gt;I tried the Binding options of the repeating table but it doesn&amp;#39;t allow for filtering based on another field, that I could find.&lt;/p&gt;</description></item></channel></rss>