x++


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.

Related Links

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?

Categories

HOME
algorithm
codenvy
c99
webdriver
components
graphics
newrelic
xbee
permissions
iis-6
angularfire2
distribution
plist
fileserver
easyphp
cfml
enterprise-miner
windows-xp
blade
r-mice
definitelytyped
pic32
stackexchange
licensing
flooding
outliers
autodesk-designautomation
mobx
playstation-portable
nested-lists
roblox
openproject
sessionstorage
railstutorial.org
resolution
xv6
visa
preloader
sharp-snmp
oracle-service-bus
angular-http
monkey-testing
double-click
ntvs
libgphoto2
openrasta
fclose
netbeans6.8
convex-optimization
page-replacement
cup
type-theory
rxtx
filenet
cudd
winusb
preprocessor
tinkerpop3
appscale
clipboard.js
deep
nss
fink
grass
relativelayout
character-replacement
sapi
tfs-workitem
xvim
nutiteq
osc
zxspectrum
delayed-execution
uncaught-typeerror
big-ip
metatrader5
ray
file-not-found
extjs2
breakout
merb
cardreader
zope.interface
kqueue
agility.js
gobject-introspection
exponentiation
dot-emacs
silverlight-oob
complex-event-processing
scrubyt
entitykey

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App