cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Forms and Dynamic Images

Former Member
0 Kudos

Hi all,

I have a table in my Interactive Form and I need to add a dynamic image for each row of this table according with the URL field of my node, so i've done the steps of the tutorial "Dynamic Non-Interactive PDF Form", adding a image field, setting none for default binding, setting the url field as $record.Images[*].URL and then, adding the following FormCalc expression to initialize the image: this.value.image.href = xfa.resolveNode(this.value.image.href).value;

Well, my node Images return 3 records and when I run the app, the following message returns:

Script failed (language is formcalc; context is xfa[0].form[0].dataSource[0].Images[0].subImageTable[0].subImageRow[0].imageField[0])

script=this.value.image.href = xfa.resolveNode(this.value.image.href).value;

Error: SOM Expression returned list when single result was expected

Script failed (language is formcalc; context is xfa[0].form[0].dataSource[0].Images[0].subImageTable[0].subImageRow[1].imageField[0])

script=this.value.image.href = xfa.resolveNode(this.value.image.href).value;

Error: SOM Expression returned list when single result was expected

Script failed (language is formcalc; context is xfa[0].form[0].dataSource[0].Images[0].subImageTable[0].subImageRow[2].imageField[0])

script=this.value.image.href = xfa.resolveNode(this.value.image.href).value;

Error: SOM Expression returned list when single result was expected

So, anyone here knows how to add a dynamic image to a table row?

Thanks in advance

[]'s

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Jose,

I have to do the same requirement. Can you please tell me how you did or tell me where to find that tutorial "Dynamic Non-Interactive PDF Form".

Regards,

Mahidhar Suggala.

Former Member
0 Kudos

I solved it now, just changing the FormCalc expression.

Instead of using the expression:

this.value.image.href = xfa.resolveNode(this.value.image.href).value;

I used this:

this.value.image.href = xfa.record.Images.URL;

The URL value of Image Field, in this case is:

<b>$record.Images[*].URL</b>

And, to finish, I needed to add a Text Field bounded to <b>$record.Imagens[*].URL</b>, case else the image doesn't appear.

That's it!

Former Member
0 Kudos

Hi Jose,

I am also facing a similar problem. For me the image is not displayed if it lies on a different network machine.

For me the url paramater contains

file:

inbl345
KM-DATA
LH
0105
DSCN3267.JPG

But I don't see any image.

Any ideas, what else I can do.

Regards,

Shubham

Message was edited by: Shubham Tripathi

Former Member
0 Kudos

I have the same problem. My form displays always the same image in each row.

Does anybody get the solution?