InfoPath JScript issue

J

Josiah Smith

Hi,

I'm creating forms in InfoPath 2003 and have run into a wall in development.
In the forms we have created, we are opening a second form using the
NewFromSolution method, and are passing data values to the new form from the
old form, such as:
Application.XDocument.NewFromSolution(//Path).DOM.selectSingleNode("my:myDestinationForm/my:firstName").text
= XDocument.Dom.selectSingleNode("/mySourceForm/my:FName").text

We are having no problem with doing simple text field to text field
parameter passing. I am now trying to pass a base64 picture in the same
manner, and have run aground. If I use the
XDocument.UI.Alert(XDocument.Dom.selectSingleNode("/mySourceForm/my:pictureOne").text)
function, I do get a notification box with the base64 encoded picture in its
glorious gibberish. I just don't know how to assign that to a base64 field
in the destination form.

I've tried using the .nodeTypedValue method, and only have errors when there
is a picture in the source form's field.

Any guidance or information regarding this would be extremely appreciated.

Josiah
 
B

Bob Buckland ?:-\)

Hi Josiah,

You may want to use the links below to also post this in the MS Office Infopath newsgroup directly.

========
Hi,

I'm creating forms in InfoPath 2003 and have run into a wall in development.
In the forms we have created, we are opening a second form using the
NewFromSolution method, and are passing data values to the new form from the
old form, such as:
Application.XDocument.NewFromSolution(//Path).DOM.selectSingleNode("my:myDestinationForm/my:firstName").text
= XDocument.Dom.selectSingleNode("/mySourceForm/my:FName").text

We are having no problem with doing simple text field to text field
parameter passing. I am now trying to pass a base64 picture in the same
manner, and have run aground. If I use the
XDocument.UI.Alert(XDocument.Dom.selectSingleNode("/mySourceForm/my:pictureOne").text)
function, I do get a notification box with the base64 encoded picture in its
glorious gibberish. I just don't know how to assign that to a base64 field
in the destination form.

I've tried using the .nodeTypedValue method, and only have errors when there
is a picture in the source form's field.

Any guidance or information regarding this would be extremely appreciated.

Josiah>>
--
Let us know if this has helped you,

Bob Buckland ?:)
MS Office System Products MVP
A. Specific newsgroup/discussion group mentioned in this message:
news://msnews.microsoft.com/microsoft.public.infopath
or via browser:
http://microsoft.com/communities/newsgroups/en-us/?dg=microsoft.public.infopath

B. MS Office Community discussion/newsgroups via Web Browser
http://microsoft.com/office/community/en-us/default.mspx
or
Microsoft hosted newsgroups via Outlook Express/newsreader
news://msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top