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 / September 2007

Tip: Looking for answers? Try searching our database.

Declaring Values in Textbox using VBScript in Infopath

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vin - 10 Sep 2007 12:00 GMT
How can I declare a certain text / value in a textbox that I created in an
Infopath Form? Here is my current code wher I keep on getting an error
"Reference to undeclared namespace prefixes: 'my'"

Thanks
K.Ramana Reddy(GGK Tech) - 10 Sep 2007 13:30 GMT
Hi,

Use below code to set the value or text for text box field.

XDocument.DOM.selectSingleNode("Xpath of text box field").text="value"

Example:
XDocument.DOM.selectSingleNode("/my:myFields/my:field1").text="xxxx"
Signature

k.Ramana Reddy
http://www.GGKtech.com

> How can I declare a certain text / value in a textbox that I created in an
> Infopath Form? Here is my current code wher I keep on getting an error
> "Reference to undeclared namespace prefixes: 'my'"
>
> Thanks
 
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.