close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Default Sort Criteria

Thread began 2/15/2010 10:28 am by bruce379400795 | Last modified 2/16/2010 2:40 pm by Eric Mittman | 659 views | 2 replies |

bruce379400795

Default Sort Criteria

How do I define a default sort criteria for a repeat region when a page loads? Right now when the page loads it appears to be sorting by ID. I want it to sort automatically by the time the record was entered into the database (this is a column that I have set up). I type "ORDER BY insert_stamp DESC" into the default clause but nothing happens. Then, when I go back to the sort window the default clause is empty again.

Also, while I'm asking, if I have a column containing first_name, middle_name, and last_name all under the column heading "Name", how would I tell it when the column header is clicked to sort by last_name, then first_name, then middle_name?

Sign in to reply to this post

bruce379400795

Here is an image of my sort screen settings from my above post.

Sign in to reply to this post

Eric Mittman

If you want the results to always be displayed in that order by default you can update the query to add in the ORDER BY at the end of it. When you are entering this into the interface make sure that you click on another selection before finishing in the interface to see if this will make it stick for you.

You could then configure the sorting of the columns based on links like normal and have the results returned in order.

If you want to sort by last_name, then first_name, then middle_name you would just make sure to put these three columns into the columns listing in that order. If two records have the same last name then it will sort by first, two records with the same last and first name would then be sorted by the middle name.

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