Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在使用这个:
params["RPBla"].join(",")
作为(存储过程)数据集的默认参数。这可以正常工作,并将报告参数 RPBla 中的一个或多个选定值发送到存储过程,例如:
1,2,3
不幸的是,如果用户没有选择任何值,这将不起作用。任何想法做什么。启动 BIRT 应该发送 NULL 而不是例如 1、2、3。
测试这个默认值表达式中的内容怎么样,比如:
if (params["RPBla"].value==null){ null; }else{ var list=params["RPBla"].join(","); list.length>0 ? list : null; }
当然,您可以在此处返回所需的任何内容而不是“null”,例如返回一个特定值,警告存储过程应该禁用过滤器。