<?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: Get Current FileName</title><link>https://www.infopathdev.com:443/forums/thread/60681.aspx</link><pubDate>Mon, 25 Oct 2010 17:35:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60681</guid><dc:creator>tkerkman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60681.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60681</wfw:commentRss><description>&lt;p&gt;cheason, &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;That actually what I ended up doing. (Creating a field and storing the name in the list). &lt;br /&gt;Seems odd to have to have to store the name of the file within the file itself, but it works. &lt;/p&gt;</description></item><item><title>Re: Get Current FileName</title><link>https://www.infopathdev.com:443/forums/thread/60674.aspx</link><pubDate>Mon, 25 Oct 2010 14:40:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60674</guid><dc:creator>cheason</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60674.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60674</wfw:commentRss><description>&lt;p&gt;Or keep it simple by setting a &amp;#39;filename&amp;#39; variable on form open to something like this :-&lt;/p&gt;
&lt;p&gt;&amp;nbsp;concat(FirstName, &amp;quot;-&amp;quot;, today(), &amp;quot;-&amp;quot;, substring(now(), 12, 2), substring(now(), 15, 2))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Will result in something like :- Jason-2010-10-25-1430&lt;/p&gt;</description></item><item><title>Re: Get Current FileName</title><link>https://www.infopathdev.com:443/forums/thread/60612.aspx</link><pubDate>Fri, 22 Oct 2010 02:02:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60612</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60612.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60612</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, you can do that with some codes you can add an onLoad event and add this C# code:&lt;/p&gt;&lt;p&gt;string caption = this.Application.ActiveWindow.Caption;&lt;br /&gt;this.MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;XPATHNODE&amp;quot;).SetValue(caption); &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Get Current FileName</title><link>https://www.infopathdev.com:443/forums/thread/60605.aspx</link><pubDate>Thu, 21 Oct 2010 21:55:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60605</guid><dc:creator>tkerkman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60605.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60605</wfw:commentRss><description>&lt;p&gt;How do you get the current name of a file when opening a document to edit in info path. I want to get the name &amp;quot;FileName-1-2.xml&amp;quot; into a field on the form.&lt;/p&gt;
&lt;p&gt;When viewing the form through a web-browser I can seen the name of the file as the &amp;quot;Title&amp;quot; in on the HTML page. Furthermore, I can see the name of the file is stored in the &amp;quot;Name&amp;quot; field on the&amp;nbsp;document library columns.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;So how can I get that &amp;quot;Name&amp;quot; field into a field on the form when I open the form???&lt;/p&gt;
&lt;p&gt;This seems like it should be a simple task/function. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>