close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Data Assist Sort Table Data

Thread began 3/16/2011 9:53 am by dlovas275157 | Last modified 3/16/2011 11:34 am by Jason Byrnes | 1721 views | 2 replies |

dlovas275157

Data Assist Sort Table Data

I have a repeating table with 3 column of data. I have followed the tutorial in the solution recipies on how to "Sort By Column Links". I have successfully finished the tutorial but I need help with the following:

I would like to have 4 custom links (instead of just two toggling links) in a dropdown menu:

1. Sort by listDate Descending
2. Sort by listDate Ascending
3. Sort by retailCost Ascending
4. Sort by retailCost Descending

..instead of the toggling links at the top of each column.

Looking at the code generated by the tutorial, i cannot understand what I should make the links in the dropdown be to accomplish the ASC or DESC part. Is there anyway to handle the ASC/DESC in the link and not just rely on the toggle function?

Attached is my code, here is a live link:
sort.php

Thanks for any help.

Sign in to reply to this post

dlovas275157

attached is my code (forgot to attach.)

Attached Files
sort.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

you wont be able to do this using a select list, but you could do it using links.

add another quersytring variable to your links for direction:

<a href="sort.php?sort=retailCost&dir=Descending">Sort by retail cost Descending</a>
<a href="sort.php?sort=retailCost&dir=Ascending">Sort by retail cost Ascending</a>

on the bindings panel click the plus button and select URL Variable, name the URL variable "dir"


in he sort server behavior, select the column that is using the sort URL variable, and click the lightning bolt next to Sort order, select the dir query sting variable.

make sure to un-check the toggle sort on subsequent visits option.

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