Set the width of BIRT crosstab cell from script

瘦欲@ 提交于 2019-12-12 03:57:17

问题


How can i set the with of crosstab cell from the events? I tried doing

 this.width="0in";

from onCreate() event but it does not work. I need help


回答1:


If you're just trying to hide the cell, you might try something like this, in your crosstab script:

function onCreateCell( cellInst, reportContext )
{
    if (cellInst.getCellID() == cellID#){
        cellInst.getStyle().setDisplay("none");
    }
}

Here's a link to the actual post that this comes from. It shows another option, for setting the actual width: http://www.birt-exchange.org/org/forum/index.php/topic/22736-dynamically-change-column-width-cross-tab/



来源:https://stackoverflow.com/questions/12792984/set-the-width-of-birt-crosstab-cell-from-script

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