Problem with selectSingleNode in Microsoft KB Article 826994

O

ok99

The sample code KB Article 826994 fails on the follow line of code:

queryValue.text = fieldValue.text

The preceding line of code returns null.

set queryValue = theDataObject.DOM.selectSingleNode( _
"/dfs:myFields/dfs:queryFields/s0:GetCities/s0:sState" )

Is there a known problem with selectSingleNode in InfoPath?

I'm using W2K professional. I have tried the sample in InfoPath 2003
with and without SP1.

http://support.microsoft.com/default.aspx?kbid=826994&product=infopath2003
 
P

Prachi Bora [MSFT]

Hi,
I tried the sample code and it works for me. Have you set up your webservice correctly?
 
M

Matthew Blain \(Serriform\)

Another thing to check is if the namespaces are set up correctly. If your
web service is using a namespace other than the default tempuri namespace,
you will need to modify the SelectionProperty so that
xmlns:s0="your-namespace"".

In the script debugger you can look at the xml returned with
theDataObject.DOM.xml, and even try out different selectSingleNode
expressions.

--Matthew Blain
http://tips.serriform.com/
 

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