Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Sorting data in Crystal Report Post Reply Post New Topic
Author Message
Tron82
Newbie
Newbie


Joined: 10 Aug 2009
Location: Singapore
Online Status: Offline
Posts: 1
Quote Tron82 Replybullet Topic: Sorting data in Crystal Report
     Posted: 10 Aug 2009 at 11:48pm
Hi all, i 'm new to crystal report and here is a problem i faced. I was unable to use a parameter input(paraSort) for order by the different type to display. When i used normal 'order by user_gp' statement it work but when i use the statement like below it give a ORA-24374 error. Anyone know how to solve it or any other ways for user to select diff parameter for sorting? thks alot.
 
select * from profile where (sysdate - date_access)/30<6 and (del is null or del<>'Y') and user_gp ={?paraUser} order by {?paraSort}
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 11 Aug 2009 at 6:34am
create a stored proc, let it do the sorting based on parameters.  I don't like messing with the SQL in Crystal, too much is unknown to me.
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum