<?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: current user?</title><link>https://www.infopathdev.com:443/forums/thread/6653.aspx</link><pubDate>Tue, 19 Apr 2005 07:44:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6653</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6653.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6653</wfw:commentRss><description>Hello stuarts,&lt;br /&gt;  As Agni mentioned above this is a C# method and therefore will work in C# only.&lt;br /&gt;&lt;br /&gt;About full trust and System.Environment.UserName -&amp;gt; Domain level trust is enough for this. It does not need full trust.&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: current user?</title><link>https://www.infopathdev.com:443/forums/thread/6652.aspx</link><pubDate>Tue, 19 Apr 2005 00:35:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6652</guid><dc:creator>stuarts</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6652.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6652</wfw:commentRss><description>Sorry, I noticed a typo the last line of my current code should read:&lt;br /&gt;&lt;br /&gt;nodeAlias.text = System.Environment.UserName;</description></item><item><title>Re: current user?</title><link>https://www.infopathdev.com:443/forums/thread/6651.aspx</link><pubDate>Mon, 18 Apr 2005 20:27:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6651</guid><dc:creator>stuarts</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6651.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6651</wfw:commentRss><description>OK so here is the code that I have in my event:&lt;br /&gt;&lt;br /&gt;function XDocument::OnLoad(oEvent)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;	// Avoid DOM updates when the document has been digitally signed.&lt;br /&gt;	if (XDocument.IsSigned)&lt;br /&gt;		return;&lt;br /&gt;&lt;br /&gt;	var now = new Date();&lt;br /&gt;	initializeNodeValue("/ar:absenceRequest/ar:date", getDateString(now));&lt;br /&gt;	initializeNodeValue("/ar:absenceRequest/ar:time", getTimeString(now));&lt;br /&gt;	&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;	IXMLDOMNode nodeAlias = thisXDocument.DOM.selectSingleNode("ar:contact/my:Alias");&lt;br /&gt;	nodeEmployee.text = System.Environment.UserName;&lt;br /&gt;&lt;br /&gt;The error that I get is as follows:&lt;br /&gt;&lt;br /&gt;InfoPath cannot open the selected form because of an error in the form's code.&lt;br /&gt;The following error occurred:&lt;br /&gt;&lt;br /&gt;Expected ';'&lt;br /&gt;File:script.js&lt;br /&gt;Line:34&lt;br /&gt;	IXMLDOMNode nodeAlias = thisXDocument.DOM.selectSingleNode("ar:contact/my:Alias")&lt;br /&gt;&lt;br /&gt;Could you shed any light on what is going on.  I know VB pretty well but java is new to me.</description></item><item><title>Re: current user?</title><link>https://www.infopathdev.com:443/forums/thread/6650.aspx</link><pubDate>Sun, 17 Apr 2005 06:47:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6650</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6650.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6650</wfw:commentRss><description>If it is in InfoPath you need select the xml node and set the value to that node. And bind that xml node to a textbox in the UI.&lt;br /&gt;Code would look like &lt;br /&gt;&lt;br /&gt;thisXDocument.DOM.selectSingleNode(...&amp;lt;You need to write the XML XPAth here&amp;gt;...).text = System.Environment.UserName;&lt;br /&gt;&lt;br /&gt;Note: Above code in "c#".&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfopathDev India</description></item><item><title>Re: current user?</title><link>https://www.infopathdev.com:443/forums/thread/6649.aspx</link><pubDate>Sat, 16 Apr 2005 22:59:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6649</guid><dc:creator>stuarts</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6649.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6649</wfw:commentRss><description>So what would the code look like to use System.Environment.UserName in the on load event to get the username into a text box?  I realize this is probably a stuped question but I'm new to Infopath and java.</description></item><item><title>Re: current user?</title><link>https://www.infopathdev.com:443/forums/thread/6648.aspx</link><pubDate>Wed, 13 Apr 2005 20:08:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6648</guid><dc:creator>BrownR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6648.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6648</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Shanthi&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;It looks like "WScript.network" requires Full trust and therefore signing of the template if you want to publish the solution. The "UserName" method does not need the solution to be full trust. That is the reason we use this more.&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPathDev India&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;Is this true? My form still required me to have the form trusted.</description></item><item><title>Re: current user?</title><link>https://www.infopathdev.com:443/forums/thread/6647.aspx</link><pubDate>Tue, 12 Apr 2005 14:38:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6647</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6647.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6647</wfw:commentRss><description>It looks like "WScript.network" requires Full trust and therefore signing of the template if you want to publish the solution. The "UserName" method does not need the solution to be full trust. That is the reason we use this more.&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: current user?</title><link>https://www.infopathdev.com:443/forums/thread/6646.aspx</link><pubDate>Tue, 12 Apr 2005 08:31:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6646</guid><dc:creator>potpourri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6646.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6646</wfw:commentRss><description>Currently i'm using another method that is more convinient for me..&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathfaq.com/development.asp?postid=710&gt;http://www.infopathfaq.com/development.asp?postid=710&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So, it's working with ActiveXObject("WScript.network") object instead.</description></item><item><title>Re: current user?</title><link>https://www.infopathdev.com:443/forums/thread/6645.aspx</link><pubDate>Mon, 11 Apr 2005 18:54:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6645</guid><dc:creator>BrownR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6645.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6645</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Shanthi&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hello,&lt;br /&gt;  For the 1st way mentioned above, you need to have Sharepoint Portal servive installed (this is different from Windows Sharepoint services -&amp;gt; previously called as Sharepoint Team Services [STS]). When they say "the name of your SharePoint Portal Server 2003 instance" they mean where you have Sharepoint Portal server installed. Or in other words if you want to go to the home page of your Sharepoint server, the link that is used like&lt;a target="_blank" href=http://system2/sites&gt;http://system2/sites&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The second option is one that we have used a lot of times - System.Environment.UserName and it has worked very well for us.&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPathDev India&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;I still use the "Username" method. Works like a charm.</description></item><item><title>Re: current user?</title><link>https://www.infopathdev.com:443/forums/thread/6644.aspx</link><pubDate>Thu, 07 Apr 2005 14:53:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6644</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6644.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6644</wfw:commentRss><description>Hello,&lt;br /&gt;  For the 1st way mentioned above, you need to have Sharepoint Portal servive installed (this is different from Windows Sharepoint services -&amp;gt; previously called as Sharepoint Team Services [STS]). When they say "the name of your SharePoint Portal Server 2003 instance" they mean where you have Sharepoint Portal server installed. Or in other words if you want to go to the home page of your Sharepoint server, the link that is used like&lt;a target="_blank" href=http://system2/sites&gt;http://system2/sites&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The second option is one that we have used a lot of times - System.Environment.UserName and it has worked very well for us.&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPathDev India</description></item><item><title>current user?</title><link>https://www.infopathdev.com:443/forums/thread/4610.aspx</link><pubDate>Thu, 07 Apr 2005 06:22:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4610</guid><dc:creator>potpourri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4610.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4610</wfw:commentRss><description>i'm looking for a mechanism to extract the current user's detail into my form.&lt;br /&gt;&lt;br /&gt;i've googled &amp; found 2 ways:&lt;br /&gt;1) through a web service:&lt;br /&lt;a target="_blank" href=http://weblogs.asp.net/wkriebel/archive/2005/01/24/359669.aspx&gt;http://weblogs.asp.net/wkriebel/archive/2005/01/24/359669.aspx&lt;/a&gt;&lt;br /&gt;--&amp;gt; I don't understand what it means by "[MyPortal]" though..&lt;br /&gt;&lt;br /&gt;2) using help from Visual Studio .NET 2003&lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_tr/html/odc_INF_Lab_15.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_tr/html/odc_INF_Lab_15.asp&lt;/a&gt;&lt;br /&gt;--&amp;gt; don't have the software installed just yet..&lt;br /&gt;&lt;br /&gt;is there any other way to achieve this besides the above methods?&lt;br /&gt;also, can anyone explain to me what it means by the sentence "the name of your SharePoint Portal Server 2003 instance" ?&lt;br /&gt;</description></item></channel></rss>