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

Bug 300991

Summary: css support for number/date/string format
Product: z_Archived Reporter: Daniel Zuberbühler <dani>
Component: BIRTAssignee: Birt-Report-inbox <Birt-Report-inbox>
Status: RESOLVED WONTFIX QA Contact: Xiaoying Gu <bluesoldier>
Severity: enhancement    
Priority: P5 CC: bluesoldier, rlu, whe, wyan
Version: unspecified   
Target Milestone: 3.7.0   
Hardware: All   
OS: All   
Whiteboard:

Description Daniel Zuberbühler CLA 2010-01-27 08:57:44 EST
Build Identifier: 2.5.1

Support for numberFormat / dateFormat / stringFormat in css styles would be helpful.

I have reports which contain dozens of tables and each table can contain about a dozen detail fields with numbers. I want to define a number format for these number fields. As it is now I have to specify the format for each and every number field. If I have to change the format, I have to adapt the format specification of each and every field again.

With the visual report editor I can specify a format only at data field level, but not on a higher level. In the xml view I can copy a format definition and apply it to the table element. The table cells and the contained data fields inherit the format from the table element. This gives me some relief, but still it is not possible to do this in the visual editor, only in the xml editor.

Even better would be if I can specify a format at report or page level. I also tried this in the xml tab of the report editor, but when I try to switch to a different tab it gives me an error that I have to correct the xml first.

Finally I would like to be able to specify the format in an external css file. For now I get a Error.StyleSheetParserException.PROPERTY_NOT_SUPPORTED


Reproducible: Always
Comment 1 Rick Lu CLA 2010-04-13 05:08:30 EDT
BIRT used SAC to support CSS properties.
Comment 2 Xiaoying Gu CLA 2011-03-15 21:11:33 EDT
BIRT supports data formatting in BIRT style. User should be able to define the required data format in a style and applied at table/ or even report lavel.

Please verify the data format is supported in BIRT style. 

we don't have to support data format in css.