<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24542.aspx</link><pubDate>Mon, 19 Nov 2007 11:39:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24542</guid><dc:creator>Sam </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24542.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24542</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a rule called close form. I would like to add close form at the&amp;nbsp;code itself because the code doesnt work if the close form rule is set. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24541.aspx</link><pubDate>Mon, 19 Nov 2007 11:17:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24541</guid><dc:creator>Sam </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24541.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24541</wfw:commentRss><description>Thanks.. it works</description></item><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24528.aspx</link><pubDate>Sun, 18 Nov 2007 21:55:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24528</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24528.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24528</wfw:commentRss><description>&lt;p&gt;If you navigate to Tools-&amp;gt;Form Options-&amp;gt;Advanced, you will see a section for Programming Language which states: &amp;quot;The programming language can only be set when no code exists in the form.&amp;quot; To remove the code, you will have to extract the form files from the XSN (File-&amp;gt;Extract Form Files). Close the Designer. Now, open the manifest.xsf in notepad. &lt;/p&gt;
&lt;p&gt;If you previously had your programming language set as jscript, you&amp;#39;ll need to remove the following 3 blocks:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsf:file name=&amp;quot;script.js&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsf:fileProperties&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsf:property name=&amp;quot;scriptType&amp;quot; type=&amp;quot;string&amp;quot; value=&amp;quot;userEvents&amp;quot;&amp;gt;&amp;lt;/xsf:property&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xsf:fileProperties&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xsf:file&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;xsf:applicationParameters application=&amp;quot;InfoPath Design Mode&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;xsf:solutionProperties scriptLanguage=&amp;quot;jscript&amp;quot; fullyEditableNamespace=&amp;quot;&lt;a href="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-11-18T21:45:53"&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-11-18T21:45:53&lt;/a&gt;&amp;quot; lastOpenView=&amp;quot;view1.xsl&amp;quot;&amp;gt;&amp;lt;/xsf:solutionProperties&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/xsf:applicationParameters&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;xsf:scripts language=&amp;quot;jscript&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;xsf:script src=&amp;quot;script.js&amp;quot;&amp;gt;&amp;lt;/xsf:script&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/xsf:scripts&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Save the manifest.xsf with the sections removed. Now open it up again in the Designer and the language dropdown under Tools-&amp;gt;Form Options-&amp;gt;Advanced will be enabled.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24525.aspx</link><pubDate>Sun, 18 Nov 2007 11:27:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24525</guid><dc:creator>Sam </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24525.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24525</wfw:commentRss><description>&lt;p&gt;Hi, This is what i would like to do but in 2003.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://office.microsoft.com/en-us/infopath/HA102034701033.aspx"&gt;http://office.microsoft.com/en-us/infopath/HA102034701033.aspx&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I dont have options for the buttons in 2003.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24524.aspx</link><pubDate>Sun, 18 Nov 2007 09:42:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24524</guid><dc:creator>Sam </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24524.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24524</wfw:commentRss><description>&lt;p&gt;Thanks alot for your help... &lt;/p&gt;
&lt;p&gt;All the below works exactly the way i wanted. My Infopath forms are live and published on Sharepoint. When I try to change the code from VBscript to JScript - it doesnt allow me to do so... The field is greyed out. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where can i get the same code in vb script..??&lt;/p&gt;</description></item><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24473.aspx</link><pubDate>Thu, 15 Nov 2007 13:57:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24473</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24473.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24473</wfw:commentRss><description>To your second questions it must of course be mail.Intro = &amp;quot;This is my body text&amp;quot; + comments; Sorry for that. Coming to you first question I guess why you are sending two eMails is because you forgot to delete one Action on your rules which says Submit Dataconnection which is actually your Mail Submit. Delete this Action/Rule from your button (not the Dataconnection itself) and you should send only one mail now. I also think that Rules are fired before your code in the OnClick event of your button (e.g. you fileupload to SharePoint or what ever). If not then just call everything from code as you upload is nothing else but another DataConnection just use the same functionality than for the mail event. Hope this helps.</description></item><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24472.aspx</link><pubDate>Thu, 15 Nov 2007 13:41:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24472</guid><dc:creator>Sam </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24472.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24472</wfw:commentRss><description>&lt;p&gt;Now i can see either the field from the form or text not both -&lt;/p&gt;
&lt;p&gt;mail.Intro = (&amp;quot;This is my body text&amp;quot;, comments); &lt;/p&gt;
&lt;p&gt;Its either This is my body text&amp;nbsp;&amp;nbsp;&amp;nbsp; OR&amp;nbsp; &amp;nbsp;comments&lt;/p&gt;</description></item><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24471.aspx</link><pubDate>Thu, 15 Nov 2007 13:30:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24471</guid><dc:creator>Sam </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24471.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24471</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi.. Just one more thing...&lt;/p&gt;
&lt;p&gt;On one button i have got 6-7 rules.. Since you asked me to use my email data connection - every time now when i press a button i have to send 2 emails.. one from the data connection and 2nd from the code..&lt;/p&gt;
&lt;p&gt;I want the email to go to the user only after it is submitted in the doc library and gone through couple of rules. How will i be able to number the code as which rule??&lt;/p&gt;</description></item><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24469.aspx</link><pubDate>Thu, 15 Nov 2007 13:09:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24469</guid><dc:creator>Sam </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24469.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24469</wfw:commentRss><description>&lt;p&gt;Thanks alot.... It works perfect...&lt;/p&gt;</description></item><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24466.aspx</link><pubDate>Thu, 15 Nov 2007 12:18:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24466</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24466.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24466</wfw:commentRss><description>When writing code you should always have the API open because there you can find everything you need (In Script Editor press F1 to open the Help). Please search there for concat to see how to use it correclt. In managed code I would use a StringBuilder object to build my text which i want to add to the intro but for you something like var comments = XDocument.DOM.selectSingleNode(XPath to your control(something like &amp;quot;my:myFields/my:commets&amp;quot;)).text; mail.Intro = (&amp;quot;This is my body text&amp;quot;, comments) should work.</description></item><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24464.aspx</link><pubDate>Thu, 15 Nov 2007 11:47:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24464</guid><dc:creator>Sam </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24464.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24464</wfw:commentRss><description>&lt;p&gt;I know the below code is wrong... can you please tell&amp;nbsp;me where is the problem&amp;nbsp;&lt;/p&gt;
&lt;p&gt;mail.Intro = concat(&amp;quot;This is my body text&amp;quot;, comments);&lt;/p&gt;</description></item><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24463.aspx</link><pubDate>Thu, 15 Nov 2007 11:23:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24463</guid><dc:creator>Sam </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24463.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24463</wfw:commentRss><description>&lt;p&gt;Hi, Thanks alot .. that code works... hurray!!&lt;/p&gt;
&lt;p&gt;But i couldnt concatenate fields in mail.intro.. I dont think i am using the right command.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a field called &amp;quot;comments&amp;quot;&amp;nbsp; and everytime a user presses the decline button - the text in the &amp;quot;comments&amp;quot; field should be mentioned in the introduction area of the mail. &lt;/p&gt;
&lt;p&gt;hetal&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24384.aspx</link><pubDate>Tue, 13 Nov 2007 16:04:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24384</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24384.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24384</wfw:commentRss><description>&lt;p&gt;Just to add you can concatenate some text and some fields into the mail.intro to get what you are looking for.&lt;/p&gt;</description></item><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24380.aspx</link><pubDate>Tue, 13 Nov 2007 12:46:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24380</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24380.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24380</wfw:commentRss><description>Here is what you need: Add a new Data Connection to your template (or use the one you have set up already). In the OnClick event of you button with which you want to send the mail you can use the below snippet: var mail = XDocument.DataAdapters(&amp;quot;Name Of Your DataConnection&amp;quot;); mail.To = homer@simpson.uk; mail.Intro = &amp;quot;This is my body text&amp;quot;; mail.Subject = &amp;quot;bla bla bla&amp;quot; mail.Submit(); Hope this helps. code is in jscript, managed code looks similar but is still different just do a search on the forum.</description></item><item><title>Re: Adding fields in the introduction section of email data connection</title><link>https://www.infopathdev.com:443/forums/thread/24377.aspx</link><pubDate>Tue, 13 Nov 2007 05:19:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24377</guid><dc:creator>Sam </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24377.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24377</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I have added fields in the subject line using concatenation. I need to add 2 more fields which has to be mentioned with the introduction text. &lt;/p&gt;
&lt;p&gt;Can you please tell me where i can find a code for the introduction section and how do i go about it. &lt;/p&gt;
&lt;p&gt;Hetal&lt;/p&gt;</description></item></channel></rss>