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

Bug 354637

Summary: multiple javascript string replace is broken when sorting cross tabs
Product: z_Archived Reporter: achan1989+1off
Component: BIRTAssignee: Birt-Data-inbox <Birt-Data-inbox>
Status: NEW --- QA Contact: Maggie Shen <lshen>
Severity: normal    
Priority: P3 CC: bluesoldier
Version: 3.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
stack trace when the report is run
none
XML source for the report design none

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