Hi, I'm having some problems with the namespace in Infopath 2003. Can someone please help..
It's a very complicated form with 10 views and around 150 data sources.
My problem is all these data sournces are in 'mstns:' namespace, but someone has just stuffed up something in the form, and all the new data sources I'm trying to create automatically get assigned to a 'my:' namespace. And they don't work properly like others.
e.g.
var root = _XDocument.DOM.selectSingleNode("/mstns:Workflow");
root.selectSingleNode("my:customerName").text = currResult.custName;
The above code gives javascript error where the code could not get "my:customerName" node.
However if I try to assign something to an existing data source which belongs to the existing namespace 'mstns:' like following, it works fine.
root.selectSingleNode("mstns:customerID").text = currResult.custID;
Could someone please let me know how to get the old namespace back, so the new datasource I create will belongs to the old namespace 'mstns:'
Thanks alot!!
Kris