reference to undeclared namespace prefix dfs

D

demonrat

I am trying to
1) submit form data
2) collect a value from one of the fields of this form
3) open a new form
4) write the above value to a query field in this form
5) sumit a query on this new form to get the data

The data submits, I can collect the value from the first form and open athe
second form, however I am unable to get the query field on the new form
populated in order to run a query.

heres the code: -

function CTRL84_7::OnClick(eventObj)
{
XDocument.Submit();

var param1 =
XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:TBL_Form_Table/@ID").text;
var objXDoc;
objXDoc = Application.XDocuments.NewFromSolution("d:\\tnttest.xsn");
var ID =
objXDoc.DOM.selectSingleNode("/dfs:myFields/dfs:queryFields/q:TBL_Form_Table/@ID");
ID.text = param1;
XDocument.Query();
}
 
D

demonrat

Not having much joy, but I am quite new to inforpath and Javascript so am
struggling.

I am assuming I need to refernce a different namespace, but which one?

Such a simple task, its driving me loopy not knowing how to solve it!

Advice greatly will be greatly appreciated.

Thanks.
 

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