all groups > sql server reporting services > april 2005 >
You're in the

sql server reporting services

group:

Sorting?


Sorting? Becker
4/8/2005 1:19:02 PM
sql server reporting services:
I see how I can sort data in a table or list, but how do I make it so users
can simply click the column header to sort? Is this functionality not
available?

I have tried exporting to excel and find that my columns are merged together
for the table and I get an error when I try to sort in Excel.

Seems pretty handicapped to me, am I missing something?
Re: Sorting? Bruce L-C [MVP]
4/8/2005 10:38:24 PM
There are ways around the sorting issue but it takes effort (basically you
create links at the top that when you click on it you re-run the report with
the new sorting. The next version will have sorting built in.

As far as Excel, I just fought through this myself. What is happening is if
there is anything above your table then when it exports it to Excel it
merges cells together which messes up doing any sorting. Here is what I did.
I create a copy of the report that I take out anything above the table (no
extra textboxes). I hide the report because no one needs to use it directly.
Then I create a link at the top of the report that uses jump to URL where I
pass in the parameters of the current report to the copy and I specify to
render it as Excel. You now end up with the data they were just looking at
but in a format that is better for Excel (no merged cells).


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

Re: Sorting? Becker
4/9/2005 2:25:08 PM
Thanks Bruce, I suppose this will work as a work around. Seems cumbersome,
but oh well.

Do you have any examples of the way to get the links to appear on the HTML
report page? Does that involve adding custom code to the report?

[quoted text, click to view]
Re: Sorting? Bruce L-C [MVP]
4/9/2005 6:07:57 PM
I haven't done this but I assume it is a matter of creating a link (any text
box you can do a right mosue click, properites, advance properties) and get
to where you set the jump to URL.

Another simple this is to add a sort by report parameter and then have that
part of your sql. You can use an expression for your sql.

="select * from sometable order by " & parameters!Paramname.value


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

Re: Sorting? Rajeev Karunakaran
4/11/2005 12:41:14 PM
Interactive sort is not available in RS 2000, but is being added to RS 2005.

--
Rajeev Karunakaran [MSFT]
Microsoft SQL Server Reporting Services

This posting is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]

Re: Sorting? Mukund
6/7/2005 11:42:05 PM
Hi Bruce,

I am currently facing the same problem where in when I export to excel, the
users are not able to sort on the columns as the cells are merged.

I have report where in I have 4 column headers and below which I display the
rows of data associated with the columns.

What I do not understand is, how do the remove the extra text boxes when I
make a copy of my report rdl file. I dont see any extra text boxes but I have
spaces between column names. Is that what you mean by extra text boxes?

Eg.

Col1 Col2 Col3 Col4
--------------------------------------------
A1 A2 A3 A4
B1 B2 B3 B4
......

In the above case, is there a better way to format the columns without any
spaces? If so, please advice. I need to export this to excel and then sort by
all the 4 columns above.

Any assistance in this regard will be very helpful.

Thanks

Mukund




[quoted text, click to view]
AddThis Social Bookmark Button