you can review any of the standard report to check how you can use range f.e.: InventPriceOverview Report , check process report in InventPriceOverviewDP class
if your question is how to pass multiple values to the range then
you can use
qbrLocation.value(strfmt("%1,%2",“WH1”,“WH2”));
it works, but how will i put it OR operator in that code?
for example: c.INVENTLOCATIONID = ‘Small 2016’ or c.INVENTLOCATIONID = ‘SMALL 2016’
because there is lot of location and and until now the inventory team is still validate the inventory because it has a content, so that i need to specify the location…
You don’t have to add any operator by yourself. The piece of code I gave already generates SQL code with a WHERE clause with several conditions separated with the OR operator.
You’re so focused on a complicated solution that you’re overlooking the simple one. Please try my code to see what it does; you can also look at the SQL code it generates.
No, your last code won’t work. queryRange() is used for an interval of values, such as ‘aaa’ to ‘aaz’. Also, AX uses case-insensitive collation in DB (unless somebody installed it incorrectly), therefore “Small 2016” and “SMALL 2016” are considered the same values in database. Therefore using queryRange() is logically wrong, because you’re not trying to create a range, and your queryRange() will have no effect anyway, because the lower range and the upper range are the same.