Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Infopath
|
Infopath Programming and automation discussions only please. :)
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Infopath section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 4th, 2007, 01:32 AM
Registered User
 
Join Date: Sep 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with the 'my:' namespace in Infopath 2003

Hi, I'm having some problems with the namespace in Infopath 2003. Can someone please help..

It's a very complicated form with 10 views and around 150 data sources.

My problem is all these data sournces are in 'mstns:' namespace, but someone has just stuffed up something in the form, and all the new data sources I'm trying to create automatically get assigned to a 'my:' namespace. And they don't work properly like others.

e.g.
var root = _XDocument.DOM.selectSingleNode("/mstns:Workflow");
root.selectSingleNode("my:customerName").text = currResult.custName;

The above code gives javascript error where the code could not get "my:customerName" node.

However if I try to assign something to an existing data source which belongs to the existing namespace 'mstns:' like following, it works fine.
root.selectSingleNode("mstns:customerID").text = currResult.custID;

Could someone please let me know how to get the old namespace back, so the new datasource I create will belongs to the old namespace 'mstns:'

Thanks alot!!
Kris






Similar Threads
Thread Thread Starter Forum Replies Last Post
Infopath 2003 Picture Problem slcuster Infopath 0 August 28th, 2008 08:20 AM
Infopath 2003 Error Zeetec Infopath 0 April 7th, 2008 05:01 AM
User Login InfoPath 2003 ruso77 Infopath 0 April 12th, 2007 03:37 PM
Invoking Word 2003 document from InfoPath 2003 debsoft General .NET 0 April 28th, 2004 08:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.