cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Translate the entire conversation x

How can I display multiple images to repeater ?

T.Nakamura
11-Garnet

How can I display multiple images to repeater ?

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

 

0 REPLIES 0
Announcements
Top Tags