<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: On after change event error</title><link>https://www.infopathdev.com:443/forums/thread/11404.aspx</link><pubDate>Tue, 03 Apr 2007 14:39:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11404</guid><dc:creator>lou131</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11404.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11404</wfw:commentRss><description>ok...thanks for the reply.</description></item><item><title>Re: On after change event error</title><link>https://www.infopathdev.com:443/forums/thread/11403.aspx</link><pubDate>Mon, 02 Apr 2007 20:30:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11403</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11403.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11403</wfw:commentRss><description>The code I wrote was just a skeleton of your onafterchange event. It was demonstrating the use of a flag to prevent endless loops: i.e. the onafterchange event handler causing another call to the same hanlder, and so on...&lt;br /&gt;&lt;br /&gt;You will need to write your own code to do accomplish what you want inside the handler.</description></item><item><title>Re: On after change event error</title><link>https://www.infopathdev.com:443/forums/thread/11402.aspx</link><pubDate>Mon, 02 Apr 2007 16:35:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11402</guid><dc:creator>lou131</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11402.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11402</wfw:commentRss><description>I guess I don't understand.....// Modify DOM here.&lt;br /&gt;&lt;br /&gt;Im sure it's very simple but I'm not a coder so the simplest of things is difficult.&lt;br /&gt;Thanks&lt;br /&gt;Lou</description></item><item><title>Re: On after change event error</title><link>https://www.infopathdev.com:443/forums/thread/11401.aspx</link><pubDate>Mon, 02 Apr 2007 12:57:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11401</guid><dc:creator>lou131</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11401.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11401</wfw:commentRss><description>Greg,&lt;br /&gt;Any other thoughts on the additional info above.  After I make the change in my drop down, I get the error when I try to insert another row.  The above info is then inserted into event handler.  I'm doing something wrong.  Any additional help would be appreciated.&lt;br /&gt;Thanks&lt;br /&gt;Lou</description></item><item><title>Re: On after change event error</title><link>https://www.infopathdev.com:443/forums/thread/11400.aspx</link><pubDate>Fri, 30 Mar 2007 20:33:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11400</guid><dc:creator>lou131</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11400.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11400</wfw:commentRss><description>One more point....when I get the error in preview mode and go back to the Context Change Event Handler, the following is automatically inserted.&lt;br /&gt;&lt;br /&gt;function XDocument::OnContextChange(eventObj)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;	if (eventObj.Type == "ContextNode")&lt;br /&gt;		{&lt;br /&gt;			// Selection or context in the form has changed. Write your code here to respond to the changes.&lt;br /&gt;			return;&lt;br /&gt;		}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Lou</description></item><item><title>Re: On after change event error</title><link>https://www.infopathdev.com:443/forums/thread/11399.aspx</link><pubDate>Fri, 30 Mar 2007 19:56:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11399</guid><dc:creator>lou131</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11399.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11399</wfw:commentRss><description>Thanks Greg....my repeating table has a column that has a drop down choice.  Based on the choice, the fields do different calculations.  The issue pops up when I change a choice in the drop down but seems to work fine when I select the defaulted choice when the form opens.  I put your code in but still seeing the issue.  Is this a more complex thing or maybe I just copied the code in wrong.  I put the code in the Context Change Event Handler and just inserted it into an open space.&lt;br /&gt;&lt;br /&gt;Thanks again for the help.&lt;br /&gt;Lou</description></item><item><title>Re: On after change event error</title><link>https://www.infopathdev.com:443/forums/thread/11398.aspx</link><pubDate>Fri, 30 Mar 2007 19:35:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11398</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11398.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11398</wfw:commentRss><description>&lt;pre&gt;public void SomeField_OnAfterChange(...)&lt;br /&gt;{&lt;br /&gt;    if(e.UndoRedo || e.Operation != "Insert" || fIsUpdatingFields == true)&lt;br /&gt;        return;&lt;br /&gt;&lt;br /&gt;    fIsUpdatingFields = true;&lt;br /&gt;&lt;br /&gt;    // Modify DOM here.&lt;br /&gt;&lt;br /&gt;    fIsUpdatingFields = false;&lt;br /&gt;}&lt;/pre&gt;</description></item><item><title>Re: On after change event error</title><link>https://www.infopathdev.com:443/forums/thread/11397.aspx</link><pubDate>Fri, 30 Mar 2007 16:32:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11397</guid><dc:creator>lou131</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11397.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11397</wfw:commentRss><description>This is great and thanks for the reply....but please excuse my ignorance.  I'm new to infopath and especially new to doing coding.  Can you be a more specific with an example of the coding and where I should put it.&lt;br /&gt;Thanks&lt;br /&gt;Lou</description></item><item><title>Re: On after change event error</title><link>https://www.infopathdev.com:443/forums/thread/11396.aspx</link><pubDate>Fri, 30 Mar 2007 16:28:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11396</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11396.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11396</wfw:commentRss><description>Sounds like you have the same old problem of your OnAfterChange event handler updating someting which causes the handler to get called again.&lt;br /&gt;&lt;br /&gt;The easiest way to prevent this is to set a global flag (variable) which states that your OAC event handler is making DOM changes. Then at the top of your handler, if that flag is set to true, return out and don't process that event further.&lt;br /&gt;&lt;br /&gt;Then just set the flag to false when done, so that you handler works again later.</description></item><item><title>On after change event error</title><link>https://www.infopathdev.com:443/forums/thread/6163.aspx</link><pubDate>Fri, 30 Mar 2007 15:39:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6163</guid><dc:creator>lou131</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6163.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6163</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I have a repeating table with calculations and rules.  I'm getting the following error:&lt;br /&gt;&lt;br /&gt;The number of calls to the On after change event for a single update in the data exceeded maximum limit.&lt;br /&gt;&lt;br /&gt;How do I resolve this issue?&lt;br /&gt;Thanks&lt;br /&gt;Lou</description></item></channel></rss>