【发布时间】:2021-02-14 06:03:30
【问题描述】:
我对 SO、Pentaho 完全陌生,并且对 js 和 jquery 的知识(非常)有限。
我需要一个简单的要求:每当我的组合框发生变化(2 个值:预算或估计)时,我需要重新加载我的图表。
到目前为止我已经尝试过:
在Components panel,我添加了一个
-简单参数
--名称:param_budget_or_estimate
--属性值:预算
-选择组件
--名称:BudgetEstimate_Select
--参数:budget_or_estimate
--数据源:budgetestimate_query
-CCC饼图
--名称:piechart_linecosts
--Listeners: 添加了 param_budget_or_estimate
--参数:arg param_budget_or_estimate, value param_budget_or_estimate
--数据源:budgestimate_piechart
在Datasrouces panel,我添加了一个
-sql over sqlJndi 查询budgetestimate_query,名为budgetestimate_query,返回一个
select distinct budget_or_estimate from budget_or_estimate;
-sql over sqlJndi 查询名为budgetestimate_piechart,返回一个
SELECT COST_LINE_NAME
,amount
FROM VI_LINE_COSTS_PIE_CHART
WHERE budget_or_estimate=${param_budget_or_estimate}
;
然而,我启动了我的仪表板,但更改组合框并没有改变。
我做错了什么?
提前致谢!
【问题讨论】:
标签: charts combobox pentaho onchange