JScript Infopath problem

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 in JScript, 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 th
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
 

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