Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Formatting

Status
Not open for further replies.

mmwalker

Programmer
Jun 17, 2002
5
0
0
US
We are creating reports in Crystal 9.0 using SQL stored procedures. We would like to allow the end user to click on column headers to perform sorting. For example if a report contained a column for Customers, the default sort order may be ascending. If the user clicked on the Customer heading it would sort descending and then if they clicked again it would revert back to ascending. We would like to be able to do this for multiple columns in the same report. If the report had columns for Sales, Orders and Total Dollars we would like to sort on any of the columns the end user clicks on. Has anyone been able to figure out how this can be done?
 
Have you considered allowing the user to select the sort order & field as a prompt before they run the report?
 
I would agree with morriskc's approach.

The alternative would be to place on demand subreports behind the column names, which sorted by that column in the opposite way to the main report. However, you would not be able to toggle the sort once within any of the subreports.

Naith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top