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 / March 2006

Tip: Looking for answers? Try searching our database.

Howto: using vb.net change text fields (text boxes) data ???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Locke Nash Cole - 13 Mar 2006 06:03 GMT
I'm new to infopath and unable to find the exact correct method to change
text in a field on an infopath form.  Can anyone help?

Using VS 2003 and the Inforpath Visual Studio Tools.

-L
S.Y.M. Wong-A-Ton - 13 Mar 2006 12:38 GMT
First you need to get to the correct node pertaining to the InfoPath field
using an XPath expression, and then set the "text" property on this node.
Something like

thisXDocument.DOM.selectSingleNode("//my:fieldToSet").text = "myValue"
---
S.Y.M. Wong-A-Ton

> I'm new to infopath and unable to find the exact correct method to change
> text in a field on an infopath form.  Can anyone help?
>
> Using VS 2003 and the Inforpath Visual Studio Tools.
>
> -L
Jack - 13 Mar 2006 17:33 GMT
The best solution is to use the functions in the common.js file
included with the samples you get with the Visual Studio Tools. There
is a function in that file called setNodeValue() which should handle
what you need to do.
 
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.