These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Binding image field to url from database

past-tense
Registered: Jul 13 2010
Posts: 11

Hey everyone,
 
I was wondering if anyone out there knew of a way to bind an image field to a url from a database connection. I bind all of the other types of data well enough, but binding images still eludes me.
 
When I try to bind an image to the url via the Livecycle binding tab, the image field is automatically converted into a text field. When I try to change the image's href on the form's initialize event to either a data node or a url string, the image field remains blank.
 
The code I use is as follows:
 
xfa.form.form1.imageField1.value.image.href = "\\server\image folder\image.jpg"
 
It seems no matter what I do, I cannot dynamically change the source of an image file.
 
I would really appreciate any help that anyone could offer.
 
- Scott

My Product Information:
LiveCycle Designer, Windows
Masi
Registered: Sep 18 2008
Posts: 22
You could bind the database into a hidden text field and use a script to load the image data into the image field. I think it could work on image field calculate event like this:
this.rawValue = bindAndHiddenTextField.rawValue;