Change the image in an Image control in a portlet

Hi,
How can I change the URL of an image control in a portlet and show the image.
I’m trying to get a digitalized document according with the user typed in an InputText, with a button I’m going to get the URL string of the image file from a DataBase, but don’t know how to set that URL to the Image control and show that image.

Thank’s in advance.

Hi Mauro,
pretty simple… bind the URL property to a variable in your portlet. Then, whenever you change the value of that variable, refresh (via Async Hidden Command or using the javascript APIs) the image.

best regards,
Javier

Thank’s a lot Javier

I’m starting in this tool so don’t know if there is an example in the documentation that i haven’t found or in another place to search.

Regards,
Mauro.