Dynamics AX 2009 - 修改从 ProjTableWizard 到 smmActivities 的插入?
我是 AX 新手,我需要对 ProjTableWizard 表单代码进行修改,但无法找到需要进行更改的位置。本质上我需要做的是在创建子项目时修改向导过程的部分。我需要弄清楚如何将一行插入到 smmActivities 表中,以便我可以修改“Activity Purpose”字段(在 ProjTable 表单中使用其父项目的 Activity Purpose 作为前缀),然后单击“Finish”按钮ProjTableWizard 表单。到目前为止,我无法弄清楚 ProjTableWizard 表单如何触发插入到 smmActivities 中(以及如何从向导中填充 Purpose 字段)。任何帮助将不胜感激!谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要找到创建
smmActivities
记录的代码,请在smmActivities.insert()
方法中设置断点,然后运行 ProjTableWizard
。弹出调试器后,您可以查看堆栈跟踪以了解从何处调用插入。使用
ProjTableWizard
从模板创建项目时,会在类方法HierarchyTemplateCopying.copyActivity()
中创建smmActivities
记录。看起来Purpose
字段只是从与模板关联的smmActivities
记录中复制而来。To locate the code that is creating
smmActivities
records, set a breakpoint in thesmmActivities.insert()
method, then run theProjTableWizard
. 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, thesmmActivities
records are created in the class methodHierarchyTemplateCopying.copyActivity()
. It looks like thePurpose
field is simply copied from thesmmActivities
records associated with the template.