<?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>Re: Order of Events</title><link>https://www.infopathdev.com:443/forums/thread/4361.aspx</link><pubDate>Tue, 03 Apr 2007 10:25:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4361</guid><dc:creator>stumbler</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4361.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4361</wfw:commentRss><description>Thanks, now it's clear although it doesn't seems very logic to me.&lt;br /&gt;</description></item><item><title>Re: Order of Events</title><link>https://www.infopathdev.com:443/forums/thread/4360.aspx</link><pubDate>Mon, 02 Apr 2007 10:29:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4360</guid><dc:creator>B.Shiva Prasad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4360.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4360</wfw:commentRss><description>Hi stumbler,&lt;br /&gt;&lt;br /&gt;Its not at all your falut, onAfterChange for a control means when you make any changes in that control it will show the message.&lt;br /&gt;&lt;br /&gt;Here you are entering a value in that control for that first time it will show once the message and in the next time you are deleting that value and entering another value means you are doing changes twice thats why the message is coming twice.&lt;br /&gt;&lt;br /&gt;Hope you understand.</description></item><item><title>Re: Order of Events</title><link>https://www.infopathdev.com:443/forums/thread/4359.aspx</link><pubDate>Mon, 02 Apr 2007 08:16:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4359</guid><dc:creator>stumbler</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4359.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4359</wfw:commentRss><description>Thanks for the explanation.&lt;br /&gt;But I don't understand why the onAfterChange event is triggered twice for each record. Or is my code the problem?&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Order of Events</title><link>https://www.infopathdev.com:443/forums/thread/4358.aspx</link><pubDate>Mon, 02 Apr 2007 07:08:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4358</guid><dc:creator>B.Shiva Prasad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4358.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4358</wfw:commentRss><description>Hi stumbler,&lt;br /&gt;&lt;br /&gt;OnBeforeChange occurs when the change has been made but not yet accepted or finalized. Code in this event procedure can examine the new data value and, if it doesn't meet the form's requirements, reject it and keep the old data value.&lt;br /&gt;&lt;br /&gt;OnValidate occurs after OnBeforeChange, when the change has still not been finalized. It is like OnBeforeChange in that code examines the data value to see if it is acceptable. It differs from OnBeforeChange in that it does not offer the ability to automatically roll back the data to the previous value. Rather, it lets you display a validation error message to users to prompt them to fix the data.&lt;br /&gt;&lt;br /&gt;OnAfterChange occurs when the change has been accepted and finalized. It is typically used to perform calculations or other updates to the form based on the new data. Strictly speaking, this event really isn't used for data validation but rather to initiate some action after the data has been accepted.&lt;br /&gt;&lt;br /&gt;Hope this will help you</description></item><item><title>Order of Events</title><link>https://www.infopathdev.com:443/forums/thread/1944.aspx</link><pubDate>Sun, 01 Apr 2007 11:36:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1944</guid><dc:creator>stumbler</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1944.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1944</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;I have a general question concerning the order of events.&lt;br /&gt;On a control one can choose between&lt;br /&gt;Onbeforechange&lt;br /&gt;onvalidate&lt;br /&gt;onafterchange.&lt;br /&gt;I wonder when the onvalidate event is triggered exactly and when the onafterchange is triggered?&lt;br /&gt;I ask this question because now I use an onafterchange event and I have the impression that it is triggered twice each time the form get populated with the data source data. I tested it with a popup and it appears twice for each record.</description></item></channel></rss>