我通过这个查询创建了一个下拉列表:
Month = {!`` SELECT DISTINCT monthCreate FROM `/mongo/ReportDB/TMCMSReportData` where idSubCategory=10 ORDER BY monthCreate``}
我得到了下拉列表的正确值。然后我添加以下查询:
select count(*) as count,dayCreate from `/mongo/ReportDB/TMCMSReportData` where monthCreate = :Month and idSubCategory=10 group by dayCreate
只有当第一个查询返回多个值时,报告才能完美运行。如果只有一个值,则返回错误
变量没有绑定 :Month
我猜问题是 Slamdata 只触发降价的“值更改”事件,即使我们只有一个值也无法监听。这是对的吗?有什么建议吗?谢谢!