Bug 459988 - Using Resource key as map value inside Data element does not work in XLSX (SpudSoft emitter)
Summary: Using Resource key as map value inside Data element does not work in XLSX (Sp...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 4.4.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-16 05:38 EST by Martin Misiarz CLA
Modified: 2015-02-16 05:39 EST (History)
1 user (show)

See Also:


Attachments
Original Java class with fixed method. (13.58 KB, application/octet-stream)
2015-02-16 05:38 EST, Martin Misiarz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Misiarz CLA 2015-02-16 05:38:16 EST
Created attachment 250820 [details]
Original Java class with fixed method.

Hello.

Description:
Current implementation of SpudSoft Excel emitter does not handle mapped values inside Data element.

Build:
4.4.1.20140916

Steps to reproduce:
1) Create a report and add a properties file to it.
2) Create a data source and data set.
3) Add a table to the report.
4) Set a Map on some column (for example: row["column"] Equals 0) and use a resource key.
4. Preview in xlsx

Actual result:
Even thought the result of expression is true, the emitter uses original value.

Expect result:
The emitter uses mapped value.

The problem is in:
uk.co.spudsoft.birt.emitters.excel.handlers.AbstractRealTableCellHandler#emitData(HandlerState, IDataContent) method.

I have created a simply fix for it, see the attachment.

Best Reegards,
Martin M