function XDocument::OnLoad(eventObj) { var objNwk = new ActiveXObject("WScript.Network"); //Logged-on user name: var userName = objNwk.UserName; //Populate Hidden field: XDocument.DOM.selectSingleNode(@Username).text = userName;
To store values, use your Primary DOM. To reach your secondary DOM, try to declare one node targeting: dfs:myFields\dfs:dataFields\ then another one reaching: @Username
Regards,
Franck Dauché
> My code looks like this but does nothing! > [quoted text clipped - 7 lines] > > Can anyone help?