<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Displaying errors.count via a control and refreshing it</title><link>https://www.infopathdev.com:443/forums/thread/22922.aspx</link><pubDate>Fri, 07 Sep 2007 16:25:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22922</guid><dc:creator>admot</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22922.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22922</wfw:commentRss><description>&lt;p&gt;I have I created a control that shows the errors.count present in the form. This is required instead of using a popup which displays the errors.&lt;br /&gt;XDocument.DOM.selectSingleNode(&amp;quot;my:Main/my:Specifications/my:FormErrorCount&amp;quot;).text = XDocument.Errors.Count; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The biggest problem is having it refresh. I tried OnContextChange which initially seemed to work. However, when I keep changing the selection in a drop-down, there are times when OnContextChange doesn&amp;#39;t fire i.e., the error count isn&amp;#39;t updated and is incorrect. I tried other approaches such as placing an OnAfterChange under the &amp;quot;Specifications&amp;quot; subsection itself, but that gave the same results.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is there a way to have this control update anytime there is a change inside the entire form or inside subsection AND it successfully takes into account changes in a pull down ?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks!&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>