Bug 186866 - Cross tab - Sorting operation fails
Summary: Cross tab - Sorting operation fails
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.2.0   Edit
Hardware: PC All
: P1 normal (vote)
Target Milestone: 2.2.0 RC0   Edit
Assignee: Birt-Data-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-14 15:16 EDT by Rima Kanguri CLA
Modified: 2007-05-17 22:49 EDT (History)
3 users (show)

See Also:


Attachments
Sample report design (46.01 KB, application/octet-stream)
2007-05-14 17:21 EDT, Rima Kanguri CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rima Kanguri CLA 2007-05-14 15:16:57 EDT
Please view the attached report.
I have set SORT order = DESC for row["Year"] field.

It does not work.
Comment 1 Rima Kanguri CLA 2007-05-14 17:21:31 EDT
Created attachment 67142 [details]
Sample report design
Comment 2 Rima Kanguri CLA 2007-05-14 17:22:27 EDT
Assigning to Zhiqiang, to investigate which area the issue is in?
Comment 3 Rima Kanguri CLA 2007-05-15 00:54:54 EDT
If this needs UI changes, please fix the back end and reassing to UI team with the description of hte changes required.
Comment 4 Lin Zhu CLA 2007-05-15 03:44:14 EDT
We should use dimension["Group3"]["Year"] as expression rather than row["Year"].

Meanwhile we consider support "data" java script object in sort, providing that expression can be finally explained as a dimension reference.
Comment 5 Lin Zhu CLA 2007-05-15 09:29:00 EDT
Fixed.
Comment 6 Rima Kanguri CLA 2007-05-15 19:56:01 EDT
Does this required UI team to do any changes, Reopening the bug Lin to make sure UI is setting the value the right way
Please reassign to UI team if UI change is needed.
Comment 7 Lin Zhu CLA 2007-05-15 21:02:53 EDT
The UI related bug 183098 has already been fixed.However, as UI still works on sort build, which is somewhat related to this bug. Reassign to UI to see if they need any further changes.
Comment 8 Wang Qiangsheng CLA 2007-05-15 22:11:46 EDT
This is a typical case that why shall we need the api team to generate the right expression.
Xiong, could you make sure of this?
Comment 9 Rima Kanguri CLA 2007-05-16 00:33:43 EDT
We need to fix this bug for RC0.
If you refer to the latest excel sheet, we need to maek sure Cross tab sort and feature work in RC0
Comment 10 Rima Kanguri CLA 2007-05-16 00:36:44 EDT
Qiangsheng,

Please ignore comment #4 from Lin Zhu.
We had a discussion with LIn, and only binding column name can be used in SORT key.

I have reassigned to UI team, to make sure we are using the correct expression syntax. 
Comment 11 Wang Qiangsheng CLA 2007-05-16 00:37:54 EDT
If we need ignore the comments #4, what's the right expression then?
Comment 12 Wang Qiangsheng CLA 2007-05-16 00:39:05 EDT
Do you mean expression like row["Year"]?
Comment 13 Chen Chao CLA 2007-05-16 00:53:55 EDT
I have fixed the bug 183098 tomorrow night, but the latest builder will be generated at today. The expression is should data["Year"], but not row["Year"].  
Comment 14 Lin Zhu CLA 2007-05-16 01:16:21 EDT
In sort expression, we all user to use "data" script object and "dimension" script object, the latter, however, would not directly expose to user as per agreement reached this morning.

So, generally, GUI will create expression like data["Year"] in sort definition.

Please note that "row" script object is not supported in xtab. So any reference to  "row" would be invalid.
Comment 15 Chen Chao CLA 2007-05-17 05:27:29 EDT
It's the same as 186866.
Comment 16 Chen Chao CLA 2007-05-17 05:28:47 EDT
It duplicate of bug 187486.

*** This bug has been marked as a duplicate of bug 187486 ***
Comment 17 Chen Chao CLA 2007-05-17 05:31:01 EDT
It duplicate of 183098
Comment 18 Rima Kanguri CLA 2007-05-17 14:32:08 EDT
With the latest build - May 17 2007, SORT still fails.
This bug is not duplicate of 183098 ( which is related to filter )

Comment 19 Rima Kanguri CLA 2007-05-17 17:13:54 EDT
There are two issues here in May 17 build.
(1) UI first needs to make sure the right expression is generated i.e data["Year"] is generated in SORT key instead of row["Year"]

(2) Data Engine - Even if I change the expression to data["Year"] manually, it still fails.
Comment 20 Wang Qiangsheng CLA 2007-05-17 22:22:03 EDT
Yes, gui generates the right expression.
Assign to DTE for item 2 of Rima.(In reply to comment #19)

> There are two issues here in May 17 build.
> (1) UI first needs to make sure the right expression is generated i.e
> data["Year"] is generated in SORT key instead of row["Year"]
> 
> (2) Data Engine - Even if I change the expression to data["Year"] manually, it
> still fails.
> 

Comment 21 Lin Zhu CLA 2007-05-17 22:49:21 EDT
Correct a tiny error in DtE which introduced by using new ICubeSortDefinition api. This bug is fixed.