<?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: Run a script against a field in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/44760.aspx</link><pubDate>Wed, 22 Jul 2009 01:21:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44760</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44760.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=44760</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yup, that was the problem.&amp;nbsp; Glad you figured it out!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Run a script against a field in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/44755.aspx</link><pubDate>Tue, 21 Jul 2009 21:29:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44755</guid><dc:creator>martinpalmer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44755.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=44755</wfw:commentRss><description>&lt;p&gt;By changing the line:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;set objXMLNodes = XDocument.DOM.selectNodes(&amp;quot;//my:RecipientInfoRepeat&amp;quot;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;#39;-- RecipientInfoRepeat &lt;/p&gt;
&lt;p&gt;to &lt;/p&gt;
&lt;p&gt;set objXMLNodes = XDocument.DOM.selectNodes(&amp;quot;//my:RecipientInfo&amp;quot;)&lt;/p&gt;
&lt;p&gt;The parse now crawls the nodes.&amp;nbsp; I didn&amp;#39;t see this until you made me study the repeating section a little more.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for the help!&lt;/p&gt;</description></item><item><title>Re: Run a script against a field in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/44740.aspx</link><pubDate>Tue, 21 Jul 2009 18:13:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44740</guid><dc:creator>martinpalmer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44740.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=44740</wfw:commentRss><description>&lt;p&gt;Attached is the screenshot of the Datasource.&lt;/p&gt;</description></item><item><title>Re: Run a script against a field in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/44718.aspx</link><pubDate>Tue, 21 Jul 2009 13:56:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44718</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44718.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=44718</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Might the field&amp;#39;s name be LoginI&lt;i&gt;&lt;b&gt;d&lt;/b&gt;&lt;/i&gt; with a lowercase D or Login&lt;i&gt;&lt;b&gt;id&lt;/b&gt;&lt;/i&gt; with all of &amp;quot;ID&amp;quot; in lowercase?&amp;nbsp; Please double-check the capitalization and if you can&amp;#39;t figure it out could you post a screenshot of your data source?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Run a script against a field in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/44716.aspx</link><pubDate>Tue, 21 Jul 2009 13:25:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44716</guid><dc:creator>martinpalmer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44716.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=44716</wfw:commentRss><description>&lt;p&gt;Line 302 is &lt;/p&gt;
&lt;p&gt;recipientid = oItem.selectSingleNode(&amp;quot;my:LogonID&amp;quot;).text &lt;/p&gt;</description></item><item><title>Re: Run a script against a field in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/44695.aspx</link><pubDate>Tue, 21 Jul 2009 01:08:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44695</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44695.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=44695</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Repeating Section vs. Repeating Table should make no difference here.&amp;nbsp; They&amp;#39;re just two ways of displaying the data.&amp;nbsp; Most likely this is a capitalization problem with one of your node names inside the &lt;b&gt;For Each &lt;/b&gt;area.&amp;nbsp; Which line is line 302?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Run a script against a field in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/44670.aspx</link><pubDate>Mon, 20 Jul 2009 18:16:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44670</guid><dc:creator>martinpalmer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44670.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=44670</wfw:commentRss><description>&lt;p&gt;All, &lt;/p&gt;
&lt;p&gt;Still a little new to programming in InfoPath.&amp;nbsp; I am trying to pull data from a repeating section.&amp;nbsp; I have done this successfully from a repeating table but when I try to do this from a repeating section, it fails saying:&lt;/p&gt;
&lt;p&gt;The following error occurred:&lt;/p&gt;
&lt;p&gt;Object required: &amp;#39;oItem.selectSingleNode(...)&amp;#39;&lt;br /&gt;File:script.vbs&lt;br /&gt;Line:302&lt;/p&gt;
&lt;p&gt;What do I need to change to get this to work for a repeating section instead of a repeating table?&amp;nbsp; My code says:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Dim firstname, lastname, unit &lt;br /&gt;&amp;nbsp;Dim objXMLNodes, oItem &lt;br /&gt;&amp;nbsp;Dim Outlook&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39; As New Outlook.Application &lt;br /&gt;&amp;nbsp;Dim Message&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39; As Outlook.MailItem&amp;nbsp;&lt;/p&gt;
&lt;p&gt;set objXMLNodes = XDocument.DOM.selectNodes(&amp;quot;//my:RecipientInfoRepeat&amp;quot;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;#39;-- RecipientInfoRepeat &lt;br /&gt;&lt;br /&gt;if objXMLNodes.length &amp;lt;= 0 then &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XDocument.UI.Alert(&amp;quot;Please Add at leaste One (1) recipient to form before submitting.&amp;quot;) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit sub &lt;br /&gt;end if &lt;br /&gt;&lt;br /&gt;If objXMLNodes.length &amp;gt; 0 Then &lt;br /&gt;&amp;nbsp; For Each oItem In objXMLNodes &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; recipientid = oItem.selectSingleNode(&amp;quot;my:LogonID&amp;quot;).text &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstname = oItem.selectSingleNode(&amp;quot;my:FirstName&amp;quot;).text &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lastname = oItem.selectSingleNode(&amp;quot;my:LastName&amp;quot;).text &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; employeetype = oItem.selectSingleNode(&amp;quot;my:NonEmployee&amp;quot;).text &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location = oItem.selectSingleNode(&amp;quot;my:Location&amp;quot;).text &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jobfunction = oItem.selectSingleNode(&amp;quot;my:JobFunction&amp;quot;).text &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; emailmessage = emailmessage + classaction + &amp;quot; Recipient --&amp;quot; + recipientid + &amp;quot;--&amp;quot; + lastname + &amp;quot;,&amp;quot; &amp;amp; _ + firstname + &amp;quot;--&amp;quot; + employeetype + &amp;quot;--&amp;quot; + location + &amp;quot;--&amp;quot; + jobfunction + cr&lt;br /&gt;next End If&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>