我有一个自定义报告,其中包含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://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访问该页面。