infopath code ??

M

Mike

I can't get the following code to work

//CODE
function CTRL67_7::OnClick(eventObj)
{
// Set a reference to the DataObjects collection.
var objDataObjects = null;
var sSearchString = null;

objDataObjects = XDocument.GetDom("QuoteDetails");

objDataObjects.selectSingleNode("//Waste").text;
}
every time I run this it says object dosnt support this property or method,
I assume refering to the ".selectsinglenode" statment
What am I missing??
 
F

Franck Dauché

Hi Mike,

Try XDocument.DOM.selectSingleNode . For your XPath, don't forget the "my:"
in front of your field name.

Regards,

Franck Dauché
 
Top