Error: Infopath

T

Taja

Hi,

When executing the following code in the onload event, i get the error:
InfoPath cann't create a new blank form.
I just want to fill-in the username in one of the query fields, before
invoking the query submit.

What's going wrong ?

thx for support



var objNetwork = new ActiveXObject("WScript.Network");
userName = objNetwork.UserName;
wshNetwork = null;

var queryHans =
XDocument.DOM.selectSingleNode("/my:myFields/my:queryFields/q:tbl_names" );
queryHans.selectSingleNode("@username").text := userName;
 

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