close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Sort problems

Thread began 11/29/2010 11:30 am by turbo.sarajevo416658 | Last modified 11/30/2010 7:01 am by Jason Byrnes | 1501 views | 3 replies |

turbo.sarajevo416658

Sort problems

I have a table which displays my records. In column user (in my database) i have a number (user id) but when i display my results it displays names of those users (in my repeat region). (using INNER JOIN) So now i want to apply sorting on each of my table columns and it does not sort users by name, it sorts them by this user id stored in the database. How can i sort those records by user names, not ids?

Thanks in advance

Sign in to reply to this post

Miguel

Edit the recordset, by default every recordset sorts with the primary key you can tel it to sort by what ever field you like


example:


$query_name = "SELECT ID, User_names, otherfields FROM Tablename ORDER BY User_names ASC";

Good luck

Sign in to reply to this post

turbo.sarajevo416658

Thanks for your quick reply Sades

I want to use the sort option from dataassist so if someone clicks on the column Usernames i want to display records ordered by usernames not user ids. I want to apply this on every column. So default recordset ordering is not option. I still have no idea how to do this.

Sign in to reply to this post

Jason ByrnesWebAssist

see the "Sorting by column links" tutorial in the solution recipe section of the DataAssist support page:
dataassist/

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