<?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: how can I get the data from the detail</title><link>https://www.infopathdev.com:443/forums/thread/27287.aspx</link><pubDate>Tue, 18 Mar 2008 14:33:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27287</guid><dc:creator>czbjack</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27287.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=27287</wfw:commentRss><description>&lt;p&gt;I&amp;nbsp; got the data from the Master just like&lt;/p&gt;
&lt;p&gt;function btnInsert::OnClick(eventObj)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;{ &lt;/p&gt;
&lt;p&gt;var myList = XDocument.DOM.selectNodes(&amp;quot;/dfs:myFields/dfs:dataFields/d:Orders&amp;quot;); &lt;/p&gt;
&lt;p&gt;for(var i = 0; i &amp;lt; myList.length; i++) &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;&amp;nbsp;var supplierID = myList(i).selectSingleNode(&amp;quot;@SupplierID&amp;quot;).text; &lt;/p&gt;
&lt;p&gt;var deptID = myList(i).selectSingleNode(&amp;quot;@DeptID&amp;quot;).text;&lt;/p&gt;
&lt;p&gt;....&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>how can I get the data from the detail</title><link>https://www.infopathdev.com:443/forums/thread/27286.aspx</link><pubDate>Tue, 18 Mar 2008 14:30:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27286</guid><dc:creator>czbjack</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27286.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=27286</wfw:commentRss><description>&lt;p&gt;I&amp;nbsp;have a form that has the main datasource as a SQL database. The database contains a parent and achild table. The parent table contains overview information and the child table contains detail.Which display as a Master/Detail.&lt;/p&gt;
&lt;p&gt;Problem:I want to add new records via code.But I don&amp;#39;t know how to get the data from the detail.&lt;/p&gt;
&lt;p&gt;Any help?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>