Community
Participate
Working Groups
Build Identifier: 20110218-0911 i make birt report design file on eclipse. i set table group. insert aggregation for sum data. and i set format at Script:onCreate this.setDisplayValue(Formatter.format( this.getValue(),"#,##0.00") ); but it didn't work on [1 in web viewer]. it work on [preview or 3 as html or 4 as pdf or 7 as xls ] Reproducible: Always Steps to Reproduce: 1.make table 2.make table group 3.set aggregation for column 4.set format logic on script 5.view on [1 in web viewer]
temporarily as i set data for global variable in script. i make [dynamic text] on the same column. and i set the global variable of the value at [dynamic text]. this is not a solution. however, i make format.
this.setDisplayValue(Formatter.format( this.getValue(),"#,##0.00") ); This script should be added to onRender method. Preview as html/pdf/xls is using the runandrender to create the report which does not create the document. So the setDisplayValue works in the onCreate method. Actually the setDisplayValue should be disabled in onCreate method.
i can make format. thanks a lot.