<?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: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60412.aspx</link><pubDate>Fri, 15 Oct 2010 15:59:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60412</guid><dc:creator>PaulPHS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60412.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60412</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thats Awesome thanks for the advice Potemkine.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60411.aspx</link><pubDate>Fri, 15 Oct 2010 15:32:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60411</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60411.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60411</wfw:commentRss><description>&lt;p&gt;If you can&amp;#39;t use debugger for some reason, you can use an old debug method with XDocument.UI.Alert(&amp;quot;BREAK1&amp;quot;)&lt;/p&gt;
&lt;p&gt;you place your Message box on your code and you can figure out where you have your error.&lt;/p&gt;</description></item><item><title>Re: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60408.aspx</link><pubDate>Fri, 15 Oct 2010 15:18:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60408</guid><dc:creator>PaulPHS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60408.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60408</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I was trying to use debugger before but it keeps giving me an Admin right error which is odd since I am the Admin.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60399.aspx</link><pubDate>Fri, 15 Oct 2010 15:04:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60399</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60399.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60399</wfw:commentRss><description>&lt;p&gt;I glad I could help, to debug VBS form code you can use &amp;quot;debugger&amp;quot;, &lt;/p&gt;
&lt;p&gt;&lt;a href="http://office.microsoft.com/en-US/infopath-help/deboguer-le-script-HA010173118.aspx"&gt;http://office.microsoft.com/en-US/infopath-help/deboguer-le-script-HA010173118.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With that you can make break point and see where your bug is.&lt;/p&gt;</description></item><item><title>Re: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60398.aspx</link><pubDate>Fri, 15 Oct 2010 14:56:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60398</guid><dc:creator>PaulPHS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60398.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60398</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks Potemkine.&amp;nbsp; That worked.&amp;nbsp; Wish InfoPath give me a better error.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60397.aspx</link><pubDate>Fri, 15 Oct 2010 14:52:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60397</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60397.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60397</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ok, your Xpath is wrong the good one is :/my:myFields/my:PtInfo/my:ptfname&lt;/p&gt;
&lt;p&gt;To known a xpath on&amp;nbsp; your datasource window right click on your field and then click copy Xpath, after that you paste it to your code.&lt;/p&gt;</description></item><item><title>Re: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60396.aspx</link><pubDate>Fri, 15 Oct 2010 14:51:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60396</guid><dc:creator>PaulPHS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60396.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60396</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Here is my template.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60395.aspx</link><pubDate>Fri, 15 Oct 2010 14:35:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60395</guid><dc:creator>PaulPHS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60395.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60395</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I was trying to figure out the error I was getting but InfoPath isn&amp;#39;t giving me one.&amp;nbsp; For the XPath I did a copy and paste from a data connection.&amp;nbsp; I found that being the easiest way to get it right.&amp;nbsp; At least thats what I think anyway.&amp;nbsp; I have attached the error I am getting, I&amp;#39;ll attach the template in a sec.&lt;img alt="" /&gt;&lt;/p&gt;</description></item><item><title>Re: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60392.aspx</link><pubDate>Fri, 15 Oct 2010 14:12:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60392</guid><dc:creator>zacharybrown</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60392.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60392</wfw:commentRss><description>&lt;p&gt;PaulPHS, the logic I struggled with&amp;nbsp;the most&amp;nbsp;was my &amp;quot;XPath&amp;quot;.&amp;nbsp; You may double check yours and make sure it includes the correct [MainDataSource].&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60367.aspx</link><pubDate>Fri, 15 Oct 2010 06:17:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60367</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60367.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60367</wfw:commentRss><description>&lt;p&gt;Also, you can click on details and send us the error message. :)&lt;/p&gt;</description></item><item><title>Re: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60353.aspx</link><pubDate>Fri, 15 Oct 2010 01:31:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60353</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60353.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60353</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Ok, try to attach your form template, to do that, when you reply, click on option and select your template...&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60352.aspx</link><pubDate>Thu, 14 Oct 2010 23:31:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60352</guid><dc:creator>PaulPHS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60352.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60352</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I just switched those around and I still get an error when I submit.&lt;/p&gt;&lt;p&gt;&amp;nbsp;InfoPath cannot complete this action, because of an error in the form&amp;#39;s code. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;img alt="" /&gt;&lt;img alt="" /&gt;&lt;img alt="" /&gt; &lt;/p&gt;</description></item><item><title>Re: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60351.aspx</link><pubDate>Thu, 14 Oct 2010 23:20:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60351</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60351.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60351</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, I&amp;#39;m not completly sure about this line XDocument.SaveAS(txtPath &amp;amp; txtName &amp;amp; sFileCode) it should be XDocument.SaveAS(txtPath &amp;amp; sFileCode&amp;nbsp; &amp;amp; txtName)&lt;/p&gt;</description></item><item><title>Re: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60347.aspx</link><pubDate>Thu, 14 Oct 2010 20:25:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60347</guid><dc:creator>PaulPHS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60347.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60347</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am actually trying to do the same thing as Zach but I am still getting an error.&amp;nbsp; Here is what I have.&lt;/p&gt;&lt;p&gt;Sub orders_OnClick(eventObj)

&lt;/p&gt;&lt;p&gt;Dim txtPath
&lt;br /&gt;Dim txtName
&lt;br /&gt;Dim sFileCode

&lt;br /&gt;&lt;br /&gt;txtPath = &amp;quot;\\PHSORNT152\Laboratory\Lab\Client Services\Message Manager\1 Time Orders\&amp;quot;
&lt;/p&gt;&lt;p&gt;sFileCode = XDocument.DOM.selectSingleNode(&amp;quot;my:PtInfo/my:ptlname&amp;quot;).text
&lt;/p&gt;&lt;p&gt;txtName = &amp;quot;.xml&amp;quot;

&lt;/p&gt;&lt;p&gt;XDocument.SaveAS(txtPath &amp;amp; txtName &amp;amp; sFileCode)&lt;/p&gt;&lt;p&gt;
End Sub&lt;/p&gt;</description></item><item><title>Re: Using Fields in my Form as the Filename</title><link>https://www.infopathdev.com:443/forums/thread/60344.aspx</link><pubDate>Thu, 14 Oct 2010 19:09:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60344</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60344.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60344</wfw:commentRss><description>&lt;p&gt;You&amp;#39;re welcome, Have a great day too!&lt;/p&gt;</description></item></channel></rss>