Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> sort web screen 16 different ways

sort web screen 16 different ways

From: David Rawding <daverawding_at_mediaone.net>
Date: Tue, 30 Jan 2001 03:56:10 GMT
Message-ID: <c5ec7t4lfblc629uqk9596u92jk5kt0lpe@4ax.com>

My business user wants to show 16 columns of data on a web screen with each column able to be the sort field. I am using plsql in a 7.3.4 database to generate the web pages. I have been using cursors each with a different order by clause with the same "select field1, field2, etc from ..... where...." part in other screens with less sort options..

Is there a "best" way to code this so I don't have to have 16 cursors all defined the same except for the order by clause and 16 if statements to open the right one and 16 if statements to fetch the right one and so on?

-Dynamic dbms_sql doesn't seem too good since there are so many fields
to bind to.
-A plsql table to hold the data would still need to be sorted on the
right field unless there is a sort function for plsql tables.

Any ideas?

thanks, Dave Rawding Received on Mon Jan 29 2001 - 21:56:10 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US