Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341598

Summary: setUserPropertyValue does not use in web viewer
Product: z_Archived Reporter: sonic <shimizu>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: bluesoldier
Version: unspecified   
Target Milestone: 3.7.0   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description sonic CLA 2011-04-01 06:09:42 EDT
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]
Comment 1 sonic CLA 2011-04-01 06:41:57 EDT
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.
Comment 2 Xiaoying Gu CLA 2011-04-06 01:42:52 EDT
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.
Comment 3 sonic CLA 2011-04-06 19:15:16 EDT
i can make format.
thanks a lot.