Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354637 - multiple javascript string replace is broken when sorting cross tabs
Summary: multiple javascript string replace is broken when sorting cross tabs
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 3.7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-Data-inbox@eclipse.org CLA
QA Contact: Maggie Shen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-12 11:56 EDT by achan1989+1off CLA
Modified: 2011-08-22 02:56 EDT (History)
1 user (show)

See Also:


Attachments
stack trace when the report is run (8.46 KB, text/plain)
2011-08-12 11:56 EDT, achan1989+1off CLA
no flags Details
XML source for the report design (41.17 KB, application/xml)
2011-08-12 11:58 EDT, achan1989+1off CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description achan1989+1off CLA 2011-08-12 11:56:55 EDT
Created attachment 201409 [details]
stack trace when the report is run

I am trying to do custom sorting on a cross tab.  I want to sort on "test", a string data type.
If I make a sort key with data["test"].replace("10","a") then the report runs.
If I make a sort key with data["test"].replace("11","b") then the report runs.
But when I do data["test"].replace("10","a").replace("11","b") I get a ReportServiceException.

I would expect multiple replace() to work just as well as a single replace().
Comment 1 achan1989+1off CLA 2011-08-12 11:58:26 EDT
Created attachment 201410 [details]
XML source for the report design