<?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: repeating table with optional section-adding rows</title><link>https://www.infopathdev.com:443/forums/thread/14146.aspx</link><pubDate>Thu, 29 Dec 2005 08:51:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14146</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14146.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14146</wfw:commentRss><description>I forgot the code:&lt;br /&gt;IXMLDOMNode row = thisXDocument.DOM.selectSingleNode("//my:table");&lt;br /&gt;IXMLDOMNode tabelka = thisXDocument.DOM.selectSingleNode("/my:myFields/my:group1/my:group2/my:group3");&lt;br /&gt;&lt;br /&gt;and im getting this error on 'tabelka.appendChild(row);'</description></item><item><title>Re: repeating table with optional section-adding rows</title><link>https://www.infopathdev.com:443/forums/thread/14145.aspx</link><pubDate>Thu, 29 Dec 2005 08:42:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14145</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14145.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14145</wfw:commentRss><description>And if i have structure like this:&lt;br /&gt;myFields-&amp;gt;group1-&amp;gt;group2-&amp;gt;group3-&amp;gt;table&lt;br /&gt;and im getting an error like this:&lt;br /&gt;&lt;br /&gt;System.Runtime.InteropServices.COMException&lt;br /&gt;Element '&lt;a target="_blank" href=http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-06-07T16:41:35}table'&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-06-07T16:41:35}table'&lt;/a&gt; is unexpected according to content model of parent element '&lt;a target="_blank" href=http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-06-07T16:41:35}group3'.&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-06-07T16:41:35}group3'.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;What thats mean?</description></item><item><title>Re: repeating table with optional section-adding rows</title><link>https://www.infopathdev.com:443/forums/thread/14144.aspx</link><pubDate>Thu, 29 Dec 2005 07:43:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14144</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14144.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14144</wfw:commentRss><description>-table&lt;br /&gt;--field1&lt;br /&gt;--field2&lt;br /&gt;--section&lt;br /&gt;---field3</description></item><item><title>Re: repeating table with optional section-adding rows</title><link>https://www.infopathdev.com:443/forums/thread/14143.aspx</link><pubDate>Thu, 29 Dec 2005 07:41:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14143</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14143.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14143</wfw:commentRss><description>Hello Patrick,&lt;br /&gt;Optional section is below the row group in the data source, this looks like this:&lt;br /&gt;-table&lt;br /&gt;  -field1&lt;br /&gt;  -field2&lt;br /&gt;  -section&lt;br /&gt;    -field3&lt;br /&gt;When i use 'row.selectsinglenode("my:section");' he accept it, and error is in the next line, when im trying to add field3 :(</description></item><item><title>Re: repeating table with optional section-adding rows</title><link>https://www.infopathdev.com:443/forums/thread/14142.aspx</link><pubDate>Thu, 29 Dec 2005 02:21:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14142</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14142.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14142</wfw:commentRss><description>Hi Mar,&lt;br /&gt;Probably the optional section is not below the row group in the data source. Or, the row object doesn't support indirection to second level or the xpath is just wrong. Check your xpath. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>repeating table with optional section-adding rows</title><link>https://www.infopathdev.com:443/forums/thread/12723.aspx</link><pubDate>Wed, 28 Dec 2005 23:22:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12723</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12723.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12723</wfw:commentRss><description>I have a repeating table with 'field1' and 'field2', and in this table i have optional section 'section' with 'field3'.When i'm using:&lt;br /&gt;row.selectsinglenode("my:field1");&lt;br /&gt;row.selectsinglenode("my:field2");&lt;br /&gt;table.appendchild(row);&lt;br /&gt;&lt;br /&gt;Everything is ok, but when i try to add&lt;br /&gt;[...]&lt;br /&gt;row.selectsinglenode("my:field3"); or row.selectsinglenode("my:section/my:field3");&lt;br /&gt;table.appendchild(row);&lt;br /&gt;&lt;br /&gt;i've got an error (System.NullReferenceException). How can i add this section with its field to this row?</description></item></channel></rss>