stupid user question

A

Adam Harding

What is my xpath for my field that is
myfields\datafields\d:tble_master_blue_sky\@Username

I don't know how to put it in Java code can anyone help?
 
A

Adam Harding

My code looks like this but does nothing!

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;

Can anyone help?
 
F

Franck Dauché

Hi Adam,

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é
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top