AnsweredAssumed Answered

Creating a query statement

Question asked by joepub on Oct 17, 2014
Latest reply on Oct 17, 2014 by joepub

I would like to display a the result of a query that loops thru an array. The query statement should look the

one shown below:

 

countryCodes = [840, 332, 643, 724, ....];

 

for (var i = 0; i < countryCodes.length; i++)

{

   cntryq.where =     "UN = " + countryCodes = [i]

}

 

cntryq.where =     "UN = " + countryCodes = [0] + "OR UN = " + countryCodes = [1] + ....

Is this possible?

 

My script is attached

Attachments

Outcomes