Here is what I am trying to do:
I have 25 queries to run that are in a separate file. They are all named by what they are returning. So if I want to loop through them, can I just use a variable to call each query I want to return?
var _Q = QueryFile;
var part1 = generalName; //Amount
var part2 = aqString.Replace(Object1.wSelectedItems, " ", ""); //Due
var part3 = aqString.Replace(Object2.wText, " ", ""); //LessThan
var allParts = part1+part2+part3; //AmountDueLessThan
var query = _Q.queryName(); //query = AmountDueLessThan()
Log.Message(query);
part1 never changes, part2 changes every five iterations, and part three changes every iteration. I'm trying to write a function to execute this piece so that it works for all 25 queries.
Is there a way to format the queryName string to call the query from QueryFile?
Thank you,
Dan