<?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: add to a button a rule to change filename</title><link>https://www.infopathdev.com:443/forums/thread/119490.aspx</link><pubDate>Fri, 20 Jul 2018 19:47:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119490</guid><dc:creator>Wheels</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119490.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=119490</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Johangir. I hope that I am understanding your challenges correctly. I would use the concat (concatenate) function to piece any and all information together. &lt;/p&gt;&lt;p&gt;concat(double click to insert field, double click to insert field, double click to insert field)&lt;/p&gt;&lt;p&gt;concat(&amp;quot;LOS Workflow&amp;quot;, &amp;quot;&amp;nbsp;&amp;quot;,&amp;nbsp;substring(DateModified,1,7))&lt;/p&gt;&lt;p&gt;Cheers. WHEELS&amp;nbsp;&lt;/p&gt;</description></item><item><title>add to a button a rule to change filename</title><link>https://www.infopathdev.com:443/forums/thread/116287.aspx</link><pubDate>Mon, 15 May 2017 09:49:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116287</guid><dc:creator>Johangir</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116287.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=116287</wfw:commentRss><description>Hi - I want to add a rule to a button labelled FINISH that when pressed changes the filename

I have created a new Submit data connection and I am struggling with the rule 

The name has a static text part + dynamic date part

Static text is &amp;quot;LOS Workflow&amp;quot;

Dynamic part is the first 7 characters of the Date Modified field

In SharePoint Designer I can do this easily:

- Set a variable to Current item.date modified
- use extract substring from start of string to copy the first 7 char date variable and output to date variable 
- Set a filename variable to LOS Workflow[date variable]

Problem is update current item in SPD cannot update the filename - so I am trying to do this from the form instead

But I don&amp;#39;t know InfoPath very well and I am under time pressure and I can&amp;#39;t work out how to combine a static text field with a date formula like the one above  - keep getting errors when I try to verify the formula

Any help much appreciated

Johangir</description></item></channel></rss>