Dynamics AX 2009 - 修改从 ProjTableWizard 到 smmActivities 的插入?

发布于 2024-08-30 18:47:03 字数 316 浏览 2 评论 0原文

我是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

朕就是辣么酷 2024-09-06 18:47:03

要找到创建 smmActivities 记录的代码,请在 smmActivities.insert() 方法中设置断点,然后运行 ​​ProjTableWizard。弹出调试器后,您可以查看堆栈跟踪以了解从何处调用插入。

使用 ProjTableWizard 从模板创建项目时,会在类方法 HierarchyTemplateCopying.copyActivity() 中创建 smmActivities 记录。看起来 Purpose 字段只是从与模板关联的 smmActivities 记录中复制而来。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文