2004 IR Help Posted August 24, 2006 Share Posted August 24, 2006 By: Ljiljana Kozic - ljocko Fields from report in crosstab 2005-11-09 01:22 i have a cross tab where the column is based on the code of item. I want to put then name of the item on column header. Both code and name of item are fields in the report. My crosstab has no separate dataset. By: Lucian Chirita - lucianc RE: Fields from report in crosstab 2005-11-09 01:34 If you want to use a value from the report in a crosstab header or cell, you'll have to pass it as a crosstab parameter. Check the ShipmentsReport sample, the crosstab has a parameter. HTH, Lucian By: Ljiljana Kozic - ljocko RE: Fields from report in crosstab 2005-11-09 01:47 I did it, but now i have the same value in column Header for all columns whitch is name of the item in the last column. By: Lucian Chirita - lucianc RE: Fields from report in crosstab 2005-11-09 02:42 Sorry, I didn't understand your scenario first time. In your case you can do one of the following: - create a data class that has code and name members and use new Item($V{itemCode}, $V{itemName}) as the bucket expression and the do $V{colGroup}.getName() in the crosstab header. The data class will have to implement java.lang.Comparable (you'll probably want to compare the codes). - put the code and name in a list of length 2 and use the list as bucket expression. You can get then the code and name from the list. - create another column group (sub group of the one grouping by code) having the item name as bucket expression and use this group's header. This might be slower than the previous solutions. - collect a code to name mapping and pass it as parameter to the crosstab. HTH, Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now