S
sachintha
Hello All,
I designed an InfoPath form (following an example) to retrieve and
submit data to a database.
Data Sources are as follow (as showed in Data Source view)
-myFields
-queryFields
-q:Suppliers
:SupplierID
:CompanyName
[and other fields]
+qroducts
+dataFields
Suppliers and Products are 2 tables in the database.
I want to set the CompanyName query field to some value at the onLoad
form event. I tried in many ways but always give an error message
("null is null or not an object").
JScript code is as follows
---------------------------------------------------------------------------------------------------------------
var
x=XDocument.DOM.selectSingleNode("myFields/queryFields/q:Suppliers/@CompanyName");
x.text = "xxx";
----------------------------------------------------------------------------------------------------------------
Please give me some guidelines to solve this.
Thank you All,
Regards, Sachintha
I designed an InfoPath form (following an example) to retrieve and
submit data to a database.
Data Sources are as follow (as showed in Data Source view)
-myFields
-queryFields
-q:Suppliers
:SupplierID
:CompanyName
[and other fields]
+qroducts
+dataFields
Suppliers and Products are 2 tables in the database.
I want to set the CompanyName query field to some value at the onLoad
form event. I tried in many ways but always give an error message
("null is null or not an object").
JScript code is as follows
---------------------------------------------------------------------------------------------------------------
var
x=XDocument.DOM.selectSingleNode("myFields/queryFields/q:Suppliers/@CompanyName");
x.text = "xxx";
----------------------------------------------------------------------------------------------------------------
Please give me some guidelines to solve this.
Thank you All,
Regards, Sachintha