Dynamics AX 2009 .NET 业务连接器

发布于 2024-09-06 23:28:11 字数 154 浏览 4 评论 0原文

我想知道如何使用 Dynamics AX 2009 .NET Business 连接器中的模板创建新的项目记录。我知道如何使用 Dynamics AX 2009 执行此操作。是否有可以调用的静态方法?我还想在保存之前向用户显示新项目信息。这可能吗?

请帮忙

谢谢

I want to know how to create a new item record using a template in Dynamics AX 2009 .NET Business connector. I know how to do this using Dynamics AX 2009. Is there a static method that i can call? I also want to show the new item information to the user before saving it. Is this possible?

Please help

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

情深缘浅 2024-09-13 23:28:11

查看 Casperkamal 的博客文章 在 Dynamics Ax 4.0 的代码中使用记录模板。正如标题明确指出这适用于 Axapta 4.0,但我没有理由相信它不适用于 AX 2009。

摘录:

sysRecordTemplate = SysRecordTemplate::newCommon(inventTable);
sysRecordTemplate.parmForceCompanyTemplate('Feed'); //Template name as string
sysRecordTemplate.createRecord();

您必须将此 X++ 转换为目标语言中的 Business Connector 调用。

Have a look at Casperkamal's blog post Using record templates in code for Dynamics Ax 4.0. As the title explicitly states this works for Axapta 4.0, but I have no reason to believe it does not work in AX 2009.

Excerpt:

sysRecordTemplate = SysRecordTemplate::newCommon(inventTable);
sysRecordTemplate.parmForceCompanyTemplate('Feed'); //Template name as string
sysRecordTemplate.createRecord();

You have to convert this X++ to the Business Connector calls in your target language.

失去的东西太少 2024-09-13 23:28:11

我要做的是在 X++ 中创建一个类(因为那是我们的栖息地:-)),并让该类成为“控制器”来执行您想做的事情。

然后只需确保您可以通过创建可以调用的静态方法来调用您创建的逻辑。这样,您就可以使用业务连接器,并且您的逻辑包含在 Axe 中。

(为了在用户插入之前向用户显示数据,您还可以提供一种收集数据并将其传递给业务连接器的方法。(您可以为此创建一个类似数据契约的类)

What I would do is create a class inside X++ ( because that is our habitat :-) ) and let that class be the 'controller' for doing what you want to do.

Then just make sure you can call the logic you created by creating a static method that you can call. That way, you can use the business connector and you logic is contained in Ax.

(To show data to users before they insert, you could also provide a method that collects the data and passes it to the business connector. (You could create a data contract-like class for this)

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