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 / June 2005

Tip: Looking for answers? Try searching our database.

converting an object to be used in JScript (Script ID?)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RobertSRU1981 - 08 Jun 2005 20:18 GMT
I created a text box in InfoPath non-SP1. I want to be able to use the input
from the text box and collect it. After i collect instantly when the person
clicks the submit button created. When the person clicks the submit button
the JScript will take over. First it will open two files (Which i have
allready figured out) then it will place all the information that they person
entered in two seperate files. The first file will make a formated file.txt
that will look like this.

First Name: John
Last Name: Doe
Age: 22
ect...

The second file will make a parsed file or delimited (by commas) file that
will look like this.
John,Doe,22,ect..

The problem i am having is trying to figure out how to convert a text box
object so it can be used into the JScript. I noticed that when you use
bottons you are asked to make a Script ID for that button so you can identify
it in the script. But it does not ask for a Script ID for a text box or
anything else for that matter. How do i collect whatever the user enters in
the text box so i can throw the information into a delimited file or
basically how can i change the text box info into a variable that can be used
in JScript?
Henning Krause [MVP - Exhange] - 09 Jun 2005 07:59 GMT
Hello,

thats not how InfoPath works.

You don't have access to the text-boxes. Instead you'll have to access the
underlying primary datasource (via XDocument.DOM).

This will look like XDocument.DOM.selectSingleNode("my:Fields/my:Age").text;

Greetings,
Henning Krause [MVP - Exchange]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)

>I created a text box in InfoPath non-SP1. I want to be able to use the
>input
[quoted text clipped - 28 lines]
> used
> in JScript?
 
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.