将参数传递给业务中心报告 URL 时出错
Error when passing parameters to report URL in business central
我有一个自定义报告,涉及 1 个数据集中的 3 个数据项,主要数据项是 "Customer" table,报告中唯一的过滤器是 "No.",如下所示
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.") { }
}
当我将 URL 与报告 ID 一起使用时,报告运行良好:
https://businesscentral.dynamics.com/<tenant id>/?report=50105
但我无法在 URL 中传递客户编号 我总是得到 "the filter string contains invalid parameters"
我按照以下 link 举例:
我尝试了以下组合,其中 none 有效:
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
我发现这在类似于 NAV 的 BC 中仍然不支持:
我所做的解决方法是创建一个包含列表部分的自定义页面并通过 URL 访问该页面。
我有一个自定义报告,涉及 1 个数据集中的 3 个数据项,主要数据项是 "Customer" table,报告中唯一的过滤器是 "No.",如下所示
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.") { }
}
当我将 URL 与报告 ID 一起使用时,报告运行良好:
https://businesscentral.dynamics.com/<tenant id>/?report=50105
但我无法在 URL 中传递客户编号 我总是得到 "the filter string contains invalid parameters"
我按照以下 link 举例:
我尝试了以下组合,其中 none 有效:
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
我发现这在类似于 NAV 的 BC 中仍然不支持:
我所做的解决方法是创建一个包含列表部分的自定义页面并通过 URL 访问该页面。