<?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: copy the value of a field in following occurence</title><link>https://www.infopathdev.com:443/forums/thread/14773.aspx</link><pubDate>Fri, 15 Sep 2006 09:18:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14773</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14773.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14773</wfw:commentRss><description>yes of course! &lt;br /&gt;&lt;br /&gt;But we plan to launch our solution on 1 november so I don't have time to re-develop my solution in 2007 object model!&lt;br /&gt;&lt;br /&gt;But the user will have 2007 on their pc!&lt;br /&gt;&lt;br /&gt;It's because we have make some testing and see that go very faster our solution on infopath 2007!&lt;br /&gt;&lt;br /&gt;But next year in april we plan to re-develop our solution with the 2007 Object model!&lt;br /&gt;&lt;br /&gt;Other things have you develop somethings for my control? Or you don't have time now. &lt;br /&gt;&lt;br /&gt;Because that can be a great things if we can include this control for the launch of the application!!!&lt;br /&gt;&lt;br /&gt;Thanks &lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Re: copy the value of a field in following occurence</title><link>https://www.infopathdev.com:443/forums/thread/14772.aspx</link><pubDate>Fri, 15 Sep 2006 09:00:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14772</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14772.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14772</wfw:commentRss><description>Hmmm. System.XML works now with InfoPath 2007. Do you have the Beta2?</description></item><item><title>Re: copy the value of a field in following occurence</title><link>https://www.infopathdev.com:443/forums/thread/14771.aspx</link><pubDate>Fri, 15 Sep 2006 05:38:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14771</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14771.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14771</wfw:commentRss><description>Hi Patrick,&lt;br /&gt;&lt;br /&gt;Thanks for this comment and for have make this possible, too.&lt;br /&gt;&lt;br /&gt;With your code my problem is not solve because I have no error but only 14 field in my repeating section is filled. So I thin that can be a bug because when I see what I  have in my IXMLDOMNode I see my markup with the attribut but Infapth are unable to delete, change or take the value.&lt;br /&gt;&lt;br /&gt;So I will try to find another way with System.Xml!&lt;br /&gt;&lt;br /&gt;Thanks &lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Re: copy the value of a field in following occurence</title><link>https://www.infopathdev.com:443/forums/thread/14770.aspx</link><pubDate>Tue, 12 Sep 2006 06:00:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14770</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14770.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14770</wfw:commentRss><description>Hi Thierry,&lt;br /&gt;&lt;br /&gt;*Your* French forum has some of the most active threads! I think I need to send you stock in InfoPathDev or something. :) &lt;br /&gt;&lt;br /&gt;Not sure if this will help you, but have you tried:&lt;br /&gt;&lt;br /&gt;    if (((IXMLDOMElement)NextCase).getAttribute("xsi:nil") != null)&lt;br /&gt;        ((IXMLDOMElement)NextCase).removeAttribute("xsi:nil");&lt;br /&gt;&lt;br /&gt;Good luck!</description></item><item><title>copy the value of a field in following occurence</title><link>https://www.infopathdev.com:443/forums/thread/12939.aspx</link><pubDate>Wed, 06 Sep 2006 07:12:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12939</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12939.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12939</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;What I would like to do is copy the value that I have entered in the following sibling element from my reapeating-table. But I have an error when I try to modify the 15th element of this table. That send me the error:&lt;br /&gt; &lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;Exception de HRESULT : 0x80043051&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;I Have try the two following code that send me the same error at the 15th occurence when I try to remove my xsi:nil attribute:&lt;br /&gt;&lt;pre&gt;[InfoPathEventHandler(MatchPath="/CaseList/Case/Geschaeft/SHAB/SHABnr", EventType=InfoPathEventType.OnAfterChange)]&lt;br /&gt;public void SHABnr_OnAfterChange(DataDOMEvent e)&lt;br /&gt;{&lt;br /&gt;		&lt;br /&gt;            if (e.IsUndoRedo)&lt;br /&gt;            {&lt;br /&gt;                return;&lt;br /&gt;            }&lt;br /&gt;            if (e.Source.nodeType != DOMNodeType.NODE_TEXT)&lt;br /&gt;            {&lt;br /&gt;                return;&lt;br /&gt;            }&lt;br /&gt;            if (e.Site != e.Parent)&lt;br /&gt;            {&lt;br /&gt;                return;&lt;br /&gt;            }&lt;br /&gt;            if ("Insert" != e.Operation)&lt;br /&gt;            {&lt;br /&gt;                return;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;	    string SHABNr = e.Source.text;&lt;br /&gt;            if (SHABNr != "")&lt;br /&gt;            {&lt;br /&gt;                IXMLDOMNode oRow = e.Source.parentNode.parentNode.parentNode.parentNode;&lt;br /&gt;                IXMLDOMNode oRows = oRow.parentNode;&lt;br /&gt;                IXMLDOMNode oNextRow = oRow.selectSingleNode("following-sibling::Case");&lt;br /&gt;&lt;br /&gt;                if (oNextRow != null &amp;&amp; oNextRow.selectSingleNode("Geschaeft/SHAB/SHABnr").text != SHABNr)&lt;br /&gt;                {&lt;br /&gt;                    oNextRow.selectSingleNode("Geschaeft/SHAB/SHABnr").attributes.removeNamedItem("xsi:nil");&lt;br /&gt;                    oNextRow.selectSingleNode("Geschaeft/SHAB/SHABnr").text = SHABNr;&lt;br /&gt;                }&lt;br /&gt;    &lt;br /&gt;            }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;or with this one:&lt;br /&gt;&lt;pre&gt;[InfoPathEventHandler(MatchPath="/CaseList/Case/Geschaeft/SHAB/Datum", EventType=InfoPathEventType.OnAfterChange)]&lt;br /&gt;public void SHAB_Datum_OnAfterChange(DataDOMEvent e)&lt;br /&gt;{&lt;br /&gt;			&lt;br /&gt;            if (e.IsUndoRedo)&lt;br /&gt;            {&lt;br /&gt;                return;&lt;br /&gt;            }&lt;br /&gt;            if (e.Source.nodeType != DOMNodeType.NODE_TEXT)&lt;br /&gt;            {&lt;br /&gt;                return;&lt;br /&gt;            }&lt;br /&gt;            if (e.Site != e.Parent)&lt;br /&gt;            {&lt;br /&gt;                return;&lt;br /&gt;            }&lt;br /&gt;            if ("Insert" != e.Operation)&lt;br /&gt;            {&lt;br /&gt;                return;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            string SHABDatum = e.Source.text;&lt;br /&gt;            if (SHABDatum != "")&lt;br /&gt;            {&lt;br /&gt;                IXMLDOMNode NextCase = e.Source.parentNode.parentNode.parentNode.parentNode.nextSibling;&lt;br /&gt;                if (NextCase != null &amp;&amp; NextCase.selectSingleNode("Geschaeft/SHAB/Datum").text != SHABDatum)&lt;br /&gt;                {  &lt;br /&gt; NextCase.selectSingleNode("Geschaeft/SHAB/Datum").attributes.removeNamedItem("xsi:nil");&lt;br /&gt;                 NextCase.selectSingleNode("Geschaeft/SHAB/Datum").text = SHABDatum;&lt;br /&gt;          &lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;		&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;I think I'm doing anything wrong but I dont understand what!&lt;br /&gt;&lt;br /&gt;The problem that I dont understand is that I have anything in my IXMLDOMNode and the data inner is correct but infoapth cant remove this attribute. Why I dont know. Do you think that can be a bug?&lt;br /&gt;&lt;br /&gt;Any idea?&lt;br /&gt;&lt;br /&gt;Thanks &lt;br /&gt;&lt;br /&gt;Thierry</description></item></channel></rss>