Notifications
Announcements
No record found.
Dear All,
Can you please let me know should i use macro in select statement with condition?
Please give more shed on this.
Thanks!
Arpan Sen
*This post is locked for comments
It depends on what you;'re trying to achieve, which you unfortunately forgot to mention.
To learn how to use macros in general, refer to my reply in your other thread, How to use Global macro and local macro.
Hi Arpan.
AX2012 has a good example of this, have a look in the PriceDiscAdmSearch class in AX, you will see a number of macros used both for conditions as well as field list selections. The macros are declared in the class declaration and then used in the search methods e.g. 'searchInventAllAdditionalRelations'
Thanks Jonathan
@rp@n, you keep forgetting to verify answers. Instead of replying with "Thanks Jonathan", please click Yes beside Jonathan's reply (below Did this answer your question?).
Hi Arpan,
Macros do have some benefits and are quite powerful, but note that the compiler is replacing the macros with the actual x++ coding which will have a small performance penalty during the compilation process.
Hi Martin,
I know, I am not new in this forum. I said thanks because they replied me.
Arpan
Yes, despite the fact that you're not new here, you're still forgetting. You even haven't fix this thread. Please review your threads, close all that are already answered and don't forget about it when you get answers in future.
Also, because you're no newbie, it would be great if moderators such as myself wouldn't have to spend timing fixing titles of all your threads. Please make more effort to do your part in this forum. We try to answer your questions for free and all we ask from you is using the forum in a sensible way.
ok, martin
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2