<?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: Name of User - For Display - Form Creation</title><link>https://www.infopathdev.com:443/forums/thread/99090.aspx</link><pubDate>Fri, 12 Sep 2014 21:34:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99090</guid><dc:creator>draghuna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99090.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99090</wfw:commentRss><description>Appreciate the quick response and it solved the problem I was facing.</description></item><item><title>Re: Name of User - For Display - Form Creation</title><link>https://www.infopathdev.com:443/forums/thread/99078.aspx</link><pubDate>Fri, 12 Sep 2014 01:00:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99078</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99078.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99078</wfw:commentRss><description>&lt;p&gt;Sorry, should have read through that more closely - I didn&amp;#39;t intend to suggest a code solution. I thought in IP 2007 / ShP 2007 we could create a data connection to the UserProfile service and just use that for user info - not sure why that blog suggests using code to get the values. &lt;/p&gt;
&lt;p&gt;Looks like someone covers that in the comments on that post tho- &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Let&amp;#39;s take it one step further and make it a no-code solution! &amp;nbsp;How? &amp;nbsp;Throw out steps 3 and 4. &amp;nbsp;Instead:&lt;/p&gt;
&lt;p&gt;3) &amp;nbsp;Create a new data connection to retrieve information from the specified web service (http://&amp;lt;yourServerName&amp;gt;/_vti_bin/UserProfileService.asmx?WSDL), and select the &amp;quot;GetUserProfileByName&amp;quot; web method.&lt;/p&gt;
&lt;p&gt;4) &amp;nbsp;Use an XPath query on your secondary data source to populate the fields you want. &amp;nbsp;For instance, use a formula to set the default value for an &amp;quot;email address&amp;quot; field. &amp;nbsp;You&amp;#39;ll be selecting the &amp;quot;dataFields/.../Value&amp;quot; field. &amp;nbsp;The trick is to ensure you select the correct PropertyData node, as it is a repeating field - you&amp;#39;ll have to edit the XPath to do so. &amp;nbsp;Assuming your secondary data source is called &amp;quot;GetUserProfileByName&amp;quot;, the XPath query required to get the current user&amp;#39;s email address looks as follows:&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;GetUserProfileByName&amp;quot;)/dfs:myFields/dfs:dataFields/s0:GetUserProfileByNameResponse/s0:GetUserProfileByNameResult/s0:PropertyData[s0:Name = &amp;quot;WorkEmail&amp;quot;]/s0:Values/s0:ValueData/s0:Value&lt;/p&gt;
&lt;p&gt;Works beautifully, and without needing to bust out any code!&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Name of User - For Display - Form Creation</title><link>https://www.infopathdev.com:443/forums/thread/99077.aspx</link><pubDate>Thu, 11 Sep 2014 23:41:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99077</guid><dc:creator>draghuna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99077.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99077</wfw:commentRss><description>I am stuck with step 4. 

It looks like you reference material is related with C# programming language. I dont have C#/VB on my machine. I am using JS for programmatic coding. Dont see the option to add a web reference in Script Editor.

However, I was previously able to add the UserProfileService web service directly from the InfoPath form.</description></item><item><title>Re: Name of User - For Display - Form Creation</title><link>https://www.infopathdev.com:443/forums/thread/99075.aspx</link><pubDate>Thu, 11 Sep 2014 22:34:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99075</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99075.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99075</wfw:commentRss><description>&lt;p&gt;First, generally instead of using a default value for something like this, I use a form load rule - and rule would be - if the field is blank, set it to the value (so it only gets set in a new form). I think you can use the SharePoint User Profile service for what you need - more here: &lt;a href="http://blogs.msdn.com/b/infopath/archive/2007/03/07/get-the-user-profile-through-moss-web-services.aspx"&gt;http://blogs.msdn.com/b/infopath/archive/2007/03/07/get-the-user-profile-through-moss-web-services.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Name of User - For Display - Form Creation</title><link>https://www.infopathdev.com:443/forums/thread/99074.aspx</link><pubDate>Thu, 11 Sep 2014 22:21:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99074</guid><dc:creator>draghuna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99074.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99074</wfw:commentRss><description>Infopath Form 2007

- I have a text field (read only) where I want to display the person who created the form. I was able to capture the accountId using username() function but it does not show the actual name of the person. I want to show something like &amp;quot;John Smith&amp;quot;.

- I used a hidden variable to capture the username and unchecked &amp;quot;Update this value when the result of the formula is recalculated&amp;quot;. I wanted to make sure this value is the same throughout the life cycle of the form even if someone else is editing the form subsequently.

Thanks</description></item></channel></rss>