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é
 

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