MX Dynamic Table Sorter Forum :: table search configuration - descending

This thread was displayed: 0 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
Curtis Mulder
03-30-2007 22:56:44 GMT +2

Hey there

I love the ability to sort a table using this extension. But I'm wondering if there is a way to set one of the table columns (Date) to sort in descending (DESC) order by default when a user first click on it. By default, all of the columns will first sort in ASC order. Can this be changed? In my application, a user would want to see the date column from newest to oldest before seeing it from oldest to newest.

Thanks.

Back | Reply | Quote | Top
Ionut MOICIANU
04-16-2007 17:18:05 GMT +2

Hello,

I presume you are talking about the MX Dynamic Table Sorter extension. Please tell me, are you using PHP, ASP, CF?

I will check to see if the default behavior can be changed.

Ionut

Reply | Quote | Top
Curtis Mulder
04-16-2007 17:40:14 GMT +2

I'm using ASP vbscript. Thanks.

Reply | Quote | Top
Ionut MOICIANU
04-17-2007 16:06:04 GMT +2

You need to edit the "includes\MXTableSort\MXTableSort_functions.inc.asp" file and change in the code between lines 21-32:


            Dim tempVal: tempVal = validArr(counter) + " DESC"
            .......

        If found = false Then
            myVal = defaultValue
        End If

like:

            Dim tempVal: tempVal = validArr(counter)
        .........

        If found = false Then
            myVal = defaultValue + " DESC"
        End If

Ionut

Reply | Quote | Top
MX Dynamic Table Sorter 1.8.0
© Adobe Systems Romania. All rights reserved.