cancel
Showing results for 
Search instead for 
Did you mean: 

Display image from external resource into interactive form

Former Member
0 Kudos

Hi experts!

How can I display an image from a external url, for example "http://www.adobe.com/imageshome/pdfgift_home.gif" ??

I tried to do that:

1. Insert a "Image field"

2. Bind None

3. Embed image data: unselected

4. URL: $record.url

In "url" it's a context's variable. It's type is string. I save in url: http://www.adobe.com/imageshome/pdfgift_home.gif

4. Show: initialize

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

Language: JavaScript

Run at: Client

I can't save image into mimes' folder. It's a bussiness rule in my company.

Thanks

Gustavo Rodriguez

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

When I proved that:

$.value.image.href = $record.URL

Can't display a image yet. BUT!!! Now appers a popup windows empty!!! Do you know why?

I think that we are more closer the solution

Thanks!

Gustavo

Former Member
0 Kudos

Dynamic URLs for images were removed by SAP or Adobe in the previous version because it was considered 'insecure'.

Answers (5)

Answers (5)

Former Member
0 Kudos

Well, I'll change the repository for my images in the portal

Regards,

Gustavo

Former Member
0 Kudos

cna you try changing your formcalc script to

$.value.image.href = $record.URL

Former Member
0 Kudos

I proved with another image.

I can see if I write the path directly in the URL. But I need to display dynamically. I tried with the same path but dynamically and the image didn't display ( I follow the same steps in the first thread)

Any suggestions or ideas?

Former Member
0 Kudos

Yes, I tried that way too, but i can't see the image.

Do you have more ideas for my problem ?

Thanks for your quick answer

Former Member
0 Kudos

have you tried directly linking it to the image this way? instead of passing through the context to make sure you can access the image?

I just inserted an image on my form.

Bind none

Embed unchecked

URL http://www.adobe.com/imageshome/pdfgift_home.gif

Edited by: robert phelan on Jun 25, 2009 8:07 PM