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();
}
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();
}