<?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: Jscript error</title><link>https://www.infopathdev.com:443/forums/thread/15182.aspx</link><pubDate>Wed, 14 Mar 2007 20:54:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15182</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15182.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15182</wfw:commentRss><description>Great! Glad you were able to get it going. I'm glad to have been of help.</description></item><item><title>Re: Jscript error</title><link>https://www.infopathdev.com:443/forums/thread/15181.aspx</link><pubDate>Wed, 14 Mar 2007 17:03:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15181</guid><dc:creator>quikdoc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15181.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15181</wfw:commentRss><description>It was coming in at the variable.  But I figured it out.  I had some typos in my XDocument line.&lt;br /&gt;&lt;br /&gt;Thanks for the help.</description></item><item><title>Re: Jscript error</title><link>https://www.infopathdev.com:443/forums/thread/15180.aspx</link><pubDate>Tue, 13 Mar 2007 21:45:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15180</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15180.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15180</wfw:commentRss><description>Not that it should matter, but you statement doesn't place a closing single quote on the body text.&lt;br /&gt;&lt;br /&gt;Anyhow -- I know you said that you verified the XPath via an expression box, but try getting the field value first into a variable and then use the variable to build the TextBody property value:&lt;br /&gt;&lt;br /&gt;var dept = XDocument.DOM.selectSingleNode("/dfs:datafields/dfs:Termination/@Department").text;&lt;br /&gt;iMsg.TextBody = "Department : '" + dept + "'";&lt;br /&gt;&lt;br /&gt;Then see where the error comes in -- from getting the node value or setting the TextBody property still.</description></item><item><title>Re: Jscript error</title><link>https://www.infopathdev.com:443/forums/thread/15179.aspx</link><pubDate>Tue, 13 Mar 2007 19:49:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15179</guid><dc:creator>quikdoc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15179.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15179</wfw:commentRss><description>My form is fully trusted via a certificate.  Has been since I created it.&lt;br /&gt;&lt;br /&gt;Thanks</description></item><item><title>Re: Jscript error</title><link>https://www.infopathdev.com:443/forums/thread/15178.aspx</link><pubDate>Tue, 13 Mar 2007 19:23:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15178</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15178.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15178</wfw:commentRss><description>My guess is a security issue. Try going to full trust and either signing or registering your form to see if the problem goes away.</description></item><item><title>Re: Jscript error</title><link>https://www.infopathdev.com:443/forums/thread/15177.aspx</link><pubDate>Tue, 13 Mar 2007 19:16:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15177</guid><dc:creator>quikdoc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15177.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15177</wfw:commentRss><description>After I hit the send button for the Activex Object it gives me the message for the Activex object might be unsafe and so on. I click ok on that and the error references Line 142 in my code and that is the &lt;br /&gt;iMsg.TextBody line of my code.  If I put just plain text in that line it works just fine, not sure what the problem is when I try to access my fields.&lt;br /&gt;&lt;br /&gt;Thanks</description></item><item><title>Re: Jscript error</title><link>https://www.infopathdev.com:443/forums/thread/15176.aspx</link><pubDate>Tue, 13 Mar 2007 18:19:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15176</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15176.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15176</wfw:commentRss><description>Where exactly is the object required error coming from? If your form is not set to full-trust, then it might be coming from the creation of the ActiveX control.</description></item><item><title>Jscript error</title><link>https://www.infopathdev.com:443/forums/thread/13086.aspx</link><pubDate>Tue, 13 Mar 2007 17:50:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13086</guid><dc:creator>quikdoc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13086.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13086</wfw:commentRss><description>I am trying to use an Active X object to send certain  fields for my form to a particular email group and I can get the email to go, but am having trouble getting the info from the fields into the message body.  &lt;br /&gt;&lt;br /&gt;Here is the code for the email.&lt;br /&gt;//=======&lt;br /&gt;// The following function handler is created by Microsoft Office InfoPath.&lt;br /&gt;// Do not modify the name of the function, or the name and number of arguments.&lt;br /&gt;//=======&lt;br /&gt;function CTRL11_9::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;// Create a new message and fill all its fields&lt;br /&gt;var iMsg = new ActiveXObject("CDO.Message");&lt;br /&gt;iMsg.To = "netadmin@crmchospital.com";&lt;br /&gt;iMsg.From = "restoremail@crmchospital.com";&lt;br /&gt;iMsg.Subject = "Termination Form";&lt;br /&gt;iMsg.TextBody = "Department : \'" + XDocument.DOM.selectSingleNode("/dfs:datafields/dfs:Termination/@Department").text;&lt;br /&gt;&lt;br /&gt;// Set SMTP server&lt;br /&gt;&lt;br /&gt;iMsg.Configuration.Fields&lt;br /&gt;("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "crmcexchm1.crmc.com"&lt;br /&gt;// Use the SMTP over the netowrk for sending method&lt;br /&gt;&lt;br /&gt;iMsg.Configuration.Fields&lt;br /&gt;("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2;&lt;br /&gt;// Make persistent&lt;br /&gt;iMsg.Configuration.Fields.Update();&lt;br /&gt;&lt;br /&gt;// Send the message&lt;br /&gt;iMsg.Send();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;I have secondary namespaces in the form and verfied the xpath using expression boxes.  The object required error keeps showing up.&lt;br /&gt;All of the fields I am trying to send are in the main dom.&lt;br /&gt;&lt;br /&gt;Here is the code for the namespaces.&lt;br /&gt;// The following line is created by Microsoft Office InfoPath to define the prefixes&lt;br /&gt;// for all the known namespaces in the main XML data file.&lt;br /&gt;// Any modification to the form files made outside of InfoPath&lt;br /&gt;// will not be automatically updated.&lt;br /&gt;//&amp;lt;namespacesDefinition&amp;gt;&lt;br /&gt;XDocument.GetDOM("Employee Info").setProperty("SelectionNamespaces" , 'xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"')&lt;br /&gt;XDocument.GetDOM("Department List").setProperty("SelectionNamespaces" , 'xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"')&lt;br /&gt;XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:q="http://schemas.microsoft.com/office/infopath/2003/ado/queryFields" xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-02-20T16:59:23" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"');&lt;br /&gt;//&amp;lt;/namespacesDefinition&amp;gt;&lt;br /&gt;&lt;br /&gt;I have researched this over and over have tried several ideas off of this forum and others as well. Any help woul be greatly appreciated.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;</description></item></channel></rss>