cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic graphic in adobe interactive form....

Former Member
0 Kudos

Hello,

I want to put graphic on Adobe form. I am using SFP transaction. But the graphic is not going to be static. Its going to be dynamic. Its actually going to be a URL link and the image file will be changed based on certain logic. Is this possible ?

//XXX/YYY/1.bmp

//XXX/YYY/2.bmp

//XXX/YYY/3.bmp

Where do I write the code so that URL will actually pointing to a datastream that will be created based on predefined logic ?

Thanks.

Regards,

Rajesh.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey Rajesh,

How are you using the form? HCM P&F, WD Java, etc?

Is there a trigger when the form loads that you can identify, and based on that, call the image that you want? I would put some kind of check in the initialization of whatever method you are using, and when you find the value that you are looking for, then assign the appropriate image to your context attribute, or class parameter...

Cheers,

Kevin

Former Member
0 Kudos

The trigger is going to be sales order number. The images will be named after sales order number. So if sales order number is '1234', the image to be fetched should be 1234.bmp with predefined URL path


XXX
YY
1234.bmp.

Do I need to use graphic refernce to this ?

Thanks.

Regards,

Rajesh.

Former Member
0 Kudos

Hey Rajesh,

Here is something that you can try...

- you could upload all three images to the form

- place them all in the same location and set their presence all to hidden

- pass a value to a field that is hidden on the form

- check the value of the field

- then set the presence of the image from hidden to visible, $.presence = "visible"

Just remember when loading the image into the form, select the "Embed Image Data" check box.

This way, you don't have to worry about an image being removed from a specific location.

Hope this helps...

Cheers,

Kevin

Former Member
0 Kudos

I cannot upload the images to form. The image are going to be dynamic which the form should fetch from a specific URL. As new sales order keeps creating, new images will be loaded on file server from where I have to fetch the image dynamicaly.

Regards,

Rajesh.

Answers (1)

Answers (1)

Former Member
0 Kudos

Build the URL with scripting from the values of your context or insert the URL directly via the interface and use it in the ImageField object.

Frank