简体   繁体   English

Pentaho CDE弹出窗口未显示表格

[英]Pentaho cde popup not showing table

I have a Pentaho cde dashboard with a popup component to show a table. 我有一个带有弹出组件的Pentaho cde仪表板,用于显示表格。 This popup works ok if I load the table when the dashboard is generated. 如果在生成仪表板时加载表,则此弹出窗口可以正常工作。 However, I want to change the query called depending on which figure is clicked on the main dashboard page. 但是,我想根据在主仪表板页面上单击哪个图形来更改调用的查询。 The table consists of detail records retrieved from a database using a cda query. 该表包含使用cda查询从数据库检索的详细记录。

When I change a parameter containing the dataAccessId when calling the popup it does not work. 当我在调用弹出窗口时更改包含dataAccessId的参数时,它不起作用。 The popup fails to appear. 弹出窗口无法显示。

Anyone have any ideas how to get around this? 任何人有任何想法如何解决这个问题?

This works: 这有效:

function f(e){
    render_Popup_Details.popup($(e.target));
} 

This doesn't work: 这不起作用:

function f(e){
    Dashboards.fireChange('flag_popup', 'flag_10');
    render_Popup_Details.popup($(e.target));
} 

Did you try updating the table before activating the popup? 在激活弹出窗口之前,您是否尝试过更新表?

function f(e){
    Dashboards.fireChange('flag_popup', 'flag_10');

    Dashboards.update([render_your_table_component_name]);

    render_Popup_Details.popup($(e.target));
}

If you're using RequireJS, then: 如果您使用的是RequireJS,则:

function f(e){
    this.dashboard.setParameter('flag_popup', 'flag_10');

    this.dashboard.getComponent('render_your_table_component_name').update();

    this.dashboard.getComponent('render_Popup_Details').popup($(e.target));
} 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM