如何使用 POST 方法在 Pentaho 中调用另一个仪表板

How to call another dashboard in Pentaho using POST method

本文关键字:调用 另一个 仪表板 Pentaho 何使用 POST 方法      更新时间:2023-09-26

我正在使用开源Pentaho CDE作为我的项目的BI工具。在我的仪表板中,我使用一些年度数据来表示图表。我需要向下钻取功能来了解另一个仪表板中特定年份的数据。

如果我单击条形图中的 2008 年意味着我必须生成另一个包含有关该年份本身信息的仪表板。

function sendParameter(scene){
       var url="http://localhost:8080/pentaho/api/repos/%3Ahome%3Atiffany%3ADashboardWithAdventuresDBDrilDown2.wcdf/generatedContent";
       var vars = scene.vars;
       var c = vars.category.value;
       var v = vars.value.value;
       window.location=url+"?param_custom_state="+c;
} 

浏览器中的 URL 如下所示:

http://localhost:8080/pentaho/api/repos/%3Ahome%3Atiffany%3ADashboardWithAdventuresDBDrilDown2.wcdf/generatedContent?param_custom_state=2007

我已使用此脚本从当前仪表板调用另一个仪表板。但它是以 Get 方法的形式出现的。我不想在 URL 中显示参数

我怎样才能实现它。有没有其他方法可以在Pentaho CDE中使用Javascript进行Drill Down

由于您只需要隐藏 url 的参数,因此您可以使用 iframe 或 ajax 请求,而不是直接调用 url 位置。

类似的问题发布在这里

希望对:)有所帮助