Skip to main content
11-Garnet
June 11, 2025
Question

How can I display multiple images to repeater ?

  • June 11, 2025
  • 0 replies
  • 440 views

How can I display multiple images to repeater ?

 

I had reference below article.

Then we had created repeater object to display grid data from csv file.

 

https://community.ptc.com/t5/Vuforia-Studio/Repeater-widget-without-ThingWorx-connection/m-p/718896

 

So , When I set OK to result column , I want to display OK image on repeater.

When I set NG to result column , I want to display NG image on repeater.

 

I had tried set below script to filter.

But it is not good work.

 

So , Does anyone have the good solution ?

 

if(!window.my_filter2) window.my_filter2=1;
else {
if(window.my_filter2>= value.length) window.my_filter2=1;
else {window.my_filter2++;} }

 

if(value[window.my_filter2-1]['Result'] == 'OK'){

     return('app/resources/Uploaded/OK.png');

}else if(value[window.my_filter2-1]['Result'] == 'NG'){

     return('app/resources/Uploaded/NG.png');
}

TNakamura_0-1749630105937.png