<?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: problem with .length  on a node, doesn't appear to be correct in edit vs. new</title><link>https://www.infopathdev.com:443/forums/thread/26722.aspx</link><pubDate>Tue, 26 Feb 2008 00:42:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26722</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26722.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=26722</wfw:commentRss><description>&lt;p&gt;Try using a complete XPath from the root to the desired node:&lt;/p&gt;
&lt;p&gt;(&amp;quot;/RootNode/GrandParentNode/ParentNode/d:UT_Proposal_Material&amp;quot;)&lt;/p&gt;
&lt;p&gt;. . . or whatever the actual full XPath is to that particular node... you should get the idea from here.&lt;/p&gt;</description></item><item><title>Re: problem with .length  on a node, doesn't appear to be correct in edit vs. new</title><link>https://www.infopathdev.com:443/forums/thread/26701.aspx</link><pubDate>Fri, 22 Feb 2008 21:53:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26701</guid><dc:creator>Mario</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26701.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=26701</wfw:commentRss><description>&lt;p&gt;Greg, thanks for the tips, could you give an example of the syntax on&amp;nbsp; a more direct Xpath or &lt;/p&gt;
&lt;p&gt;point me&amp;nbsp;in the direction of some vbscript examples? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks in advance.&lt;/p&gt;</description></item><item><title>Re: problem with .length  on a node, doesn't appear to be correct in edit vs. new</title><link>https://www.infopathdev.com:443/forums/thread/26698.aspx</link><pubDate>Fri, 22 Feb 2008 20:06:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26698</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26698.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=26698</wfw:commentRss><description>&lt;p&gt;It could be your XPath. You are using &amp;quot;//&amp;quot; which says to return all descendant D:UT_Proposal_Material nodes. This might be picking up nodes that you weren&amp;#39;t expecting. Try giving a more direct XPath that includes all the ancestor nodes to this one.&lt;/p&gt;
&lt;p&gt;The other trick is to create a new temporary table in your view to see what is really being returned. Maybe there really is extra rows being returned.&lt;/p&gt;</description></item><item><title>problem with .length  on a node, doesn't appear to be correct in edit vs. new</title><link>https://www.infopathdev.com:443/forums/thread/26689.aspx</link><pubDate>Fri, 22 Feb 2008 17:21:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26689</guid><dc:creator>Mario</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26689.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=26689</wfw:commentRss><description>&lt;p&gt;hi all, I have an Infopath 2003 form using VB Script.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a couple of repeating tables on the form that are submitted to a database and saved on a Sharepoint form.&amp;nbsp; when I first fill out the form and save it, it works correctly.&amp;nbsp; When I come back to edit in through infopath, the .length of the node of the repeating table appears to be too big.&amp;nbsp; here is the code:&lt;/p&gt;
&lt;p&gt;NumMaterialRowsWidth = XDocument.DOM.SelectNodes(&amp;quot;//d:UT_Proposal_Material&amp;quot;).length &lt;/p&gt;
&lt;p&gt;If there are only two materials in my database and on the form, the .length parameter is returning&amp;nbsp;4 and if there are 3, it sometimes returns 5 or 6.&lt;/p&gt;
&lt;p&gt;can any one see any glaring problems with my logic?, I&amp;#39;ve verified the database and there should be only 2 rows when the .length says 4?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any help appreciated, this is a great site with helpful insights.&lt;/p&gt;</description></item></channel></rss>