Pentaho single Dashboard for multiple reports using ajax

空扰寡人 提交于 2019-12-06 14:41:09

问题


I have made multiple copies of dashboard for different reports to render. so url changes for each report in the browser and whole page needs to be refreshed.

Day before yesterday i came to know that any component can be refreshed [ Refresh all components of Pentaho CDE dashboard ]

I wanna know if i can use single pentaho dashboard to render different reports over single reporting component, using ajax calls by clicking different buttons/links?

I feel there should be some way arround this.


回答1:


Okay, after so many attempts, i have figured it out that i can use single prpt component and update the action on button/anchor click, and then update the prpt component.

I tried this:

Dashboards.getComponent('render_prpt').action = "another_report";

Dashboards.getComponent('render_prpt').update(); 

and it worked :)



来源:https://stackoverflow.com/questions/36602251/pentaho-single-dashboard-for-multiple-reports-using-ajax

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!