<?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: Populate a repeating table based on values of a secondary datasource.</title><link>https://www.infopathdev.com:443/forums/thread/43161.aspx</link><pubDate>Thu, 18 Jun 2009 20:16:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43161</guid><dc:creator>Midianman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43161.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=43161</wfw:commentRss><description>&lt;p&gt;Awesome thanks!!!&lt;/p&gt;
&lt;p&gt;Dragging the secondary datasource to my form and using the conditional formatting resolved the data display issue.&amp;nbsp; Now I just need to figure out a way to get only the displayed records to merge and publish to the list as well.&lt;/p&gt;
&lt;p&gt;It appears as though there is no way to publish to the list from the secondary datasource.&amp;nbsp;&amp;nbsp; I assume I have to copy the data displayed from the secondary datasource to a repeating table in my main.&amp;nbsp; Is that correct?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Populate a repeating table based on values of a secondary datasource.</title><link>https://www.infopathdev.com:443/forums/thread/43156.aspx</link><pubDate>Thu, 18 Jun 2009 18:54:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43156</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43156.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=43156</wfw:commentRss><description>&lt;p&gt;Actually, what you tried should, so maybe you got one part wrong.&amp;nbsp; The way I would do this is to drag the group from the whichever data source will populate the repeating table and put it on the canvas.&amp;nbsp; Remove whichever fields you don&amp;#39;t want in the table and move around/format the columns to look how you want.&lt;/p&gt;
&lt;p&gt;Then, double-click the repeating table to get to its properties and go to conditional formatting.&amp;nbsp; In there, choose to HIDE THIS CONTROL if the field in the data source matches the data chosen in your other dropdown.&amp;nbsp; That will cause the repeating table to only show the data relevant to the selection.&amp;nbsp; However, the form will still download all the data.&lt;/p&gt;</description></item><item><title>Populate a repeating table based on values of a secondary datasource.</title><link>https://www.infopathdev.com:443/forums/thread/43155.aspx</link><pubDate>Thu, 18 Jun 2009 18:45:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43155</guid><dc:creator>Midianman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43155.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=43155</wfw:commentRss><description>&lt;p&gt;I have a dropdown that is populated by a secondary datasource.&amp;nbsp; This works fine.&amp;nbsp; I want to be able to select a value from the dropdown and populate a repeating table of my main based on values from another secondary datasource.&lt;br /&gt;&lt;br /&gt;I can set rules on my dropdown that set the indivdual fields of my repeating table and only received the first record.&amp;nbsp; After some reading thought th&lt;/p&gt;
&lt;p&gt;I then added a filters to the fields from within the repeating table and I got the same results, only the first record.&lt;br /&gt;&lt;br /&gt;So I tried dragging over the group from the secondary datasource which brought over all of the fields from the secondary datasource and bound it to it.&amp;nbsp;&amp;nbsp; This causes 2 problems.&amp;nbsp; One everything is grayed out under the data tab, so I can not filter it.&amp;nbsp; secondly since it is unfiltered the form tries to bring in too much data on the load and hangs.&lt;br /&gt;&lt;br /&gt;My xpath looks like the following where VwReservationDetails is the secondary datasource and it will bring in the first record fine.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;VwReservationDetails&amp;quot;)/dfs:myFields/dfs:dataFields/d:VwReservationDetails/@PART_ID[../@RES_ID = xdXDocument:get-DOM()/my:myFields/my:Request_No]&lt;/p&gt;
&lt;p&gt;Part_no is the field inside the Material_transfer group in&amp;nbsp;Main&amp;nbsp;being field populated with PART_ID from&amp;nbsp; VwReservationDetails &lt;br /&gt;where RES_ID from the VwReservationDetails is equal to the Request_No (dropdown on the form)&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I am guessing I need to include the group on the form somehow but I am not sure how and if this works how would the fields get there mapping:&lt;/p&gt;
&lt;p&gt;/my:myFields/my:Material_Transfer &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>