Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

How can I define multiple OR clauses in a QueryBuildRange in AX?

$
0
0

Hello, I'm creating a query in AX where I need to define multiple OR clauses for a single field; in SQL would be something like:

...AND (field1 IN(value1, value2, value3) OR field1 IS NULL OR field1 = '')

This is what I've tried in AX: (parameter1 is a string in this format: 'a, b, c')

QueryBuildRange.value(strFmt("((field1 == '%1') || (field1 == %2) || (field1 == %3))", parameter1, SysQuery::valueEmptyString, null));

But it does not work! could you help me out? I would highly appreciate it, thank you!

 


Viewing all articles
Browse latest Browse all 73760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>