x++


How to tell what module has called the program


When using [Dynamics] [AX] is there a system function that can be used
to determine which module the user was in when the program was called?
I want to execute different X++ lookup code for employee,
for the ProjJournalTable form, but this would
be a different employee-list depending on which module is calling
the form. Hope that's clear! - Maeve
There is no concept of "module" in the execution context of a form or report. Therefore there is no system function to return that.
How to get around context dependant behaviour, where the behaviour depends on the caller?
The usual method in say a lookup form is to inspect element.args() for one of:
element.args().dataset() and/or element.args().record()
element.args().parmEnumType() and element.args().parmEnum()
element.args().parm()
element.args().caller()
element.args().parmObject()
Take a look on the form LedgerAccountLookup for example, you can find many more by searching for "args" in form methods named "init".

Related Links

How to lookup into another table using EDT AX 2012
Set a Date Value to a Date Field in AX2012
Determine if a job is running in X++ code
Dynamics AX 2012 parsing Int32 to table field integer
Cancel Sales order packing slip through x++
Transferring open account records between customers
How to make sure that a form is only opened once?
Extend system menu in Dynamics AX 2012?
How to show selected items of certain table on the different table in Dynamics AX 2012?
AllowEdit doesn't work properly in Dynamics AX
AX 2012 how to set args record datasource in X++
Clients seem to be running old (buggy) code after XPO project import
Number sequence AX 2012
SSRS MS words report with page break
How can you get a detailed error descriptions in Dynamics AX?
How to get the length of an array?

Categories

HOME
search
assembly
static
graphics
spin
renjin
flash-player
heat
dynamic-sql
null-pointer
aws-sdk
google-content-api
replication
inno-download-plugin
angular-routing
qliksense
epsilon
strongname
interbase
fragment-backstack
delimiter
intersystems-cache
tpm
alm
aws-codecommit
kodi
clickjacking
installshield-le
pdw-file-browser
video-capture
raft
latitude-longitude
google-knowledge-graph
timing
tex
connection-pool
google-data-api
odoo-website
datacachefactory
postgresql-8.4
naming
plr
vaadin-charts
httr
x++
fwrite
pair-programming
skin
type-theory
template-toolkit
cd-burning
ampps
node-request
simplepie
vulcanize
wso2developerstudio
phpwebsocket
createprocess
aspen
mobiledoc-kit
directdraw
linklabel
visual-sourcesafe-2005
evolus-pencil
ember-cli-rails
eoferror
rdflib
pyobjc
dbaccess
boost-program-options
browserify-shim
contrast
teaspoon
appserver
genymotion-call
wcm
jama
xml-dsig
vbe
gwt-openlayers
neos-server
cardreader
android-sdk-2.3
curb
onmousemove
faye
inkcanvas
multiplexing
jquery-tools
google-ajax-api
jqote
tournament
dataform
unattended-processing
twitterizer
diagrams
resharper-6.0
cruisecontrol.rb
globals
non-clustered-index
message-passing
spread
strtod
wcf-instancing
dsl-tools
fdf
lemmatization
xslcompiledtransform

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App