<?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: capturing data from secondary datasource</title><link>https://www.infopathdev.com:443/forums/thread/14024.aspx</link><pubDate>Tue, 22 Nov 2005 13:12:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14024</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14024.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14024</wfw:commentRss><description>Agreed, dumping the entire secondary datasource's xml into a single element within your main datasource would not be best.  I think you are on the right path but just need to tweek it.  In your main data source add a repeating group(s) that match the schema of your secondary datasource.  Then as items are checked in your secondary datasource repeating group, move the data into your main datasource.</description></item><item><title>capturing data from secondary datasource</title><link>https://www.infopathdev.com:443/forums/thread/12687.aspx</link><pubDate>Mon, 21 Nov 2005 20:30:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12687</guid><dc:creator>cjellick</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12687.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12687</wfw:commentRss><description>Greetings once again,&lt;br /&gt;&lt;br /&gt;Please forgive all my questions as I climb the learning curve.  Here's my latest question:&lt;br /&gt;&lt;br /&gt;I have a list of items that the user needs to select from.  The user needs to be able to select more than one item.  I'm getting the list of items from a secondary datasource (an xml doc).&lt;br /&gt;&lt;br /&gt;Here's what the secondary datasource looks like:&lt;br /&gt;&lt;br /&gt;&amp;lt;group name="firstGroup" entireGroupSelected="false"&amp;gt;&lt;br /&gt;   &amp;lt;subgroup name="subGroupA" selected="false"/&amp;gt;&lt;br /&gt;   &amp;lt;subgroup name="subGroupB" selected="false"/&amp;gt;&lt;br /&gt;&amp;lt;/group1&amp;gt;&lt;br /&gt;&lt;br /&gt;...and groups and subgroups can repeat&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I've set this up as a list of checkbox's.  The checkbox is linked to the "selected" attribute.&lt;br /&gt;&lt;br /&gt;The element group is connected to a repeating section and the element subgroup is connected to a repeating section nested within that one.&lt;br /&gt;&lt;br /&gt;The question is, how do I capture the user's selections into main datasource.  I cant put any fields from my main datasource into the repeating table because Infopath doesnt allow that.&lt;br /&gt;&lt;br /&gt;Currently, my only idea is to programatically get a handle on the secondary datasource's object model through the getDOM() method and then dump its xml into an empty element in my main datasource.  But this seems really messy.&lt;br /&gt;&lt;br /&gt;Any better ideas?</description></item></channel></rss>