<?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: Infopath 2003 equivalent of infopath 2007 Username() function</title><link>https://www.infopathdev.com:443/forums/thread/44035.aspx</link><pubDate>Thu, 09 Jul 2009 13:18:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44035</guid><dc:creator>Kugelblitz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44035.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=44035</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;swathip:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Hi, 
&lt;p&gt;There is no equivalent function in InfoPath 2003 for username() in Infopath 2007. To get the user name we have to write the code. Use the following code to get the current user name.&lt;/p&gt;
&lt;p&gt;String userName = System.Environment.UserName;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry, but this method does&amp;#39;nt work with my form. I think, I&amp;#39;ve to tell my form to use &amp;#39;System&amp;#39;. But I don&amp;#39;t know how to do so. I&amp;#39;ve got only Microsoft Skript Editor 10.0 to edit the code in my form. All the hints i found till now seemed to refer to Visual Studio. Can you please tell me how to get these method work.&lt;/p&gt;
&lt;p&gt;Kugelblitz&lt;/p&gt;</description></item><item><title>Re: Infopath 2003 equivalent of infopath 2007 Username() function</title><link>https://www.infopathdev.com:443/forums/thread/36326.aspx</link><pubDate>Mon, 29 Dec 2008 18:02:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36326</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36326.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36326</wfw:commentRss><description>&lt;p&gt;Can you explain how this works with IP2003?&amp;nbsp; The User Profile Service requires the username as the query parameter, so how can you use it to get the username if you don&amp;#39;t already know the username?&amp;nbsp; The way it works in IP2007 is that you configure the form to automatically send the current user&amp;#39;s username to the web service upon opening the form, and then it retrieves that user&amp;#39;s profile information.&amp;nbsp; Or, you can set it to run the query during use of the form dynamically or manually, but you still have to send a username to run the query on the web service.&amp;nbsp; How would you do this if you don&amp;#39;t already know the username?&amp;nbsp; You can&amp;#39;t have the chicken before the egg...&lt;/p&gt;</description></item><item><title>Re: Infopath 2003 equivalent of infopath 2007 Username() function</title><link>https://www.infopathdev.com:443/forums/thread/36321.aspx</link><pubDate>Mon, 29 Dec 2008 13:07:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36321</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36321.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36321</wfw:commentRss><description>&lt;p&gt;If you do not have SharePoint and this feature is crucial, you might consider trying Qdabra&amp;#39;s Active Directory Web Service.&amp;nbsp; It will allow you to retrieve the current user&amp;#39;s name and a whole bunch of other information: http://www.qdabra.com/en/products/ADWebService.aspx
&lt;/p&gt;</description></item><item><title>Re: Infopath 2003 equivalent of infopath 2007 Username() function</title><link>https://www.infopathdev.com:443/forums/thread/36318.aspx</link><pubDate>Mon, 29 Dec 2008 12:49:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36318</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36318.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36318</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use the UserProfileService from Sharepoint to get the current user name. It will work with IP 2003, see&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://blogs.microsoft.co.il/blogs/itaysk/archive/2007/04/05/InfoPath-_2D00_-Get-the-current-user-without-writing-code.aspx"&gt;&lt;font color="#666666"&gt;http://blogs.microsoft.co.il/blogs/itaysk/archive/2007/04/05/InfoPath-_2D00_-Get-the-current-user-without-writing-code.aspx&lt;/font&gt;&lt;/a&gt; for the details&lt;/p&gt;</description></item><item><title>Re: Infopath 2003 equivalent of infopath 2007 Username() function</title><link>https://www.infopathdev.com:443/forums/thread/36212.aspx</link><pubDate>Tue, 23 Dec 2008 17:39:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36212</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36212.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36212</wfw:commentRss><description>&lt;p&gt;Why do you need to do full trust + administratively approved?&amp;nbsp; You can do the regular browser form with the userName() function and use the GetUserProfileByName web service all day long without having to do full trust or anything complicated unless you have some other unknown restriction.&lt;/p&gt;</description></item><item><title>Re: Infopath 2003 equivalent of infopath 2007 Username() function</title><link>https://www.infopathdev.com:443/forums/thread/36199.aspx</link><pubDate>Tue, 23 Dec 2008 14:20:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36199</guid><dc:creator>vilas6_it</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36199.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36199</wfw:commentRss><description>&lt;p&gt;Hi Swathip,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ya I agree thats one way to do it through cutom code. But as I said I cannot go for the option of writing script/c# managed code as that feature is not enabled &amp;amp; my client doesnt want to go that way. What about making&amp;nbsp;my 2007&amp;nbsp;form browser enabled with full trust &amp;amp; deploy it that way using central admin &amp;quot;upload form template page&amp;quot; I guess thats the only way left, if I dont want to go with writing custom code. Any how thanks for ur reply.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Infopath 2003 equivalent of infopath 2007 Username() function</title><link>https://www.infopathdev.com:443/forums/thread/36169.aspx</link><pubDate>Tue, 23 Dec 2008 03:39:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36169</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36169.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36169</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no equivalent function in InfoPath 2003 for username() in Infopath 2007. To get the user name we have to write the code. Use the following code to get the current user name.&lt;/p&gt;
&lt;p&gt;String userName = System.Environment.UserName;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Infopath 2003 equivalent of infopath 2007 Username() function</title><link>https://www.infopathdev.com:443/forums/thread/36160.aspx</link><pubDate>Mon, 22 Dec 2008 19:54:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36160</guid><dc:creator>vilas6_it</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36160.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36160</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;With the help of userName() function in Infopath 2007 we can get the name of the current user filling/editing the form. But the situation I am in is that, I&amp;nbsp;have developed a form in Infopath 2007 in a way that its also compatible with Infopath 2003. But I have used the username() function in infopath 2007 &amp;amp; it is definetly not compatible with infopath 2003, this is the only part were theres a problem of compatbility. SO if I want to make that part work (i.e. getting the name of the current user filling the form)&amp;nbsp;in 2003 as well what are all the options I have?&lt;br /&gt;&lt;br /&gt;Bcz I do not want to right any script or managed code for this purpose.&lt;br /&gt;&lt;br /&gt;Please let me know what other options&amp;nbsp;I can consider to make it compatible &amp;amp; any pros &amp;amp; cons of each.&lt;br /&gt;I need to get around this bcz some of the user has office infopath 2003 &amp;amp; others have 2007 with them.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;/p&gt;</description></item></channel></rss>