<?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: Timestamp field</title><link>https://www.infopathdev.com:443/forums/thread/50805.aspx</link><pubDate>Wed, 20 Jan 2010 20:54:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50805</guid><dc:creator>ricomarcelo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50805.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50805</wfw:commentRss><description>&lt;p&gt;After dwelling on this problem all day, I finally found the solution&amp;nbsp;on my own&amp;nbsp;and I never thought it would be as simple as disabling &amp;quot;update this value...&amp;quot; in the Default Value section of the field&amp;#39;s property. grrr..&lt;/p&gt;</description></item><item><title>Timestamp field</title><link>https://www.infopathdev.com:443/forums/thread/50796.aspx</link><pubDate>Wed, 20 Jan 2010 18:15:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50796</guid><dc:creator>ricomarcelo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50796.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50796</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I have a field on my form that serves as timestamp. I am trying to set&amp;nbsp;that field&amp;nbsp;to automatically be assigned the current date &amp;amp; time value (using now() function) everytime a new record is created. I tried using default property but the problem with this approach is this overrides the original value of previous records when I do query. I tried using conditional default values as illustrated &lt;a class="" title="conditional default values" href="http://blogs.msdn.com/infopath/archive/2006/11/27/conditional-default-values.aspx"&gt;here&lt;/a&gt;&amp;nbsp;but cannot come up with the right formula.&lt;/p&gt;
&lt;p&gt;here&amp;#39;s the formula I&amp;#39;m trying to build for the field&amp;#39;s default property:&lt;/p&gt;
&lt;p&gt;concat(substring(now(), 1, (.=&amp;quot;&amp;quot;) * string-length(now())), substring(&amp;lt;do nothing&amp;gt;, 1, (not(.=&amp;quot;&amp;quot;)) * &amp;lt;do nothing&amp;gt;)&lt;/p&gt;
&lt;p&gt;What I&amp;#39;m trying to do here is supply the date-time value for the timestamp field when the field is blank (new record) and do nothing otherwise. Or is there a better way of accomplishing this other than using &amp;quot;conditional default values&amp;quot; method?&lt;/p&gt;
&lt;p&gt;Any help is greatly appreciated. Thanks&lt;/p&gt;
&lt;p&gt;- Ric&lt;/p&gt;</description></item></channel></rss>