cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Image from URL into Form

Former Member
0 Kudos

Dear All,

I need to place an image in the Adobe form based on the url.

I have written the following formcalc script in the image field form ready action

ImageField1.value.image.href = "http://www.adobe.com/imageshome/pdfgift_home.gif"

But when i view the form , the image field is empty, and when i click on the blank space of the image field, a popup appears to select the image............

How can i show the image from url in the form..........

Regards,

Shamila Biju

Accepted Solutions (0)

Answers (3)

Answers (3)

OttoGold
Active Contributor
0 Kudos

Hello,

you can open your LCD, check the image object - there is a URL attribute there.

Or you can get the picture into SAP (somehow) and then send a binary stream of picture data into the picture.

It depends on your scenario, do you want to embed the picture into the form (all picture data, no download) ? Or place only a reference into the form? (because URL is only a reference, not the picture data).

Otto

p.s: open your own thread, do not hijack others threads

tony_morellet
Participant
0 Kudos

Hi Otto, I have an image (.gif) store in the BDS.

I execute a function to find the URL.

I would want that the image in the form changes dynamically according to the url passed on by the pogramme

I work with the SFP.

The image can be only a gif

Former Member
0 Kudos

solved by my self

Former Member
0 Kudos

Hi

Please if possible can you please put the solution here..

tony_morellet
Participant
0 Kudos

Hi, I have the same problem, could you give me your solution please ?

Former Member
0 Kudos

Hi Shamila,

If you dont mind, please can you share your findings.

I have tried doing it but I have adopted some weird way.

Thanks,

Arpit

Former Member
0 Kudos

hi,

use th following link (PAGE 17),

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-tec...

String url = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(),

"http://www.adobe.com/imageshome/pdfgift_home.gif");

Regards

Jayapriya

Former Member
0 Kudos

hi,

I am using ABAP Webdynpro.............