<?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: INSERT mult fields in repeat sec using SP</title><link>https://www.infopathdev.com:443/forums/thread/2791.aspx</link><pubDate>Fri, 21 Jul 2006 13:15:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2791</guid><dc:creator>BonsaiGuy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2791.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2791</wfw:commentRss><description>obviously there are a lot of varations one could use on this as well.</description></item><item><title>Re: INSERT mult fields in repeat sec using SP</title><link>https://www.infopathdev.com:443/forums/thread/2790.aspx</link><pubDate>Fri, 21 Jul 2006 13:13:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2790</guid><dc:creator>BonsaiGuy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2790.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2790</wfw:commentRss><description>Hi Matt, Just wanted to let you know that this worked out great and I appreciate the help. Using VB.NET as the background scripting language only the syntax changed a little since there was no IXMLDOMNode or IXMLDOMNodeList available to select from. This is what I did (which is almost identical)&lt;br /&gt;&lt;br /&gt;DIM HappyFields As DOMNodeList&lt;br /&gt;DIM HappyField As DOMNode&lt;br /&gt;&lt;br /&gt;HappyFields = thisXDocument.DOM.selectNodes("//my:myFields/my:blahblah1/my:happyfield")&lt;br /&gt;HappyField = HappyFields.nextNode()&lt;br /&gt;&lt;br /&gt;For cnt As Integer = 0 To HappyFields.length - 1&lt;br /&gt;     thisXDocument.UI.Alert(HappyField.text)&lt;br /&gt;     HappyField = HappyFields.nextNode()&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;Thanks again, Bonsai</description></item><item><title>Re: INSERT mult fields in repeat sec using SP</title><link>https://www.infopathdev.com:443/forums/thread/2789.aspx</link><pubDate>Tue, 18 Jul 2006 19:30:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2789</guid><dc:creator>BonsaiGuy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2789.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2789</wfw:commentRss><description>I can't wait to give this a shot. &lt;br /&gt;&lt;br /&gt;Thank you for your help Matt!&lt;br /&gt;This has been a big stop point for me in my project.&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: INSERT mult fields in repeat sec using SP</title><link>https://www.infopathdev.com:443/forums/thread/2788.aspx</link><pubDate>Tue, 18 Jul 2006 16:01:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2788</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2788.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2788</wfw:commentRss><description>Yes, there is.  This is is how I do it:&lt;br /&gt;&lt;br /&gt;IXMLDOMNodeList nlHappyFields = thisXDocument.DOM.selectNodes( "//my:myFields/my:group1/my:group2/my:happyfield" );&lt;br /&gt;IXMLDOMNode nHappy;&lt;br /&gt;&lt;br /&gt;while( (nHappy = nlHappyFields.nextNode()) != null )&lt;br /&gt;{&lt;br /&gt;    thisXDocument.UI.Alert( "State of happiness: " +  nHappy.text );&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I hope this helps! For XPath tutorial, this one is great:&lt;a target="_blank" href=http://www.w3schools.com/xpath/default.asp&gt;http://www.w3schools.com/xpath/default.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You could also do something like this:&lt;br /&gt;&lt;br /&gt;thisXDocument.DOM.selectNodes( "//my:myFields/my:group1/my:group2/my:happyfield[&lt;font color="red"&gt;0&lt;/font id="red"&gt;]" );&lt;br /&gt;thisXDocument.DOM.selectNodes( "//my:myFields/my:group1/my:group2/my:happyfield[&lt;font color="red"&gt;1&lt;/font id="red"&gt;]" );&lt;br /&gt;thisXDocument.DOM.selectNodes( "//my:myFields/my:group1/my:group2/my:happyfield[&lt;font color="red"&gt;2&lt;/font id="red"&gt;]" );</description></item><item><title>INSERT mult fields in repeat sec using SP</title><link>https://www.infopathdev.com:443/forums/thread/1422.aspx</link><pubDate>Mon, 17 Jul 2006 13:51:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1422</guid><dc:creator>BonsaiGuy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1422.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1422</wfw:commentRss><description>Hi Everyone,&lt;br /&gt;&lt;br /&gt;I hope I can make my question as clear as possible, I think it is newbie ignorance but here it goes.&lt;br /&gt;&lt;br /&gt;- I have a repeating section with multiple fields on it.&lt;br /&gt;- for example let's say one of those fields is a text box called 'happyfield'&lt;br /&gt;- using Microsoft's .NET plug-in I have been sucessfully using insert stored procedures.&lt;br /&gt;- In the code behind to get a value of a field I want to insert into the DB I use something like 'FootnoteLabel = thisXDocument.DOM.selectSingleNode("//my:myFields/my:sec_QuestionnaireForm/my:sec_AddSelection/my:sec_FootnoteAdd/my:txt_FootnoteLabel").text'&lt;br /&gt;&lt;br /&gt;If the user creates 6 'happyfield's, how do I know what to specify for the field name. If I use my:happyfield.text that would not know about the other 5. If there some kind of FOR EACH parameter I can pass it so it will loop through and I can run the INSERT SP for each rown in the repeating section?&lt;br /&gt;&lt;br /&gt;Thank you in advance I really appreciate it!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>