x++


Dynamics AX 2009 - Modify insert into smmActivities from ProjTableWizard?


I am an AX newbie, and I need to make a modification to the ProjTableWizard form code and have not been able to locate where I need to make the change. Essentially what I need to do is modify the part of the Wizard process when creating a sub-project. I need to figure out how a line is inserted into the smmActivities table, so that I can modify the “Activity Purpose” field (prefix it with the Activity Purpose of its parent Project from the ProjTable Form) following the “Finish” button click on the ProjTableWizard form. So far I have been unable to figure out how the ProjTableWizard form is triggering this insert into smmActivities (and how the Purpose field is being populated from the Wizard). Any help would be greatly appreciated! Thanks
To locate the code that is creating smmActivities records, set a breakpoint in the smmActivities.insert() method, then run the ProjTableWizard. Once the debugger pops up, you can view the stack trace to see where the insert was called from.
When using the ProjTableWizard to create a project from a template, the smmActivities records are created in the class method HierarchyTemplateCopying.copyActivity(). It looks like the Purpose field is simply copied from the smmActivities records associated with the template.

Related Links

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?
X++ loop through lines in grid control
Concatenating row values in x++
How do you access a macro in the AOT macro node?
How can I set the Backgoundcolor of an AX2012 Action Pane Button
How to Edit address using X++ in AX 2012
Number sequence issue Ax 2012?

Categories

HOME
oracle12c
cobalt
hyperlink
linkedin
telegram
jmeter
css3
rdbms
mjml
yandex
entity-framework-core
switch-statement
rds
emscripten
rcloud
accessibility
spin
pattern-matching
fabric.io
endeca
ibeacon-android
github-enterprise
project-intu
why3
angular-dart
onedrive-api
flash-player
cumulocity
parameter-passing
capistrano3
glyphicons
chargify
vuejs
easyphp
asciidoctor-pdf
question2answer
roslyn
aggregation
perlbrew
tiki-wiki
spotipy
sqsh
kudu
hibernate-validator
r-grid
papaparse
slacktextviewcontroller
modernizr
z-notation
password-protection
android-softkeyboard
portforwarding
microsoft-metro
glm-math
congestion-control
flask-login
strftime
procfile
launchctl
podscms
google-cse
page-replacement
java-6
oracleclient
webjars
resourcemanager
watch-os-2
scaffolding
lean
bizagi
kiosk
sklearn-pandas
yajsw
invoke-sqlcmd
mobiledoc-kit
rasterize
morton-number
rate-limiting
dock
lasso
mirror
cwrsync
beatsmusic
spy++
iso-prolog
teaspoon
wcm
gii
authlogic
gae-quotas
rfc5322
mysql-error-1044
scrypt
oocss
gpars
epiceditor
octal
chart-director
android-sdk-2.3
device-width
robotlegs
pyunit
boost-signals
josql
relative
convention
node-redis
expression-blend-4
screen-size
webdev.webserver
pylucene
uipagecontrol
load-time
silent
complex-event-processing
commercial-application

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