<?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: Creating Repeating Section At Run Time</title><link>https://www.infopathdev.com:443/forums/thread/6776.aspx</link><pubDate>Mon, 05 Sep 2005 11:58:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6776</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6776.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6776</wfw:commentRss><description>ok I have understand now (after have read 100 times your answer)&lt;br /&gt;&lt;br /&gt;The answer is:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;IXMLDOMNode loesch= thisXDocument.DOM.selectSingleNode("/CaseList/Case/AV/AVel/PersBisher/Person[Personalien/PersDaten = ../../../AVel/PersNeuMut/PersListe]");&lt;br /&gt;IXMLDOMDocument domXMLNode = (IXMLDOMDocument)thisXDocument.CreateDOM();&lt;br /&gt;domXMLNode.async = false;&lt;br /&gt;domXMLNode.loadXML(loesch.xml);&lt;br /&gt;IXMLDOMNode oParentNode = thisXDocument.DOM.selectSingleNode("/CaseList/Case/AV/AVel/PersNeuMut");&lt;br /&gt;oParentNode.appendChild(domXMLNode.documentElement);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Thanks a lot for your help Agni!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Re: Creating Repeating Section At Run Time</title><link>https://www.infopathdev.com:443/forums/thread/6775.aspx</link><pubDate>Mon, 05 Sep 2005 09:50:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6775</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6775.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6775</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Thanks for your answer&lt;br /&gt;&lt;br /&gt;I'm not sure to good understand but why I can say:&lt;br /&gt;&lt;br /&gt;Person is a type (in the schema PersType) and you can find it in PersNeuMut and in PersBisher:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;AVel&amp;gt;&lt;br /&gt;&amp;lt;PersBisher&amp;gt;&lt;br /&gt;	&amp;lt;PersListe/&amp;gt;&lt;br /&gt;	&amp;lt;Person Aenderung="" Ein="6" loe="" mut="" seq="" toCheck="" valid=""&amp;gt;&lt;br /&gt;		&amp;lt;RefCancel Ein="" seq=""/&amp;gt;&lt;br /&gt;		&amp;lt;Personalien valid=""&amp;gt;&lt;br /&gt;			&amp;lt;Name Prefix=""/&amp;gt;&lt;br /&gt;			&amp;lt;Vorname/&amp;gt;&lt;br /&gt;			&amp;lt;Heimat BFS="" Land=""/&amp;gt;&lt;br /&gt;			&amp;lt;WohnOrt PLZ="" Land=""/&amp;gt;&lt;br /&gt;			&amp;lt;PersDaten/&amp;gt;&lt;br /&gt;		&amp;lt;/Personalien&amp;gt;&lt;br /&gt;		&amp;lt;Funktion&amp;gt;&lt;br /&gt;			&amp;lt;Fkt FunkNr="" valid=""&amp;gt;&lt;br /&gt;				&amp;lt;func/&amp;gt;&lt;br /&gt;				&amp;lt;kurz/&amp;gt;&lt;br /&gt;			&amp;lt;/Fkt&amp;gt;&lt;br /&gt;		&amp;lt;/Funktion&amp;gt;&lt;br /&gt;		&amp;lt;Signature&amp;gt;&lt;br /&gt;			&amp;lt;ZB ZartNr="" ExtraNr="" valid=""&amp;gt;&lt;br /&gt;				&amp;lt;sign/&amp;gt;&lt;br /&gt;				&amp;lt;signKurz/&amp;gt;&lt;br /&gt;				&amp;lt;extra/&amp;gt;&lt;br /&gt;				&amp;lt;extraKurz/&amp;gt;&lt;br /&gt;			&amp;lt;/ZB&amp;gt;&lt;br /&gt;		&amp;lt;/Signature&amp;gt;&lt;br /&gt;		&amp;lt;ScannUnterschrift/&amp;gt;&lt;br /&gt;	&amp;lt;/Person&amp;gt;&lt;br /&gt;&amp;lt;/PersBisher&amp;gt;&lt;br /&gt;...&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;and PersNeuMut:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;AVel&amp;gt;&lt;br /&gt;&amp;lt;PersNeuMut&amp;gt;&lt;br /&gt;	&amp;lt;PersListe/&amp;gt;&lt;br /&gt;	&amp;lt;Person Aenderung="" Ein="6" loe="" mut="" seq="" toCheck="" valid=""&amp;gt;&lt;br /&gt;		&amp;lt;RefCancel Ein="" seq=""/&amp;gt;&lt;br /&gt;		&amp;lt;Personalien valid=""&amp;gt;&lt;br /&gt;			&amp;lt;Name Prefix=""/&amp;gt;&lt;br /&gt;			&amp;lt;Vorname/&amp;gt;&lt;br /&gt;			&amp;lt;Heimat BFS="" Land=""/&amp;gt;&lt;br /&gt;			&amp;lt;WohnOrt PLZ="" Land=""/&amp;gt;&lt;br /&gt;			&amp;lt;PersDaten/&amp;gt;&lt;br /&gt;		&amp;lt;/Personalien&amp;gt;&lt;br /&gt;		&amp;lt;Funktion&amp;gt;&lt;br /&gt;			&amp;lt;Fkt FunkNr="" valid=""&amp;gt;&lt;br /&gt;				&amp;lt;func/&amp;gt;&lt;br /&gt;				&amp;lt;kurz/&amp;gt;&lt;br /&gt;			&amp;lt;/Fkt&amp;gt;&lt;br /&gt;		&amp;lt;/Funktion&amp;gt;&lt;br /&gt;		&amp;lt;Signature&amp;gt;&lt;br /&gt;			&amp;lt;ZB ZartNr="" ExtraNr="" valid=""&amp;gt;&lt;br /&gt;				&amp;lt;sign/&amp;gt;&lt;br /&gt;				&amp;lt;signKurz/&amp;gt;&lt;br /&gt;				&amp;lt;extra/&amp;gt;&lt;br /&gt;				&amp;lt;extraKurz/&amp;gt;&lt;br /&gt;			&amp;lt;/ZB&amp;gt;&lt;br /&gt;		&amp;lt;/Signature&amp;gt;&lt;br /&gt;		&amp;lt;ScannUnterschrift/&amp;gt;&lt;br /&gt;	&amp;lt;/Person&amp;gt;&lt;br /&gt;&amp;lt;/PersNeuMut&amp;gt;&lt;br /&gt;...&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The only difference is that there are not in the same AVel element!&lt;br /&gt;&lt;br /&gt;Is there a way to copy one in the other?&lt;br /&gt;&lt;br /&gt;Thanks a lot!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Re: Creating Repeating Section At Run Time</title><link>https://www.infopathdev.com:443/forums/thread/6774.aspx</link><pubDate>Mon, 05 Sep 2005 08:12:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6774</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6774.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6774</wfw:commentRss><description>If you see "loesch" is the person node and "oParentNode" is also person node, and your schema does not allow this.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: Creating Repeating Section At Run Time</title><link>https://www.infopathdev.com:443/forums/thread/6773.aspx</link><pubDate>Mon, 05 Sep 2005 08:05:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6773</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6773.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6773</wfw:commentRss><description>Ok I have understand what is getParentNode() &lt;br /&gt;it's a selectsinglenode of the reapeating section!&lt;br /&gt;&lt;br /&gt;But now I have an error in the last line:&lt;br /&gt;&lt;br /&gt;oParentNode.appendChild(domXMLNode.documentElement);&lt;br /&gt;&lt;br /&gt;that make me the following 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;System.Runtime.InteropServices.COMException&lt;br /&gt;Element 'Person' is unexpected according to content model of parent element 'Person'.&lt;br /&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode.appendChild(IXMLDOMNode newChild)&lt;br /&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust.DOMNodeWrapper.appendChild(IXMLDOMNode newChild)&lt;br /&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust.DOMNodeWrapper.appendChild(IXMLDOMNode newChild)&lt;br /&gt;at Req2.Req2.RemovePers_OnClick(DocActionEvent e) in c:\documents and settings\tc\bureau\st gallen\visual studio projects\req2\formcode.cs:line 128&lt;br /&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;my code is: &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;IXMLDOMNode loesch= thisXDocument.DOM.selectSingleNode("/CaseList/Case/AV/AVel/PersBisher/Person[Personalien/PersDaten = ../../../AVel/PersNeuMut/PersListe]");&lt;br /&gt;IXMLDOMDocument domXMLNode = (IXMLDOMDocument)thisXDocument.CreateDOM();&lt;br /&gt;domXMLNode.async = false;&lt;br /&gt;domXMLNode.loadXML(loesch.xml);&lt;br /&gt;IXMLDOMNode oParentNode = thisXDocument.DOM.selectSingleNode("/CaseList/Case/AV/AVel/PersNeuMut/Person");&lt;br /&gt;oParentNode.appendChild(domXMLNode.documentElement);&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;As you can see the Xmlnode is take in a node of the primary datasource and she is copy in another one so why that make this kind of error?&lt;br /&gt;&lt;br /&gt;Thanks for your reply!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Re: Creating Repeating Section At Run Time</title><link>https://www.infopathdev.com:443/forums/thread/6772.aspx</link><pubDate>Mon, 05 Sep 2005 07:01:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6772</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6772.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6772</wfw:commentRss><description>Hi Agni,&lt;br /&gt;&lt;br /&gt;Good post but I don't understand one things:&lt;br /&gt;&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;4. Get the node in which you want to insert this new node&lt;br /&gt;IXMLDOMNode oParentNode = getParentNode();&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;What is this method getParentNode() ?&lt;br /&gt;&lt;br /&gt;VS say that :  getParentNode() the name doesn't exist in the class or in the namespace of the form!&lt;br /&gt;&lt;br /&gt;So what I have to do for that work?&lt;br /&gt;&lt;br /&gt;In the first part of answer you speak about:&lt;br /&gt;&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;When you are getting DOM, you are using "DataObjects" as a method where as "DataObjects" is a property(variable) so your first statement should be &lt;br /&gt;"XDocument.DataObjects["Test Procedures"].DOM"&lt;br /&gt;Also please check whether you have created your dataconnection to the sharepointlist properly.&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;Is this important for the answer you are given under because I don't fully understand what you try to explain?&lt;br /&gt;&lt;br /&gt;Thanks for your help!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Re: Creating Repeating Section At Run Time</title><link>https://www.infopathdev.com:443/forums/thread/6771.aspx</link><pubDate>Sat, 30 Apr 2005 16:52:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6771</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6771.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6771</wfw:commentRss><description>Hi Idisis,&lt;br /&gt;When you are getting DOM, you are using "DataObjects" as a method where as "DataObjects" is a property(variable) so your first statement should be &lt;br /&gt;"XDocument.DataObjects["Test Procedures"].DOM"&lt;br /&gt;Also please check whether you have created your dataconnection to the sharepointlist properly.&lt;br /&gt;&lt;br /&gt;NOTE: From here on i will use c# Code because I am not familiar with "Script".&lt;br /&gt;&lt;br /&gt;For inserting repeating section&lt;br /&gt;Probably it will work the way you have done it but I dont do the way you do, I do it with the code.&lt;br /&gt;Steps I follow if i want to insert "Field" into a node are&lt;br /&gt;1. Take XML for the section as a string&lt;br /&gt;string xmlString = "&amp;lt;Field1/&amp;gt;"&lt;br /&gt;2. Create an IXMLDOMDocument out of it.&lt;br /&gt;IXMLDOMDocument domXMLNode = (IXMLDOMDocument)thisXDocument.CreateDOM();&lt;br /&gt;3. Load that xml into above dom&lt;br /&gt;domXMLNode.async = false;&lt;br /&gt;domXMLNode.loadXML(xmlString);&lt;br /&gt;4. Get the node in which you want to insert this new node&lt;br /&gt;IXMLDOMNode oParentNode = getParentNode();&lt;br /&gt;5. Append your new node to the parentnode.&lt;br /&gt;oParentNode.appendChild(domXMLNode.documentElement);&lt;br /&gt;&lt;br /&gt;You can loop "oParentNode.appendChild(domXMLNode.documentElement)" statement and insert multiple nodes(Repeated nodes).&lt;br /&gt;&lt;br /&gt;Hope this Helps!&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>Creating Repeating Section At Run Time</title><link>https://www.infopathdev.com:443/forums/thread/4641.aspx</link><pubDate>Fri, 29 Apr 2005 17:34:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4641</guid><dc:creator>Idisis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4641.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4641</wfw:commentRss><description>Hello All,&lt;br /&gt;&lt;br /&gt;  I am still very new to InfoPath so please bear with me :)&lt;br /&gt;&lt;br /&gt;  What i am trying to do is create a dynamic section to the form that is read from a sharepoint site.  What this dynamic section needs to do is display within a layout table a checkbox, textbox, an optional section, and inside that optional section another text box.  It looks something like this:&lt;br /&gt;&lt;br /&gt;|----------------------------------|&lt;br /&gt;| checkbox | Textbox #1            |&lt;br /&gt;|          |-----------------------|&lt;br /&gt;|          | Textbox #2           &amp;lt;---- Optional section&lt;br /&gt;|----------------------------------|&lt;br /&gt;&lt;br /&gt;The kicker here is I need this to be able to repeat based on values gathered from the share point site.  I have the repeating Section surrounding the above items.  So on my form i have the repeating Section, inside that section is the layout table above, insude that table is the checkbox in column 1, Textbox and optional section in column 2 and inside the optional section is another textbox.&lt;br /&gt;&lt;br /&gt;On my sharepoint site I have a list created called Test Procedures.  Within this list I have a field called Procedure, Component, and version.  What I want to do is get that list of test procedures from the sharepoint site and then create a new instance of the above for each procedure within the list and display the Procedure field in Textbox#1.  &lt;br /&gt;&lt;br /&gt;My second goal out of all this is to filter the Test Procedures list to only include Components and Versions that the user has selected from a dropdown list (for the case of examples just assume that Component = 'Test' and Version = '1.00').  &lt;br /&gt;&lt;br /&gt;For Example: The user has selected Test from the components dropdown and then selected version 1.00.  This will display the above section and it should now display all the Procedures associated to component Test and version 1.00.  This will cause the repeating section to produce an instance of the above for each procedure in my sharepoint list.&lt;br /&gt;&lt;br /&gt;To read from the secondary datasource I have tried the following code with no success:&lt;br /&gt;XDocument.DataObjects("Test Procedures").DOM&lt;br /&gt;&lt;br /&gt;To insert additional section into a repeating section at run time I have tried the following code with no success: &lt;br /&gt;XDocument.View.ExecuteAction("xCollection::insert", "comp_repeat"); //com_repeat is the name of my repeating section&lt;br /&gt;&lt;br /&gt;Thanks in advance,&lt;br /&gt;Ryan&lt;br /&gt;&lt;br /&gt;Note: I am using the SP1 version of InfoPath</description></item></channel></rss>