cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic R/3 Image URL in Adoeb Form

Former Member
0 Kudos

Hi

I am facing issue while trying to display image in adobe form. The image source is comming from backend R/3 in the form of URL something like the below shown URL which is again a dynamic one http:
<hostname>:<port>\....\...\asu09939e7664352s293952e052772365e425345324f29349234324323200

I have tried with the following code with Forcalc as scripting language for an image field

$.value.#image.href = $record.photourl

Can someone put some light on the above issue.

Regards

Srikanth Anthargam

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

The above soutions did not worked ...

Ok let me explain indetails I have a contextVariable photoUrl where this url will be filled with value which is a image url http:
<hostname>:<port>\....\...\asu09939e7664352s293952e052772365e425345324f29349234324323200
So now we have the above url in context variable, now i want to display the above URL image in interactive form.

Thanks a lot for the replies

regards,

Srikanth

Former Member
0 Kudos

Hi:

This blog maybe help you!

https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/webdynpro%252bjava%252band%252bifba%252b-%...

But the image only display if the picture exist in WAS path , perhaps it can not display if use R3 path.

Former Member
0 Kudos

Hello Srikant,

Do the following :

1 . Drag a ImageField onto the form

2. Goto Layout of the imagefield and change "Caption" to none.

3. Goto Object Tab and in the "URL" property enter $record.photourl (You will have to type this manually)

4.In the Initilase method og the ImageField write the following code

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

Edited by: Virag Shinde on Feb 25, 2009 3:38 PM

Former Member
0 Kudos

Srikanth,

Try this

this.image.value.href = xfa.record.url

If you have URL value inside any node then u have to use xfa.record.nodename.url .

Thanks and Regards,

Siva