Hey,
I'm using Crystal Reports 8.5.
I've been on this problem a while. I need the ability to dynamically change the sort order of a group based on a input parameter. The group has to sort either by sum(price) or alphabetically by its title.
Its automatic that it sorts by its title, no problem.
I can make it sort by the sum of the price by adding a sub total to the group and using the Top N/Sort Group Expert.
Now I need a way to change this based on a parameter.
If I could turn off the sorting defined in the Top N/Sort Group Expert at runtime based on the boolean parameter, I would be done. I'm assuming that isn't possible, but I'd certainly like to hear that it is
Assuming its not, what I've determined I need is this: A way to convert a string to a number so that sorting that number results in the same ordering as sorting the original string alphabetically, case INsensitive.
I'm working on an algorithm right now, using a sum of the weighted ascii values of the characters in the string, based on position. If anyone has done this before, or knows a standard way to do this, or can think of an easier solutions to my problem, i'm all ears
Thanks in advance,
Cheyney
I'm using Crystal Reports 8.5.
I've been on this problem a while. I need the ability to dynamically change the sort order of a group based on a input parameter. The group has to sort either by sum(price) or alphabetically by its title.
Its automatic that it sorts by its title, no problem.
I can make it sort by the sum of the price by adding a sub total to the group and using the Top N/Sort Group Expert.
Now I need a way to change this based on a parameter.
If I could turn off the sorting defined in the Top N/Sort Group Expert at runtime based on the boolean parameter, I would be done. I'm assuming that isn't possible, but I'd certainly like to hear that it is
Assuming its not, what I've determined I need is this: A way to convert a string to a number so that sorting that number results in the same ordering as sorting the original string alphabetically, case INsensitive.
I'm working on an algorithm right now, using a sum of the weighted ascii values of the characters in the string, based on position. If anyone has done this before, or knows a standard way to do this, or can think of an easier solutions to my problem, i'm all ears
Thanks in advance,
Cheyney