This topic is locked

Sorting

8/12/2003 9:07:09 PM
ASPRunnerPro General questions
author

I've been testing ASPRunner the last few days and it has been great. I've come across the following and wondering if there is a workaround.
I have a sorting question. I have a 500 record table that is displayed across multiple pages. When I sort on a column and then click the next page the sort I just selected is lost.
Any ideas?
Thanks

Sergey Kornilov admin 8/14/2003

Hi,
I'm not sure what exactly is happening here. Here is what you can do to investigate this problem: open /include/..._variables.asp file and set vDedug variable to true.
With this option enabled each SQL query will be printed at the top of page. You can copy and paste queries from the first and from the second page here.
Sergey Kornilov

500060 8/15/2003

I...Here is the query before showing all records:

SELECT [StatusID], [StatusDate], [StatusTitle], [StatusDesc], [DisplayFlag], [IStatusDesc], [IDisplayFlag] From [dbo].[tblNetworkStatus] where statusdate >= dateadd(dd,-30,getdate()) or statusdate is null order by [StatusDate] desc
II...Then I click the StatusDate column and resort:

SELECT [StatusID], [StatusDate], [StatusTitle], [StatusDesc], [DisplayFlag], [IStatusDesc], [IDisplayFlag] From [dbo].[tblNetworkStatus] where statusdate >= dateadd(dd,-30,getdate()) or statusdate is null order by StatusDate asc
III...Then I click go to page 2:

SELECT [StatusID], [StatusDate], [StatusTitle], [StatusDesc], [DisplayFlag], [IStatusDesc], [IDisplayFlag] From [dbo].[tblNetworkStatus] where statusdate >= dateadd(dd,-30,getdate()) or statusdate is null order by [StatusDate] desc
Notice how the query was reset in step 3. Why wasn't my asc sort kept from step 2?

P
pskjo 11/26/2003

I have a request concerning the sort order to.
I would like a sort order (orderby) and if there is a search set up, to maintane active after returning from the edit-page.
Is it possibly?
Regards

pskjo

Sergey Kornilov admin 12/4/2003

Hi,
please download latest update here where this problem fixed:

http://www.xlinesoft.com/files/asprun23a.exe
Best regards,

Sergey Kornilov