从脚本设置BIRT交叉表单元格的宽度 [英] Set the width of BIRT crosstab cell from script
本文介绍了从脚本设置BIRT交叉表单元格的宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从事件中设置交叉表单元格的with? 我尝试过
How can i set the with of crosstab cell from the events? I tried doing
this.width="0in";
来自onCreate()事件,但是它不起作用.我需要帮助
from onCreate() event but it does not work. I need help
推荐答案
如果您只是想隐藏单元格,则可以在交叉表脚本中尝试以下操作:
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");
}
}
这是到此帖子的实际链接.它显示了另一个用于设置实际宽度的选项: http://www.birt-exchange.org/org/forum/index.php/topic/22736-dynamically-change-column-width-cross-tab/
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/
这篇关于从脚本设置BIRT交叉表单元格的宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文