<?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: Send Email Code</title><link>https://www.infopathdev.com:443/forums/thread/20915.aspx</link><pubDate>Tue, 19 Jun 2007 07:08:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20915</guid><dc:creator>chang</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20915.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=20915</wfw:commentRss><description>The only thing I can think of is the XPath expression, but you already said that you were 100% sure that it was/is correct.</description></item><item><title>Re: Send Email Code</title><link>https://www.infopathdev.com:443/forums/thread/20685.aspx</link><pubDate>Wed, 13 Jun 2007 13:48:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20685</guid><dc:creator>brorick</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20685.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=20685</wfw:commentRss><description>Making the correction to the spelling still gives me the same error.&amp;nbsp; Any thoughts?</description></item><item><title>Re: Send Email Code</title><link>https://www.infopathdev.com:443/forums/thread/20684.aspx</link><pubDate>Wed, 13 Jun 2007 13:44:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20684</guid><dc:creator>brorick</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20684.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=20684</wfw:commentRss><description>Thank you I will give it a try.</description></item><item><title>Re: Send Email Code</title><link>https://www.infopathdev.com:443/forums/thread/20675.aspx</link><pubDate>Wed, 13 Jun 2007 07:57:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20675</guid><dc:creator>chang</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20675.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=20675</wfw:commentRss><description>The path might be correct, but the method name is not. Use XDocument.DOM.&lt;strong&gt;select&lt;/strong&gt;SingleNode&amp;nbsp;instead of XDocument.DOM.&lt;strong&gt;selecting&lt;/strong&gt;SingleNode.</description></item><item><title>Send Email Code</title><link>https://www.infopathdev.com:443/forums/thread/20640.aspx</link><pubDate>Tue, 12 Jun 2007 16:31:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20640</guid><dc:creator>brorick</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20640.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=20640</wfw:commentRss><description>&lt;p&gt;I have got the code referenced at the bottom of my post to work successfully provided I block out the reference to the xml title(//oEnvelope.Subject = getNodeValue(xmlTitle); ).&amp;nbsp; My issue resides specifically with this code:&amp;nbsp; &lt;/p&gt;&lt;p&gt;var xmlTitle = XDocument.DOM.selectingSingleNode (&amp;quot;../dfs:dataFields/d:Tbl_Main/@Issue&amp;quot;);&lt;/p&gt;&lt;p&gt;Can anyone tell me why I keep getting the error message. &amp;quot;A run-time error has occurred.&amp;nbsp; Object doesn&amp;#39;t support this property or method.&amp;quot;&amp;nbsp; I know for a fact that the path is correct.&amp;nbsp; I have seen this code used else where, but for whatever reasons I just cant get it to refer to this or any other fields within my table.&amp;nbsp; I have experimented with hard coding the value and I know it then works.&amp;nbsp; But of course I need it to refer to a specific field to reduce redundancy.&amp;nbsp; I commented out the reference to xmlTitle to get it to work.&amp;nbsp; Your thoughts are welcomed.&amp;nbsp; Thank you.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;function SendEmailBtn::OnClick(eventObj) &lt;/p&gt;&lt;p&gt;{&amp;nbsp;createEmail(); } &lt;/p&gt;&lt;p&gt;function createEmail() &lt;/p&gt;&lt;p&gt;{ var rgRecipients = new Array(); &lt;/p&gt;&lt;p&gt;var oEnvelope = XDocument.View.Window.MailEnvelope; &lt;/p&gt;&lt;p&gt;//var xmlTitle = XDocument.DOM.selectingSingleNode (&amp;quot;../dfs:dataFields/d:Tbl_Main/@Issue&amp;quot;);&lt;/p&gt;&lt;p&gt;oEnvelope.To = rgRecipients.join(&amp;quot;; &amp;quot;); &lt;/p&gt;&lt;p&gt;oEnvelope.Subject = getNodeValue(xmlTitle); &lt;/p&gt;&lt;p&gt;//oEnvelope.Subject = getNodeValue(xmlTitle); &lt;/p&gt;&lt;p&gt;oEnvelope.Visible = true; }&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>