我想创建一个报告并按以下两个参数对其进行过滤;
参数值为;
Call_type = "All" , "Sale" , "Buy"
and
Call_status = "All" , "Sold" , "Pending" , "None" , "Closed"
我使用了下面的公式;
(
if {?type} <> "All" then
{cars_call_log.type} = {?type}
else
true;
);
(
if {?status} <> "All" then
{cars_call_log.status} = {?status}
else
true;
);
但它仅适用于第一个 If 条件。它不适用于这两种情况。
我想让它像这样,按第一个参数过滤,然后(过滤记录)--> 按第二个参数过滤。
最佳答案
满足您需求的正确记录选择公式语法:
(
if {?type} <> "All" then
{cars_call_log.type} = {?type}
else
true
)
AND
(
if {?status} <> "All" then
{cars_call_log.status} = {?status}
else
true
)
关于crystal-reports - Crystal Reports 记录选择中的多个 if 条件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21438922/