Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341598 - setUserPropertyValue does not use in web viewer
Summary: setUserPropertyValue does not use in web viewer
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.7.0   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-01 06:09 EDT by sonic CLA
Modified: 2011-05-26 13:32 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.