<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Versioning and Current Date</title><link>https://www.infopathdev.com:443/forums/thread/81218.aspx</link><pubDate>Wed, 01 Aug 2012 14:44:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81218</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81218.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81218</wfw:commentRss><description>Sorry to seem obtuse, but when you refer to (my:currentversion) and (my:formloadversion) I am not exactly sure what you mean.

I suspect that the &amp;#39;my:formloadversion&amp;#39; is the version that is retrieved with the substring formula you provided above, but I want to be positive.

I am still fairly new to InfoPath and while I am fairly good at setting up rules and such and figuring out the logic behind them, I am not quite up to snuff on all the terms for xpath and such.</description></item><item><title>Re: Versioning and Current Date</title><link>https://www.infopathdev.com:443/forums/thread/81216.aspx</link><pubDate>Wed, 01 Aug 2012 14:26:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81216</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81216.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81216</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Sure, here&amp;#39;s an attempt. Hope it helps.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Versioning and Current Date</title><link>https://www.infopathdev.com:443/forums/thread/81215.aspx</link><pubDate>Wed, 01 Aug 2012 14:14:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81215</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81215.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81215</wfw:commentRss><description>Can you give me an example of how to set that up?

Thanks</description></item><item><title>Re: Versioning and Current Date</title><link>https://www.infopathdev.com:443/forums/thread/81213.aspx</link><pubDate>Wed, 01 Aug 2012 13:59:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81213</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81213.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81213</wfw:commentRss><description>&lt;p&gt;That&amp;#39;s a good point.&lt;/p&gt;&lt;p&gt;What about storing the version in the main DOM (my:CurrentVersion) and ALSO read in the version from the processing instructions on Form Load (my:FormLoadVersion) and then, if they don&amp;#39;t match, run the rule to set the date?&lt;/p&gt;&lt;p&gt;Just an idea - not sure if it will work though! Good luck!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Versioning and Current Date</title><link>https://www.infopathdev.com:443/forums/thread/81211.aspx</link><pubDate>Wed, 01 Aug 2012 13:49:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81211</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81211.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81211</wfw:commentRss><description>I did this already.   I used the set field value to set the date field to &amp;#39;today()&amp;#39; when the version field changed.  Every day it sets the date to the current date even if the version didn&amp;#39;t change.  

This makes me think that when the form is opened it must read the version and &amp;#39;update&amp;#39; the version field.  Pretty sure I indicated in my initial post and the reply that I had already tried this.</description></item><item><title>Re: Versioning and Current Date</title><link>https://www.infopathdev.com:443/forums/thread/81210.aspx</link><pubDate>Wed, 01 Aug 2012 13:12:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81210</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81210.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81210</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m just guessing... You can set the value of a field to use the version number formula above, then have a rule that sets a date field.&lt;/p&gt;&lt;p&gt;I don&amp;#39;t know whether this is exactly what you want, but I&amp;#39;m attaching a sample form that you can look at in design mode.&lt;/p&gt;&lt;p&gt;Good luck! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Versioning and Current Date</title><link>https://www.infopathdev.com:443/forums/thread/81177.aspx</link><pubDate>Tue, 31 Jul 2012 17:23:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81177</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81177.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81177</wfw:commentRss><description>Sorry if I didn&amp;#39;t make myself clear.   I have that part down fine.    I want to be able to trigger a date field change when the version number changes.   I thought I would be able to do that by a simple &amp;#39;set field value&amp;#39; making the rule to set the date to &amp;#39;today()&amp;#39; when the version updated.

Unfortunately it changes the date everyday.  This tells me that the version field must be checked and updated every time you open the form.

If you can tell me how to set a date field to the current date (the same date that the version number updates) when the version changes that would be great.</description></item><item><title>Re: Versioning and Current Date</title><link>https://www.infopathdev.com:443/forums/thread/81176.aspx</link><pubDate>Tue, 31 Jul 2012 17:17:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81176</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81176.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81176</wfw:commentRss><description>&lt;p&gt;You can display the form&amp;#39;s version number from the processing instructions by adding an expression box (calculated value) by using this formula:&lt;/p&gt;&lt;p&gt;substring-before(substring-after(/processing-instruction()[local-name(.) = &amp;quot;mso-infoPathSolution&amp;quot;], &amp;#39;solutionVersion=&amp;quot;&amp;#39;), &amp;#39;&amp;quot;&amp;#39;) &lt;/p&gt;&lt;p&gt;Hope this helps! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Versioning and Current Date</title><link>https://www.infopathdev.com:443/forums/thread/81162.aspx</link><pubDate>Tue, 31 Jul 2012 14:01:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81162</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81162.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81162</wfw:commentRss><description>I want to be able to display the current version of the form on the form itself (have this piece in place) and have it update a date box when the version changes.   I have tried doing this a couple of ways but the date box always displays today&amp;#39;s date regardless if the version has changed or not.  In both scenarios Versioning is set to &amp;#39;Automatically Update&amp;#39;.  Not sure this setting would affect what I want to do.

The first way was to do a &amp;#39;set field&amp;#39; action from the version field - Condition: Run when field changes - set date in date field to &amp;#39;today()&amp;#39;.   

Second way Hidden date field set to &amp;#39;today()&amp;#39;.   Version field - condition: run when field changes - set date in version date field to = hidden date field.

The only conclusion I can draw from this is the version must be read and &amp;#39;updated&amp;#39; each time the form is opened.    I really need this to be in the form and not a promoted field in the SharePoint library. 

Any help will be greatly appreciated.</description></item></channel></rss>