【发布时间】:2014-03-21 07:14:32
【问题描述】:
我想更改在 BIRT 中用于分组目的的表行中的数据。我知道如何检索该值,但我想更改渲染值,正是我想转换字符串。我在官方页面here上查看了一个示例:
if (this.getRowData().getExpressionValue(3) > 100)
this.getStyle().backgroundColor="red";//This will only change the row instance
这有助于更改文本的样式,但我想更改文本而不是样式
var t = this.getRowData().getExpressionValue("row[colname]");
t= t.toUpperCase(); //any string transformation
this.valueExpr = t; //this is not working
那么如何将新字符串分配给行。我在该行的 onRender 事件中编写此脚本。但它不起作用。有什么想法吗?
【问题讨论】:
-
这个问题也发布在actuatedeveloper.actuate.com/community/forum/index.php?/topic/…
-
是的,我就是在那里问同样问题的人。
标签: javascript event-handling birt