Page 1 of 1

How to display Image depending on a status in a Dynamic LIST

Posted: Sat Jan 17, 2015 12:03 am
by Ahmet

Hi I have a Dynamic list. And I can Display This Dynamic List in a List box, No problem, But depending on the STATUS of each row in the database I want to show one of 2 (or 3) Images on screen. I have choice between 2 or 3 images depending on the status of the row. IF OK then DISPLAY OKE PICTURE if NOT OKE then Display NOT OKE picture. Directly display of Images was not possible . I have put the Images in THE FILE collection outside the LIST. I kow how to get this images from the FILE collection and how tio display them. BUT I don't kow how to display the correct Image depending on the STATUS field on each row: If STATUS is OK, then get the OKE.png else get NOK.png.? How can I do this,? Usage of the local variable did'nt work.

Thaks Ahmet

Image


How to display Image depending on a status in a Dynamic LIST

Posted: Sat Jan 17, 2015 2:54 am
by Alena Prykhodko

Hello,

Please check out this post https://getsatisfaction.com/apperyio/...
You should use method :

preAppery(image_component_name).attr('src', 'url'); /pre