close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Sorting by Columns

Thread began 5/14/2010 2:08 pm by markdoyle87077 | Last modified 5/17/2010 9:28 am by Jason Byrnes | 1456 views | 3 replies |

markdoyle87077

Sorting by Columns

Hi, I have followed the online tutorial and read the accompaning PDF document. I have set up my page, it can be viewed at pendingsales1.asp

I have set up 2 sort paramaters on the page, when i click on the Artikel it sorts Ascending and Descending, however when i click on the date i get an error:

Microsoft OLE DB Provider for SQL Server error '80040e14'

A column has been specified more than once in the order by list. Columns in the order by list must be unique.

/admin/pendingsales/pendingsales1.asp, line 84

I have attached a copy of the ASP file.

Thanks in advance.

Attached Files
pendingsales1.zip
Sign in to reply to this post

Jason ByrnesWebAssist

It looks like you are using a view for the recordset:
SELECT * FROM dbo.view_pending_sales_userdetails

make sure that the view dfoes not also use the date column in the order by clause.

Sign in to reply to this post

markdoyle87077

Sorting by Columns

I have checked the view and there is no ORDER BY clause, see below:

SELECT dbo.pendingsalesdetail.id, dbo.pendingsalesdetail.orderid, dbo.pendingsalesdetail.itemnumber, dbo.pendingsalesdetail.description,
dbo.pendingsalesdetail.packquantity, dbo.pendingsalesdetail.quantity, dbo.pendingsalesdetail.cost, dbo.pendingsalesdetail.price, dbo.pendingsalesdetail.weight,
dbo.pendingsalesdetail.totalprice, dbo.pendingsalesdetail.volumediscount, dbo.pendingsalesdetail.status, dbo.pendingsalesdetail.userdetails_id,
dbo.pendingsalesdetail.date, dbo.pendingsalesdetail.packingorder, dbo.pendingsalesdetail.supplier, dbo.pendingsalesdetail.purchaseorderstatus,
dbo.userdetails.firstname, dbo.userdetails.surname, dbo.pendingsalesdetail.small_count, dbo.items.stock
FROM dbo.pendingsalesdetail INNER JOIN
dbo.userdetails ON dbo.pendingsalesdetail.userdetails_id = dbo.userdetails.id INNER JOIN
dbo.items ON dbo.pendingsalesdetail.itemnumber = dbo.items.itemnumber
WHERE (dbo.pendingsalesdetail.status = 'pending')

Sign in to reply to this post

Jason ByrnesWebAssist

In the sort server behavior, you have entered the date column as a standalone sort column, as well as adding in the sort querystring.

this is causing the error, it is using the date column twice because it is a member of the Querystring, and because it is hard coded in.

Double click the sort server behavior and remove the date reference from the columns section.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...