将参数传递给业务中心中的报告URL时出错

问题描述 投票:0回答:1

我有一个自定义报告,其中包含1个数据集中的3个数据项,主要数据项是“客户”表,报告上唯一的过滤器是“否”。如下所示

report 50105 CustomerHistory
{
    Caption = 'Customer Sales History';
    UsageCategory = Administration;
    ApplicationArea = All;
    RDLCLayout = 'CustomerHistoryRpt.rdlc';
    WordLayout = 'CustomerHistoryRpt.docx';

    dataset
    {
        dataitem(Customer; Customer)
        {
            RequestFilterFields = "No.";
            column(CustomerNumber; "No.") { }
            column(Name; Name) { }
            column(Balance; "Balance (LCY)") { }
            column(E_Mail; "E-Mail") { }
            column(Phone_No_; "Phone No.") { }
        }

当我使用带有报告ID的URL时,报告运行良好:

https://businesscentral.dynamics.com/<tenant id>/?report=50105

但是我无法在URL中传递客户编号,我总是得到“过滤字符串包含无效参数”

我点击了以下示例链接:

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-web-client-urls

我尝试了以下组合,但都不起作用:

https://businesscentral.dynamics.com/<tenant id>/?report=50105&filter=%27No.%27%20IS%20%271452%27

https://businesscentral.dynamics.com/<tenant id>/?report=50105&filter=%27Customer.No.%27%20IS%20%271452%27

https://businesscentral.dynamics.com/<tenant id>/?report=50105&filter=%27CustomerNumber%27%20IS%20%271452%27

https://businesscentral.dynamics.com/<tenant id>/?report=50105&filter=%27Customer.CustomerNumber%27%20IS%20%271452%27

https://businesscentral.dynamics.com/<tenant id>/?report=50105&filter=%27No.%27%20:%20%271452%27
report microsoft-dynamics dynamics-business-central
1个回答
0
投票

我发现类似于NAV的BC省仍不支持此功能:

https://docs.microsoft.com/en-us/dynamics-nav/feature-limitations-of-the-microsoft-dynamics-nav-web-client#Report

我要做的解决方法是创建一个包含列表部分的自定义页面,并通过URL访问该页面。

© www.soinside.com 2019 - 2024. All rights reserved.