<?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>Views</title><link>https://www.infopathdev.com:443/forums/42.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Update a field</title><link>https://www.infopathdev.com:443/forums/thread/53293.aspx</link><pubDate>Thu, 01 Apr 2010 11:11:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53293</guid><dc:creator>Lawson71303</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53293.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=53293</wfw:commentRss><description>&lt;p&gt;Thank you for the advice.&lt;/p&gt;
&lt;p&gt;This is actually a field within a data connection. The now () function will be used as part of the unique key. I have tried your suggestion many different ways. The only way I have been able to get this to work is by adding now () to the value f(x) box. This works, but only when the form is first created from the template. It does not update the now function. I need the now () function to be updated whenever the view is changed.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I think that I need to open up the code and use the &lt;strong&gt;DateTime.Now.ToString &lt;/strong&gt;with an onViewChange event...&lt;/p&gt;</description></item><item><title>Re: Update a field</title><link>https://www.infopathdev.com:443/forums/thread/53290.aspx</link><pubDate>Thu, 01 Apr 2010 06:02:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53290</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53290.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=53290</wfw:commentRss><description>&lt;p&gt;Hi Lawson and welcome,&lt;/p&gt;
&lt;p&gt;I assume you mean update an expression box with Now every time someone changes a field on the current view. You&amp;#39;ll need to add a rule to the root node in the main data source. In the InfoPath designer, go to Data Source and make sure Main is selected. Find the topmost group node underneath the root node. For forms created from scratch in InfoPath Designer, the myFields node is typically the root node. Double click on each child group nodes underneath it and go to Rules tab and add a rule with no condition that resets a field using the Now function. If you don&amp;#39;t have group nodes but instead data nodes, you may need to rework your schema or add the same rule to those individual field nodes.&amp;nbsp;The rule just sets the value of a field in the form that you use for the expression box that displays at the top of each view in the form. The value is Now(). &lt;/p&gt;
&lt;p&gt;Happy trails!&lt;/p&gt;</description></item><item><title>Update a field</title><link>https://www.infopathdev.com:443/forums/thread/53270.aspx</link><pubDate>Wed, 31 Mar 2010 13:05:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53270</guid><dc:creator>Lawson71303</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53270.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=53270</wfw:commentRss><description>&lt;p&gt;Hi everybody,&lt;/p&gt;
&lt;p&gt;I have an IP 2003 form, and&amp;nbsp;I would like to update the date and time with the &amp;quot;now&amp;quot; function in a textbox everytime a view is changed.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Does anybody know the best way to do this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;-Lawson&lt;/p&gt;</description></item></channel></rss>