Dynamics AX:如何从采购订单中打开附加到采购申请的 docuview 文档?

发布于 2024-07-18 09:00:20 字数 267 浏览 3 评论 0原文

编辑:目标是使处理采购订单的员工可以使用附加到采购申请的报价文档> 直接以一种简单的方式,无需导航回申请文档本身。

我想在采购订单屏幕中使用 DocuRef::openDocHandling 方法,而不复制链接到采购申请的文档。 我想通过一个按钮来执行此操作,我将添加到采购订单屏幕; 我确实知道与采购订单关联的申请编号。

提前谢谢了。

Edit: The objective is to make quote documents that were attached to Purchase Requisitions available to staff that processes the Purchase Orders directly an in an easy way without having to navigate back to the requisition document itself.

I would like to use the DocuRef::openDocHandling method from within the Purchase Order screen without duplicating the document that was linked to the Purchase Requisition. I would like to do this from a button that I will add to the Purchase Order Screen; I do know what the Requisition Number is that is linked to the Purchase Order.

Many thanks in advance.

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

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

发布评论

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

评论(2

一瞬间的火花 2024-07-25 09:00:20

在 PurchTable 表单中添加带有(活动)采购申请的数据源 VendPurchOrderJour。 您不必显示数据源的任何字段,因此您可以使用 OnlyFetchActive 属性。 然后创建表单方法“docCursor”,告诉DocuView表单哪条记录是活动记录。

public Common docCursor()
{
    return reqDoc ? vendPurchOrderJour : purchTable;
}

创建“clicked”方法的按钮:

void clicked()
{
    reqDoc = true;
    if (!infolog.docu().isDocuViewSet())
        infolog.docu().note(element);
    else
        infolog.docu().setActive();
}

清除PurchTable“active”方法中的“reqDoc”。

此解决方案不允许采购行上的文档,您可能必须像这样扩展解决方案(行是表单组):

public Common docCursor()
{
    return reqDoc ? vendPurchOrderJour : 
                    line.contains(element.selectedControl()) ? purchLine :
                    purchTable;
}

In form PurchTable add a datasource VendPurchOrderJour with the (active) purchase requistion. You do not have to display any of the fields of the datasource, so you might use the OnlyFetchActive property. Then create the form method "docCursor", to tell the DocuView form which record is the active one.

public Common docCursor()
{
    return reqDoc ? vendPurchOrderJour : purchTable;
}

Create the button with a "clicked" method:

void clicked()
{
    reqDoc = true;
    if (!infolog.docu().isDocuViewSet())
        infolog.docu().note(element);
    else
        infolog.docu().setActive();
}

Clear the "reqDoc" in the "active" method of PurchTable.

This solution does not allow for documents on purchase lines, you may have to expand the solution like this (line is a form group):

public Common docCursor()
{
    return reqDoc ? vendPurchOrderJour : 
                    line.contains(element.selectedControl()) ? purchLine :
                    purchTable;
}
ぶ宁プ宁ぶ 2024-07-25 09:00:20

如果您想要一个按钮来打开文档视图(如果未打开)并在打开时激活,那么您单击的方法应如下所示:

void clicked()
{
    if (!infolog.docu().isDocuViewSet())
        infolog.docu().note(element);
    else
        infolog.docu().setActive();
}

您的问题不清楚您的目标。
你想要什么?
请展开。

If you want a button to open the document view if not open and activate if open, then your clicked method should look like this:

void clicked()
{
    if (!infolog.docu().isDocuViewSet())
        infolog.docu().note(element);
    else
        infolog.docu().setActive();
}

Your question is unclear on your objective.
What do you want?
Please expand.

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