Ahmet
Posts: 0
Joined: Wed Jul 23, 2014 12:48 pm

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

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

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

Hello,

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

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

Return to “Issues”