Hi all, for getting the user ID in IP2003 I am using the following code:
var wshShell = new ActiveXObject("Wscript.Shell");
var wshEnv = wshShell.Environment("Process");
var username = wshEnv.Item("UserName");
var name = XDocument.DOM.selectSingleNode("/my:myFields/my:name");
name.text = username;
when I am designing the form, this method works perfectly with "preview". But after I save the form, or publish ot sharepoint it doesn't work. I have put the code inside On Load event, so that everytime the user opens he form, it records it user ID. I have read the forums here and I couldnt find any answer except this code or the Web Service you proposed. Can you give some answers or to direct me to a solution using Jscript ?
Thank you in advance
Svetoslav