Wednesday 29 April 2015

jQuery - Replace Image

I am posting this just because I am getting questions related to this or similar issues all the time. In this example you can see how you can replace images on the fly in your page using Dynamic Actions. There are at least two good ways to do that:

1. Rendering images in a report. Refreshing a report is a predefined event in a Dynamic Action and doesn't require coding.

or

2. Using jQuery to do that.



Enjoy.

3 comments:

Marko Gorički said...

In second example, first DA - you are submitting value of select list to session state (DEPTNO). I think you don't need to do this because it's pure JS (jQuery). Value of item P800_DEPTNO if fetched dynamically.

Br,
Marko

Marko Gorički said...

I assume you're doing this because of page refresh. :)

Denes Kubicek said...

This happens to me very often. I answer my questions myself :)

Regards,

Denes