How do you access a macro in the AOT macro node?
I have the following macro in the macro node of the AOT in AX 2012 #localmacro.printSettings classStr(SrsPrintDestinationSettings), xSession::systemSessionId() #endmacro How can I then access this in code? Basically i want to be able to pass certain print settings to the macro and then grab those settings using the macro as well.
Macros can only manage parameters that make sense to be writed on the source code. They are not intended to receive and manage objects as parameters. If you need so, you'll need to implement a regular method, as Jan B. Kjeldsen stated on their answer.
The use of macros is all explained here. Do not make it too complicated, if it is, you are better served using regular methods.
General quesions about Dynamics Ax
Convert date into julian date
How to change the level of AX info messages
X++ unbound control
WeekOfYear in X++ using .net lib
How to tell what module has called the program
Getting the index of an array element of EDT Dimension
Destroy Object in X++
not able to run job in batch
Creating a folder on fileSystem dynamics ax
Can the X++ language be used for the following development?
How can you create a simple dialog box in Dynamics AX?
Reading a comma separated values (csv) file in dynamics ax
What is the function to get the system date and current date in Dynamics AX?
Dynamics AX 2009 - Modify insert into smmActivities from ProjTableWizard?
Axapta: How can the Table Name, Not the Table ID, be used as a select in the Select Dialog of the Database Log Report?