W
will.horn
My main data source has a group that I would like to prepopulate from
my secondary data source (referencedata.xml) when the form loads.
I'm not too familiar with JScript, but this is what I've tried:
XDocument.DataObjects("referencedata").QueryAdapter.Query(); // is
this needed?
var refdata = XDocument.GetDOM("referencedata");
var runs = XDocument.DOM.selectSingleNode("//runs");
runs = refdata.selectSingleNode("//runs");
I think the problem is in the last line since in the debugger, refdata
looks like it's is loaded correctly. Can I not simply copy nodes like
this? Is there another function I need to use?
Thanks,
Will
my secondary data source (referencedata.xml) when the form loads.
I'm not too familiar with JScript, but this is what I've tried:
XDocument.DataObjects("referencedata").QueryAdapter.Query(); // is
this needed?
var refdata = XDocument.GetDOM("referencedata");
var runs = XDocument.DOM.selectSingleNode("//runs");
runs = refdata.selectSingleNode("//runs");
I think the problem is in the last line since in the debugger, refdata
looks like it's is loaded correctly. Can I not simply copy nodes like
this? Is there another function I need to use?
Thanks,
Will