Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / November 2005

Tip: Looking for answers? Try searching our database.

stupid user question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam Harding - 01 Nov 2005 12:59 GMT
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?
Adam Harding - 01 Nov 2005 13:15 GMT
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?
Franck Dauché - 01 Nov 2005 16:14 GMT
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é

> My code looks like this but does nothing!
>
[quoted text clipped - 7 lines]
>
> Can anyone help?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.