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

Conditional Join on select with macro

$
0
0

Is it possible to write in X++ select with conditional join using macro ?


I want to write select like this:

variable1 = value from database;

while
select Table1
#if.VARIABLE1(...) join Table2 where Table1.Field1== Table2.Field1 #endif
{
        info(strFmt("%1 / %2", ....));
}

Ofcourse I can make query and write it with query = new query(....) but I have a lot places with code to change. My select is very complex (about 10-14 tables) and I thinking that is it possible to change it with macro. Conditional join depend on value from database (not from constant value !).


Viewing all articles
Browse latest Browse all 72043

Trending Articles



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