English 中文(简体)
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.





相关问题
How do I get the details of a SOAP fault in Dynamics AX?

I m currently communicating with an external SOAP service within AX using the a service reference and the generated .NET class. Everything is working out greatly with the exception of how to handle ...

What is the meaning/use of #geplant in an assignment?

I m just starting with X++ (Java background) and I found a code like #XYZBatchScheduling ; ... order.Status = #geplant; order is a record to a table with a Status column. My question: what is the ...

Debugging in Dynamics AX

I m facing some troubles still while learning, so I guess it tends to get worse once I play with the big kids: warnings in dynamics aren t as precise and informative as VS s, there are no mouse-over ...

Syntax error in Ax

static void Job(Args _args) { int number=10; do { print (strfmt("current number = %1", number)); number --; }while (number != 0) } This is a job just for ...

Is semicolon really needed after declarations in x++?

As said in the book Microsoft Dynamics AX 2009 Programming: Getting Started it´s needed to put semicolons after declarations in x++: The extra semicolon after the variable declaration is ...

How to show a row total amount by group CG Group in Report

I am using Axapta 3.0 with language X++. I am making a report based on available report. The new report only shows a total row by group CG Group instead of showing all detail row as old report. Exam:...

How do i write a txt file using Microsoft Dynamics AX?

I want to write a txt file (just like i d do in visual studio with c# using string writer and everything, with which i m already very familiar) what class and method do i use? how does it work? ...

Axapta Validation Class

I ve written a method to handle regex validation in AX2009. Problem is that it always returns false, no matter what the expression or input string. Returns no errors, just false Mind taking a ...

热门标签