Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Infopath
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old September 4th, 2007, 01:32 AM
Registered User
Join Date: Sep 2007
Location: , , .
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.

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!!

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 06:06 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.