Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Sorting data in a Jazz Data Set for a BIRT report..

Is there a away to sort data in a jazz dataset before a BIRT report is built from that data set. For Example: I would like to see the returned data set sorted by a Date/timestamp.
If this is not possible in the current version of RTC/Jazz can this feature be included in a future version?
Thanks in advance... O. Frank

1

0 votes



3 answers

Permanent link
Is there a away to sort data in a jazz dataset before a BIRT report is built from that data set. For Example: I would like to see the returned data set sorted by a Date/timestamp.
If this is not possible in the current version of RTC/Jazz can this feature be included in a future version?
Thanks in advance... O. Frank


Hey Frank - you can sort in bits by using this script on your datasets beforeOpen script:
queryString = this.queryText;
queryString = queryString +
" order by " +

reportContext.getParameterValue("WI_ID") +
" " +
reportContext.getParameterValue("asc");
this.queryText = queryString ;

or you can click the table in your layout and then click the sorting tab in the properties editor to sort the final result.

0 votes


Permanent link
I tried to modify this.queryText, but it seems do not affect the report what so ever.

Is there a away to sort data in a jazz dataset before a BIRT report is built from that data set. For Example: I would like to see the returned data set sorted by a Date/timestamp.
If this is not possible in the current version of RTC/Jazz can this feature be included in a future version?
Thanks in advance... O. Frank


Hey Frank - you can sort in bits by using this script on your datasets beforeOpen script:
queryString = this.queryText;
queryString = queryString +
" order by " +

reportContext.getParameterValue("WI_ID") +
" " +
reportContext.getParameterValue("asc");
this.queryText = queryString ;

or you can click the table in your layout and then click the sorting tab in the properties editor to sort the final result.

0 votes


Permanent link
The Jazz Data Source does not support sorting. You would have to do the sort the data after fetching it.

The solution proposed above may only work for a JDBC Data Source that uses SQL.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Feb 10 '09, 10:03 a.m.

Question was seen: 7,318 times

Last updated: Feb 10 '09, 10:03 a.m.

Confirmation Cancel Confirm