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

How to use multiple enum values as Query Filter

$
0
0

Hi,

Any idea how to specify multiple enums as the filter options for a query

I've created a QueryBuildRange variable and I know that for one enum I can specify it like this

    criteria.value(QueryValue(ProjectStatus::ProjectOpen));

But what about when you want it to be either one of two possibilities???

I've tried these (but none of them appeared to compile)

criteria.value(QueryValue(ProjectStatus::ProjectOpen), QueryValue(ProjectStatus::ProjectDecided));
criteria.value(QueryValue(ProjectStatus::ProjectOpen, ProjectStatus::ProjectDecided));
criteria.value(QueryValue(ProjectStatus::ProjectOpen, ProjectDecided));

Anyone know where I'm going wrong?


Viewing all articles
Browse latest Browse all 175888

Trending Articles



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