[Solved] Crosstab Data Format different between designer and sdk [message #730808] |
Thu, 29 September 2011 08:20 |
john mcteague Messages: 15 Registered: July 2009 |
Junior Member |
|
|
I have a very simple cross tab example that I have attached which is based on the classic models db.
I have one group with both Year and Month in the heirarchy and have chosen to format the month in 3 letter string format (via the Edit Date level dialog).
In the designer I get:
| 2003 |
|jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec|
Cancelled | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
....
....
When I run it using genReport.bat from the birt runtime I get the same output. But when I run it inside my bespoke application, which uses the same version of BIRT (2.6.2 in this case), I get the following:
| 2003 |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10| 11| 12|
Cancelled | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
....
....
Ive been over my bespoke code with a fine tooth comb and compared it to the classes used by genReport, but cant see any specific settings or config that may be attributable to this.
Does anyone have any ideas why the month formatting may be ignored?
[Updated on: Fri, 30 September 2011 11:16] Report message to a moderator
|
|
|
Re: Crosstab Data Format different between designer and sdk [message #730960 is a reply to message #730808] |
Thu, 29 September 2011 15:20 |
|
Are you sure that both are using the same jars? BTW are you setting a
locale?
Jason
On 9/29/2011 4:20 AM, john mcteague wrote:
> I have a very simple cross tab example that I have attached which is based on the classic models db.
>
> I have one group with both Year and Month in the heirarchy and have chosen to format the month in 3 letter string format (via the Edit Date level dialog).
>
> In the designer I get:
>
>
> | 2003 |
> |jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec|
> Cancelled | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
> ....
> ....
>
>
>
> When I run it using genReport.bat from the birt runtime I get the same output. But when I run it inside my bespoke application, which uses the same version of BIRT (2.6.2 in this case), I get the following:
>
> | 2003 |
> | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10| 11| 12|
> Cancelled | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
> ....
> ....
>
>
> Ive been over my bespoke code with a fine tooth comb and compared it to the classes used by genReport, but cant see any specific settings or config that may be attributable to this.
>
> Does anyone have any ideas why the month formatting may be ignored?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03050 seconds