Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / July 2004

Tip: Looking for answers? Try searching our database.

Problem with selectSingleNode in Microsoft KB Article 826994

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ok99 - 09 Jul 2004 19:47 GMT
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
Prachi Bora [MSFT] - 10 Jul 2004 01:00 GMT
Hi,
I tried the sample code and it works for me. Have you set up your webservice correctly?

> The sample code KB Article 826994 fails on the follow line of code:
>
[quoted text clipped - 11 lines]
>
> http://support.microsoft.com/default.aspx?kbid=826994&product=infopath2003
Matthew Blain \(Serriform\) - 10 Jul 2004 06:55 GMT
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/

> Hi,
> I tried the sample code and it works for me. Have you set up your webservice correctly?
[quoted text clipped - 12 lines]
> > 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.