<?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: Faster way to clear a node</title><link>https://www.infopathdev.com:443/forums/thread/22074.aspx</link><pubDate>Sun, 29 Jul 2007 16:54:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22074</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22074.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22074</wfw:commentRss><description>Unfortunately, you will have to implement paging on your own.&amp;nbsp; We have discussed this countless times on the forums - try searching around a bit.&amp;nbsp; We also have a few blog posts that cover this, I think.</description></item><item><title>Re: Faster way to clear a node</title><link>https://www.infopathdev.com:443/forums/thread/22072.aspx</link><pubDate>Sun, 29 Jul 2007 16:45:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22072</guid><dc:creator>moestavern</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22072.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22072</wfw:commentRss><description>&lt;p&gt;Hi Matt, &lt;/p&gt;&lt;p&gt;does the repeating table control have the ability to do paging, or do I need to use views ?&lt;/p&gt;&lt;p&gt;I am using Infopath 2003.&lt;/p&gt;&lt;p&gt;&amp;nbsp;cheers&lt;/p&gt;&lt;p&gt;moe&lt;/p&gt;</description></item><item><title>Re: Faster way to clear a node</title><link>https://www.infopathdev.com:443/forums/thread/22059.aspx</link><pubDate>Fri, 27 Jul 2007 16:04:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22059</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22059.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22059</wfw:commentRss><description>Yes, 1100 nodes on any single InfoPath view will cause huge performance hits.&amp;nbsp; You should use paging&amp;nbsp; to only show 20 rows at a time, or when you are deleting, switching to another &amp;quot;Deleting&amp;quot; page while the delete operation runs, and then switch back after it is done.</description></item><item><title>Re: Faster way to clear a node</title><link>https://www.infopathdev.com:443/forums/thread/22047.aspx</link><pubDate>Fri, 27 Jul 2007 12:16:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22047</guid><dc:creator>moestavern</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22047.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22047</wfw:commentRss><description>I Played around a little, removing 100 child nodes still has acceptable performance (a couple of secs), however deleting 300 (or even 1100) nodes takes several minutes with a white-screen-non-responding infopath ;-(</description></item><item><title>Re: Faster way to clear a node</title><link>https://www.infopathdev.com:443/forums/thread/22045.aspx</link><pubDate>Fri, 27 Jul 2007 11:53:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22045</guid><dc:creator>moestavern</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22045.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22045</wfw:commentRss><description>&lt;p&gt;Hi Matt,&lt;/p&gt;&lt;p&gt;yes,&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;allTheNodes.removeAll();&lt;/p&gt;&lt;p&gt;is valid JScript.&lt;/p&gt;&lt;p&gt;However, the behaviour is the same. Seems to me as if &lt;/p&gt;&lt;p&gt;allTheNodes.removeAll();&lt;/p&gt;&lt;p&gt;internally&amp;nbsp;performs the same for loop with removeChild that&amp;nbsp;I did before.&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;Stefan&lt;/p&gt;</description></item><item><title>Re: Faster way to clear a node</title><link>https://www.infopathdev.com:443/forums/thread/22037.aspx</link><pubDate>Fri, 27 Jul 2007 11:31:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22037</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22037.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22037</wfw:commentRss><description>&lt;p&gt;Hi moestavern,&lt;/p&gt;&lt;p&gt;Yes.&amp;nbsp; I&amp;#39;m not sure the exact syntax in JScript, but the IXMLDOMSelection class has a removeAll() method that I always use when doing something like this.&amp;nbsp; I haven&amp;#39;t run numbers or encountered a problem like this, but it should be faster.&lt;/p&gt;&lt;p&gt;Try this:&lt;/p&gt;&lt;p&gt;allTheNodes.removeAll();&lt;/p&gt;</description></item><item><title>Faster way to clear a node</title><link>https://www.infopathdev.com:443/forums/thread/22029.aspx</link><pubDate>Fri, 27 Jul 2007 06:31:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22029</guid><dc:creator>moestavern</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22029.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22029</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;my users search for products in a database, and I want to allow my user to clear the repeating table of search results. So I have a button with this code:&lt;/p&gt;&lt;p&gt;// now clear the query results table&lt;br /&gt;objSource = XDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields&amp;quot; );&lt;br /&gt;var allTheNodes = objSource.selectNodes(&amp;quot;//d:Products&amp;quot;);&lt;br /&gt;for (var i=0; i&amp;lt;allTheNodes.length; i++) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item = allTheNodes.item(i);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objSource.removeChild(Item);&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;This works fine if my repeating table showing the products only has a couple of entries. Once the number of entries is huge (100+, I would say), INFOPATH.EXE consumes 50% CPU for minutes, and most of the time I have to kill the process since it never seems to return.&lt;/p&gt;&lt;p&gt;Is there a faster and mroe performant way to remove all child nodes ?&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;moe&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>