-
I have this code in vbScript;
Sub XDocument_OnLoad(eventObj)
' Write your code here
Dim wsh
Dim un
Set wsh = CreateObject(''WScript.Network'')
un = wsh.UserName
XDocument.DOM.selectSingleNode(''//my:myFields/my:tmpFields/my:Field1'').text = un
End Sub
I am trying to populate a text box (Field1) with the value of the username. I can get ...
-
I must be missing something here. I see that secondary data sources can be set up to either submit *OR* receive, but not both. I don't see in your links where it allows you to do both. Please correct me if I'm wrong.
-
Well I managed to figure out a solution myself so I thought I'd share it. The problem with using a dropdown with the example had to do with what happened to the secondary datasources after the initial selection. Basically nodes were being moved and not replaced. So to fix the problem I modified the following:
1.) Changed this line ...
-
quote:Originally posted by Greg Collins
Hi DigitalMan, and welcome to the forums.
It could be that the reference to your parent node is no longer valid after you do the removeAll()... Maybe you need to select the node again before doing your appendChild().
Also, verify that you are appending a valid node... maybe cloneNode() didn't work ...
-
Hello
Did you publish the Infopath Form template to a Form Library in the Sharepoint
-
Hello
You can use secondary data connections to submit and recieve Data connections. For more information on this please read the Links below
http://office.microsoft.com/en-au/assistance/HP011039031033.aspxhttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_tr/html/odc_INF_Lab_08.asp
Hope this will help you.
-
Can secondary data connections be set up to submit and receive data?
I'd like to create a couple of query options on my form.
The first query will use the main connection and it will retrieve a single record. Both query and data fields will be entered and displayed from the main form (default view).
The second query (or data connection) ...
-
I appear to have been a bit of a muppet!
Because it is a database, the relationship is based upon the primary and foreign key.
If a drop down box of a ''FORM'' field uses the data from a field in a database table, will it automatically know what the primary key vaule is if I use it to filter the drop down list of the second drop down list by ...
-
Hi DigitalMan, and welcome to the forums.
It could be that the reference to your parent node is no longer valid after you do the removeAll()... Maybe you need to select the node again before doing your appendChild().
Also, verify that you are appending a valid node... maybe cloneNode() didn't work correctly.
-
Thanks for sharhing you solution with us. I'm glad you got it solved!