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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie Q? Sorting

Status
Not open for further replies.

ppula

Programmer
Oct 6, 2005
4
US
Is there a way i can sort a report on .rfx
I want to sort my report by name and the same report again by date! My question is is there a way i can sorting on the report side without having to modify my stored procedure ?

thanks for the help
ppula
 
There are several ways of doing this. When you say you are using a Stored Procedure do you mean that you're calling code within a back end server such as SQL Server or Oracle to generate the data source for the report?

Geoff Franklin
 
Yeah on SQL Server, basicly i was wondering if i can sort on the report side. if there is a certain expresion to sort by field?

thanks
 
ppula,

a report generally scans through it's data source the way it is sorted. So if you index the cursor or view you got from SQL Server you are able to sort the data on differing fields and then output in that special order.

Code:
SELECT ReportCursor
INDEX ON myfield TAG sorting
SET ORDER TO sorting
REPORT FORM ...

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top