on 09-05-2005 3:55 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.