Jump to content

how to sort column?.


shivac

Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

  Hi Anandharaj

                        Thanks for ur quick replay. Ya after generating the report, if i want to click the column header then the clicked column should be sort. 

 

Thanks in advance

Shivac

Link to comment
Share on other sites

  • 1 year later...

Hi,

 

Here is the url for the add-on product "Template Exporter"

 

http://www.jaspersoft.com/jaspersoft-template-exporter-jasperreports

 

I want to know how well the quality this product has. I noticed on the said page that this product is not supported by JasperSoft and is sold AS IS. That makes me nervous. I would appreciate if someone can reply and say they are using it and are happy about it despite the fact it is not supported.

 

Thanks!

Link to comment
Share on other sites

I am currently implementing this as follows:

1) Create a Parameter "SortBy" of type int and default it to the column 1. In my case this is a video name.

2) Add this parameter to your query: "Order by $P{SortBy}"

3) Create an input with name/value pair that corresponds to coulmun names: "Title/1", "Views/2", etc...

4) Create column header that are text and use hyperlink to create drill down report that just switches the $P{SoryBy} parameter.

So far this works for me, but I am using an input list till I can finish the drill down part.

 

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...