<?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: Repeating Section : want to simulate onModify() functionality</title><link>https://www.infopathdev.com:443/forums/thread/36339.aspx</link><pubDate>Tue, 30 Dec 2008 03:17:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36339</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36339.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36339</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;No need to declare &amp;#39;eventObj&amp;#39; object is &amp;#39;e&amp;#39;. You have to use whichever generated object name in JScript and that is &amp;#39;eventObj&amp;#39; in your code.&lt;/p&gt;</description></item><item><title>Re: Repeating Section : want to simulate onModify() functionality</title><link>https://www.infopathdev.com:443/forums/thread/36338.aspx</link><pubDate>Tue, 30 Dec 2008 02:31:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36338</guid><dc:creator>shivajidatta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36338.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36338</wfw:commentRss><description>&lt;p&gt;Swathi, Shiva and Anuma,&lt;/p&gt;
&lt;p&gt;Thank you very much for your help.&amp;nbsp; I really appreciate it.&amp;nbsp; However, there seems to be some issue when I launch the form.&amp;nbsp; It says &amp;#39;)&amp;#39; expected at the beginning of the code section.&amp;nbsp; I have tallied the open and closed brackets and they match.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Just FYI:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; The scripting is set to JScript.&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp; I am using IP 2003.&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp; I have declared the &amp;#39;e&amp;#39; as &lt;strong&gt;eventObj e&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Any further help in this regard will be great.&amp;nbsp; I will attach a dummy form with the thing I am trying to do.&amp;nbsp; Maybe you guys can take a look at it, and suggest modifications / corrections.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Shivaji&lt;/p&gt;</description></item><item><title>Re: Repeating Section : want to simulate onModify() functionality</title><link>https://www.infopathdev.com:443/forums/thread/36311.aspx</link><pubDate>Mon, 29 Dec 2008 09:46:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36311</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36311.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36311</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;In Swathi code, e is equal to ‘eventObj&amp;#39; in your code. You have to replace ‘eventObj&amp;#39; in the place of ‘e&amp;#39; in above code. &lt;/p&gt;
&lt;p&gt;Here is the code,&lt;/p&gt;
&lt;p&gt;function msoxd_my_group2::OnAfterChange(eventObj) &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;if(eventObj.NewValue != eventObj.OldValue &amp;nbsp;&amp;amp;&amp;amp; eventObj.OldValue != null)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;XDocument.DOM.selectSingleNode(&amp;quot;XPath of change indicator field&amp;quot;).text = 1;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>Re: Repeating Section : want to simulate onModify() functionality</title><link>https://www.infopathdev.com:443/forums/thread/36301.aspx</link><pubDate>Mon, 29 Dec 2008 06:19:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36301</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36301.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36301</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Verify below code. Define &amp;quot;e&amp;quot; in your function.&lt;/p&gt;
&lt;p&gt;function msoxd_my_group2::OnAfterChange(eventObj &lt;strong&gt;e&lt;/strong&gt;) &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>Re: Repeating Section : want to simulate onModify() functionality</title><link>https://www.infopathdev.com:443/forums/thread/36290.aspx</link><pubDate>Sat, 27 Dec 2008 04:35:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36290</guid><dc:creator>shivajidatta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36290.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36290</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;swathip:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can add an on after change event by following the below steps.&lt;/p&gt;
&lt;p&gt;1. Go to data source and right click on the repeating group.&lt;/p&gt;
&lt;p&gt;2. Click on Programming -&amp;gt; on after change.&lt;/p&gt;
&lt;p&gt;3. And write the following code line in the on after change.&lt;/p&gt;
&lt;p&gt;If(e.NewValue != e.OldValue &amp;nbsp;&amp;amp;&amp;amp; e.OldValue != null)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;thisXDocument.DOM.selectSingleNode(&amp;quot;xpath of change indicator field&amp;quot;).text = 1;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi Swathi,&lt;/p&gt;
&lt;p&gt;I think I am almost there.&amp;nbsp; When I change the value, I am getting a runtime error saying &amp;quot;e&amp;quot; is undefined (which I understand is a valid error as I have not defined &amp;quot;e&amp;quot;).&amp;nbsp; How do I define &amp;quot;e&amp;quot;?&amp;nbsp;My code looks like : &lt;/p&gt;
&lt;p&gt;function msoxd_my_group2::OnAfterChange(eventObj) &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;If(e.NewValue != e.OldValue &amp;amp;&amp;amp; e.OldValue != null) { thisXDocument.DOM.selectSingleNode(&amp;quot;../my:field6&amp;quot;).text = 1; } // Write code here to restore the global state. &lt;/p&gt;
&lt;p&gt;if (eventObj.IsUndoRedo) &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;// An undo or redo operation has occurred and the DOM is read-only. return; &lt;/p&gt;
&lt;p&gt;} // A field change has occurred and the DOM is writable. Write code here to respond to the changes. &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>Re: Repeating Section : want to simulate onModify() functionality</title><link>https://www.infopathdev.com:443/forums/thread/36283.aspx</link><pubDate>Fri, 26 Dec 2008 05:42:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36283</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36283.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36283</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can add an on after change event by following the below steps.&lt;/p&gt;
&lt;p&gt;1. Go to data source and right click on the repeating group.&lt;/p&gt;
&lt;p&gt;2. Click on Programming -&amp;gt; on after change.&lt;/p&gt;
&lt;p&gt;3. And write the following code line in the on after change.&lt;/p&gt;
&lt;p&gt;If(e.NewValue != e.OldValue &amp;nbsp;&amp;amp;&amp;amp; e.OldValue != null)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;thisXDocument.DOM.selectSingleNode(&amp;quot;xpath of change indicator field&amp;quot;).text = 1;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;}&lt;/p&gt;</description></item><item><title>Re: Repeating Section : want to simulate onModify() functionality</title><link>https://www.infopathdev.com:443/forums/thread/36275.aspx</link><pubDate>Fri, 26 Dec 2008 01:57:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36275</guid><dc:creator>shivajidatta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36275.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36275</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;swathip:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Put an on after change event for the repeating section. If any value changes in the repeating section then set the change Indicator value to 1.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi Swathi,&lt;/p&gt;
&lt;p&gt;How do I do that? I mean in InfoPath 2003, can you tell me how to add this On After Change event?&amp;nbsp; Does it involve any coding?&amp;nbsp; If yes, can you send me&amp;nbsp;a code snippet?&amp;nbsp; I would ideally want to do this without any code.&amp;nbsp; Can you provide some inout in that direction?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Shivaji&lt;/p&gt;</description></item><item><title>Re: Repeating Section : want to simulate onModify() functionality</title><link>https://www.infopathdev.com:443/forums/thread/36269.aspx</link><pubDate>Thu, 25 Dec 2008 05:21:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36269</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36269</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Put an on after change event for the repeating section. If any value changes in the repeating section then set the change Indicator value to 1.&lt;/p&gt;</description></item><item><title>Repeating Section : want to simulate onModify() functionality</title><link>https://www.infopathdev.com:443/forums/thread/36264.aspx</link><pubDate>Wed, 24 Dec 2008 18:04:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36264</guid><dc:creator>shivajidatta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36264.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36264</wfw:commentRss><description>&lt;p&gt;I have a repeating section (a database table) which has a field called &amp;quot;ChangeIndicator&amp;quot;.&amp;nbsp; I need to populate it with some value (e.g 0 or 1) based on whether on not the existing text&amp;nbsp;in any of the fileds changed or not.&amp;nbsp; So basically I need to set a flag when some text changes.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can it be done relatively simply in InfoPath 2003?&lt;/p&gt;</description></item></channel></rss>