<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Updating userName() per user after the form has been submitted in Filler 2010</title><link>https://www.infopathdev.com:443/forums/thread/90667.aspx</link><pubDate>Thu, 13 Jun 2013 12:35:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90667</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90667.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=90667</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;nemo385:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Though I set to automatically refresh on calculation che ckbox, it holds the username of filler.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;This is a bit confusing. It sounds like you have a default value on the field... going back to my original advice:&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;ErnestoM:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Create one field and call it Creator. Add an onload rule that executes only when the Creator field is blank (i.e. it will only execute on first open). Set the field to username().&lt;/p&gt;&lt;p&gt;Create another field and call it CurrentUser. Add an onload rule that executes every time, and sets the value of CurrentUser to username().&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The Creator field will store your Requestor. This gets populated via an On Load rule.&lt;/p&gt;&lt;p&gt;The CurrentUser field gets populated, also, on load, and not via a default value.&lt;/p&gt;&lt;p&gt;I would add a third field called Approver and, when the Approver clicks the &amp;quot;Approve&amp;quot; button, a rule can set the value of that field to username().&lt;/p&gt;&lt;p&gt;Hope this helps!&lt;/p&gt;</description></item><item><title>Re: Updating userName() per user after the form has been submitted in Filler 2010</title><link>https://www.infopathdev.com:443/forums/thread/90633.aspx</link><pubDate>Wed, 12 Jun 2013 20:26:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90633</guid><dc:creator>nemo385</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90633.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=90633</wfw:commentRss><description>&lt;p&gt;Hi Ernesto,&lt;/p&gt;&lt;p&gt;You slution might help me but I couldn&amp;#39;t seem to implement it successfully. Here&amp;#39;s my scenario- I have got a web Infopath form with 3 different views. Requestor view, Approver view, Clearer view.&lt;/p&gt;&lt;p&gt;When the form loads, it launches Requestor view and i made user type in his username. After he submits the form, there&amp;#39;s a custom workflow that goes to the concerned approver. When an approver opens the form, there&amp;#39;s a field by Name ApproverUserID. On its value property, i used username().However when an approver opens the form, &amp;nbsp;it holds the userid of the person who filled in the request, whereas it should be the approver&amp;#39;s username. Though I set to automatically refresh on calculation che ckbox, it holds the username of filler.&amp;nbsp;&lt;/p&gt;&lt;p&gt;I want&amp;nbsp;ApproverUesrID field to hold the name of the person who opens it. Not the username who filled out the form. Because I have to properly audit who approved the request form. Any idea on how do I achive it. Its going to be useful to me because once the form is approved,&amp;nbsp;workflow routes it to Clearer. Clearer on opening the form should see Clearer&amp;#39;s username in the new field in clearer view by name Clearer UESRID. &lt;/p&gt;&lt;p&gt;Any idea? Thanks.&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Updating userName() per user after the form has been submitted in Filler 2010</title><link>https://www.infopathdev.com:443/forums/thread/88809.aspx</link><pubDate>Wed, 10 Apr 2013 02:40:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88809</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88809.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=88809</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Under the Data tab in the Ribbon in IP 2010, one option for rules is Form Load. Those are rules that run when the template opens.&lt;/p&gt;</description></item><item><title>Re: Updating userName() per user after the form has been submitted in Filler 2010</title><link>https://www.infopathdev.com:443/forums/thread/88806.aspx</link><pubDate>Tue, 09 Apr 2013 21:29:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88806</guid><dc:creator>namariegaudi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88806.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=88806</wfw:commentRss><description>I have a quick question (newbie on IP 2010)
What do you mean by &amp;quot;add an onload rule&amp;quot; can you give me a more detailed set of steps? thanks</description></item><item><title>Re: Updating userName() per user after the form has been submitted in Filler 2010</title><link>https://www.infopathdev.com:443/forums/thread/67049.aspx</link><pubDate>Thu, 02 Jun 2011 12:23:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67049</guid><dc:creator>bress</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67049.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=67049</wfw:commentRss><description>Thanks for the help! 

It was exactly what I needed!</description></item><item><title>Re: Updating userName() per user after the form has been submitted in Filler 2010</title><link>https://www.infopathdev.com:443/forums/thread/67028.aspx</link><pubDate>Wed, 01 Jun 2011 16:39:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67028</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67028.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=67028</wfw:commentRss><description>&lt;p&gt;Create one field and call it Creator. Add an onload rule that executes only when the Creator field is blank (i.e. it will only execute on first open). Set the field to username().&lt;/p&gt;&lt;p&gt;Create another field and call it CurrentUser. Add an onload rule that executes every time, and sets the value of CurrentUser to username().&lt;/p&gt;&lt;p&gt;Hope this helps. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Updating userName() per user after the form has been submitted in Filler 2010</title><link>https://www.infopathdev.com:443/forums/thread/67019.aspx</link><pubDate>Wed, 01 Jun 2011 13:29:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67019</guid><dc:creator>bress</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67019.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=67019</wfw:commentRss><description>I have a single form that I built to capture new inventory item details from several diffident users in different departments. It travels a workflow I built in SP Foundations. ----That part seems ok. I&amp;#39;m trying to get the form to update the User Name after it has been submitted. 
After the form has been initiated and submitted by the first user, his name becomes part of the form and does NOT update the User Name with the next person who opens it, so my form rules stop working because I&amp;#39;m trying to validate the user against the User Name to limit what fields can be filled by the current user in the wofkflow. 
The Default value of the field is userName() and the box is checked to &amp;quot;Refresh value when formula is recalculated&amp;quot;


How do I force the userName() to update each time the form is opened so my rules can validate against the current user and have the appropriate fields for that user become active? (is there any alternatives?)

I hope this makes scene!

Thanks in advance

Brian</description></item></channel></rss>