Wrox Programmer Forums
|
BOOK: Beginning InfoPath 2003
This is the forum to discuss the Wrox book Beginning InfoPath 2003 by F. Scott Barker; ISBN: 9780764579486
ISBN: 0-7645-7948-7
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning InfoPath 2003 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 April 12th, 2005, 11:33 AM
Registered User
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Value of the name of control

First, I liked the book. It is straight forward and keeps on point.

In Chapter 14 there are several instances where the selectSingleNode method of the DOM is discussed using the form "//my:fieldName".

This works fine in the examples but when I try to add code to existing forms the "my:" pretext doesn't work.

Where do I look or what code could I run to find out the value of the name of a control for my code?


Carpe diem

Ken K
 
Old June 17th, 2005, 08:57 PM
Registered User
 
Join Date: Jun 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ken,

At the top of the code is a line that specifies the namespace you are going to use. You can see it below. Also, don't forget the // before the name (my) in other words: "//my:fieldName"

// The following line is created by Microsoft Office InfoPath to define the prefixes
// for all the known namespaces in the main XML data file.
// Any modification to the form files made outside of InfoPath
// will not be automatically updated.
//<namespacesDefinition>
XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2004-10-19T21:13:19"');
//</namespacesDefinition>








Similar Threads
Thread Thread Starter Forum Replies Last Post
The control that triggered the UpdatePanel control Kika ASP.NET 2.0 Professional 0 January 17th, 2008 01:13 PM
How to put a button control in a GridView control ryan.webb ASP.NET 2.0 Basics 2 December 28th, 2007 05:26 AM
Can't move focus to control <control scptech Access VBA 8 October 26th, 2007 12:16 PM
Help! Custom Server Control using User Control diehard ASP.NET 1.0 and 1.1 Professional 2 January 4th, 2006 12:33 PM
Help with control initialization in user control mike_remember ASP.NET 1.0 and 1.1 Professional 7 December 19th, 2005 11:08 AM





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