<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to get infopath functions[like userName(), SharePointServerRootUrl()] value in form_loading in code behind in Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/75154.aspx</link><pubDate>Fri, 10 Feb 2012 13:45:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75154</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75154.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=75154</wfw:commentRss><description>&lt;p&gt;why can&amp;#39;t you use the userName() on form load to set field value of user name? You may need to to use a people picker to get it to populate. Are you using this form on multiple servers? I have a form that eventually will be rolled out to multiple servers and locations. I have hyperlinks and images that are local to the client&amp;#39;s location. I created a field called URL and set the value to the SP URL, then linked this with concat in all hyperlinks and images. then only one field to update.&lt;/p&gt;
&lt;p&gt;If this is not possible you made need to query the GetUserProfileByName.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://pradeep1701.wordpress.com/2010/12/25/infopath-2007-get-user-profile-details-using-sharepoint-user-profile-web-service/"&gt;http://pradeep1701.wordpress.com/2010/12/25/infopath-2007-get-user-profile-details-using-sharepoint-user-profile-web-service/&lt;/a&gt;&lt;/p&gt;</description></item><item><title>How to get infopath functions[like userName(), SharePointServerRootUrl()] value in form_loading in code behind in Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/75153.aspx</link><pubDate>Fri, 10 Feb 2012 12:05:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75153</guid><dc:creator>Yogendra</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75153.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=75153</wfw:commentRss><description>&lt;p&gt;I have a requirement of getting the infopath functions[like userName(), SharePointServerRootUrl()] value in FormEvents_Loading() in code behind in Infopath 2010. What are the ways we can achieve this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I tried writing rules on button click, assign the values to textbox and get the values of the textbox in managed code. This works fine but i need this values in FormEvents_Loading event. so i am calling Click event of button programatically from FormEvents_Loading() but its not fetching the values of this functions, gives blank. &lt;/p&gt;</description></item></channel></rss>