<?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: Change value on delete item in repeating section</title><link>https://www.infopathdev.com:443/forums/thread/37310.aspx</link><pubDate>Mon, 19 Jan 2009 07:24:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37310</guid><dc:creator>totoen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37310.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=37310</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks a lot for this explanation.&lt;/p&gt;</description></item><item><title>Re: Change value on delete item in repeating section</title><link>https://www.infopathdev.com:443/forums/thread/37269.aspx</link><pubDate>Sat, 17 Jan 2009 07:18:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37269</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=37269</wfw:commentRss><description>&amp;nbsp;Hi, 
&lt;p&gt;e.Parent Gets a reference to the XML Document Object Model (DOM) node of the parent of the XML DOM node being changed during a data validation event&lt;/p&gt;
&lt;p&gt;e.Site.parentNode gets the reference of the parent of the node for which the event is fired.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Change value on delete item in repeating section</title><link>https://www.infopathdev.com:443/forums/thread/37235.aspx</link><pubDate>Fri, 16 Jan 2009 15:50:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37235</guid><dc:creator>totoen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37235.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=37235</wfw:commentRss><description>&lt;p&gt;Thanks a lot swathip that&amp;#39;s work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But can you explain me the difference between parent and parentnode because with the first that goes but not with the second?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Cheers&lt;/p&gt;</description></item><item><title>Re: Change value on delete item in repeating section</title><link>https://www.infopathdev.com:443/forums/thread/37232.aspx</link><pubDate>Fri, 16 Jan 2009 14:46:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37232</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37232.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=37232</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Use the following code lines in the func field on after change event.&lt;/p&gt;
&lt;p&gt;if (e.Operation != &amp;quot;Insert&amp;quot;)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;e.Parent.selectSingleNode(&amp;quot;@my:&lt;strong&gt;modified&lt;/strong&gt;&amp;quot;).text = &amp;quot;&amp;lt;value to be stored in modified field&amp;gt;&amp;quot;;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Change value on delete item in repeating section</title><link>https://www.infopathdev.com:443/forums/thread/37230.aspx</link><pubDate>Fri, 16 Jan 2009 14:25:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37230</guid><dc:creator>totoen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37230.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=37230</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I use infopath 2003 C#2.0.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My problem is that I dont understand how to change a value of an attribute when I delete one of my repeating section item:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Example:&lt;/p&gt;
&lt;p&gt;&amp;lt;Person &lt;strong&gt;modified=&amp;quot;0&amp;quot;&lt;/strong&gt;&amp;gt;&lt;br /&gt;&amp;lt;Name&amp;gt;Toto&amp;lt;/Name&amp;gt;&lt;br /&gt;&amp;lt;func&amp;gt;President&amp;lt;/func&amp;gt;&lt;br /&gt;&lt;strong&gt;&amp;lt;func&amp;gt;Director&amp;lt;/func&amp;gt;&lt;/strong&gt;&lt;br /&gt;&amp;lt;/Person&amp;gt;&lt;/p&gt;
&lt;p&gt;So now&amp;nbsp;I delete the item Director. How can I do with my C# code to catch the &amp;quot;delete&amp;quot; and&amp;nbsp;set &amp;quot;modified&amp;quot; attribute to 1 (in Person Element)?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I now that I can catch the delete event in a onBeforeChange of field func&amp;nbsp;with :&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;&lt;font size="3"&gt;&lt;font color="#000000"&gt;&lt;font face="Calibri"&gt;if (&amp;quot;Delete&amp;quot; == e.Operation)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;&lt;font size="3"&gt;&lt;font color="#000000"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;&lt;font face="Calibri" color="#000000" size="3"&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;&lt;font size="3"&gt;&lt;font color="#000000"&gt;&lt;font face="Calibri"&gt;But after I dont know what to do for set the value of my attribute.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 10pt;"&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;&lt;font size="3"&gt;&lt;font color="#000000"&gt;&lt;font face="Calibri"&gt;Because if I use e (eventags) I cannot go back to the parent element Person&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 10pt;"&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;&lt;font face="Calibri" color="#000000" size="3"&gt;Any idea about how to solve this?&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 10pt;"&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;&lt;font face="Calibri" color="#000000" size="3"&gt;Thanks&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>