<?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: Email coding error</title><link>https://www.infopathdev.com:443/forums/thread/3177.aspx</link><pubDate>Thu, 07 Sep 2006 18:22:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3177</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3177.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3177</wfw:commentRss><description>I don't do VB much, but this line just doesn't look right:&lt;br /&gt;&lt;br /&gt;Var sSubject = "MIS request for new hire - ".concat.XDocument.DOM.selectSingleNode("//my:myfields/my:employee_name").concat." - Completed";&lt;br /&gt;&lt;br /&gt;Maybe it should be something like this:&lt;br /&gt;&lt;br /&gt;Var sSubject = "MIS request for new hire - " + XDocument.DOM.selectSingleNode("//my:myfields/my:employee_name")&lt;font color="red"&gt;.text&lt;/font id="red"&gt; + " - Completed";</description></item><item><title>Re: Email coding error</title><link>https://www.infopathdev.com:443/forums/thread/3176.aspx</link><pubDate>Thu, 07 Sep 2006 15:57:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3176</guid><dc:creator>cornik99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3176.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3176</wfw:commentRss><description>There's ';' at the end.  It's so frustrating so please anyone help.</description></item><item><title>Re: Email coding error</title><link>https://www.infopathdev.com:443/forums/thread/3175.aspx</link><pubDate>Thu, 07 Sep 2006 06:50:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3175</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3175.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3175</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I am really not a JScript guy but from the error message you posted I would suggest that you jump to your code line 59 and check if you are not missing a ";" behind one of your statements.&lt;br /&gt;Also take care with you xpaths i think they are case sensitive but am not sure, may be someone can confirm this ?&lt;br /&gt;&lt;br /&gt;Hope this helps</description></item><item><title>Re: Email coding error</title><link>https://www.infopathdev.com:443/forums/thread/3174.aspx</link><pubDate>Thu, 07 Sep 2006 01:03:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3174</guid><dc:creator>cornik99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3174.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3174</wfw:commentRss><description>I changed myfields to myFields and I still get the same error.</description></item><item><title>Email coding error</title><link>https://www.infopathdev.com:443/forums/thread/1550.aspx</link><pubDate>Thu, 07 Sep 2006 01:02:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1550</guid><dc:creator>cornik99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1550.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1550</wfw:commentRss><description>&lt;br /&gt;This is my first jscript coding and I cannot get past my first typed line code.  I'm doing a email submit and I get an error message below.  &lt;br /&gt;&lt;br /&gt;The following error occurred:&lt;br /&gt;&lt;br /&gt;Expected ';'&lt;br /&gt;File:script.js&lt;br /&gt;Line:59&lt;br /&gt;	Var sEmailTo = XDocument.DOM.selectSingleNode("//my:myfields/my:hiring_mgr_email");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here are the entire codes.&lt;br /&gt;&lt;br /&gt;function CTRL13_10::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;	Var sEmailTo=XDocument.DOM.selectSingleNode("//my:myfields/my:hiring_mgr_email");&lt;br /&gt;	Var sSubject = "MIS request for new hire - ".concat.XDocument.DOM.selectSingleNode("//my:myfields/my:employee_name").concat." - Completed";&lt;br /&gt;	Var sTelExt = XDocument.DOM.selectSingleNode("//my:myfields/my:telephone_ext");&lt;br /&gt;	Var sTelDirect = XDocument.DOM.selectSingleNode("//my:myfields/my:telephone_direct");&lt;br /&gt;	Var sFaxDirect = XDocument.DOM.selectSingleNode("//my:myfields/my:direct_fax");&lt;br /&gt;	Var sFaxDept = XDocument.DOM.selectSingleNode("//my:myfields/my:dept_fax_number");&lt;br /&gt;	Var sEmailAddress = XDocument.DOM.selectSingleNode("//my:myfields/my:email_address");&lt;br /&gt;	Var sCtrlLf = chr(13) &amp; chr(10);&lt;br /&gt;	Var sEmailText = "Here are the following MIS request items:" 	&lt;br /&gt;	Var sEmailTextFinal = sEmailText.concat.sCtrlLf.concat."Telephone:".concat.sCtrlLf.concat."     Ext - ".concat.sTelExt.sCtrlLf."Direct Line - ".concat.sTelDirect;&lt;br /&gt;&lt;br /&gt;	Var oEmail = XDocument.DataAdapters("eMail");&lt;br /&gt;	oEmail.To = sEmailTo;&lt;br /&gt;	oEmail.Subject = sSubject;&lt;br /&gt;	oEmail.Intro = sEmailTextFinal;&lt;br /&gt;	o.Email.Submit();&lt;br /&gt;&lt;br /&gt;-----------------------------------------------------------------&lt;br /&gt;Here's the output I want:&lt;br /&gt;&lt;br /&gt;[Subject] MIS request for new hire - Joe Doe - completed&lt;br /&gt;[Email Introduction] &amp;lt;space&amp;gt;&lt;br /&gt;Here are the following MIS request items:&lt;br /&gt;Telehone:&lt;br /&gt;     Ext - 5342&lt;br /&gt;     Direct - (000)555-5342&lt;br /&gt;&amp;lt;space&amp;gt;&lt;br /&gt;Fax:&lt;br /&gt;     Dept - (000) 555-1234&lt;br /&gt;     Direct - (000) 555-5678&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>