How to retrieve Active X control data - InfoPath 2003 - SP2

D

dp0100

Hi MS,

My goal is to capture the network-id and pass that to Access for
validation in my InfoPath form. I have a field in my project table
(Access 97 SR-2) to capture this- User-id.
I have researched numerous sites and found the below script:

{
var objWscript;
objWscript = new ActiveXObject("WScript.Network");

XDocument.UI.Alert(objWscript.username);
}

I just pasted this code - Tools --> programming - script editor -
right below the namespacesDefinition section.

When I preview the form, the Active x warning appears, click ok and it
is correctly displaying my network user-id. However, how do I get this
information into my form to pass back to Access??

I tried the Add/Remove Custom Controls but not sure what I'm looking
for - couldn't find anything resembling the code above to choose -
then it was asking me about .cab files?

I am in no way a programmer and need some help as this is my last
hurdle to get this project up and running. Can someone please help or
direct me where I can get some information on this subject?

Too bad I'm not running InfoPath 07 - I read that userName() is a
built in function now! How easy is that!


Thanks for any information you can provide


David in Dallas, TX
 

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