close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Recordsets not sorted correctly in DA

Thread began 4/11/2012 10:38 am by gary.brett434358 | Last modified 5/01/2012 5:34 am by gary.brett434358 | 620 views | 3 replies |

gary.brett434358

Recordsets not sorted correctly in DA

Hi, inside a DA created page, one of my recordsets doesn't sort correctly. I have it set to 'ORDER BY tblcases.CaseID Desc' in query manager and if tested in there it shows correctly. If I then view in page it does 'ORDER BY tblcases.CaseID Asc',

I do have 2 other recordsets in the page but I dont think they are affecting this one, they simply provide data for menus created by DA wizard..

Any ideas where I am going wrong, the page is attached..

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

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

gary.brett434358

++Update++
In case this happens to anyone else, Jason & Ray from support have found the issue. Its a conflict between DA & DataTables plugin [].

From support "The jquery data table has its own sorting functionality that uses javascript and is overriding the main sort from DA in the server side code.

The two could probably be used together, but they are basically working in two different worlds. Client side javascript for the jquery and Server Side php for DA, so it would take some careful configuration to make them play nice together."

Thanks for helping me identify this issue, getting round it is another problem but at least I know now ehere the problem lies, would have taken me months to find that!

Regards

Gary

Sign in to reply to this post

gary.brett434358

Another update, original diagnosis may have been incorrect. When using datatables you can add this value to sort any column or multi column.. Just change column number to desired one..

$(document).ready(function() {
$('#example').dataTable( {
"aaSorting": [[ 4, "desc" ]]
} );
} );

Hope it helps someone..

Gary

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...