我有一个自定义报告,涉及 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