close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

sorting dynamic data

Thread began 4/18/2019 5:03 pm by paulshoe379536 | Last modified 4/19/2019 12:37 pm by Ray Borduin | 52 views | 6 replies |

paulshoe379536

sorting dynamic data

I have followed the tutorial by Kate Ford to create a link on a column header that will sort a table by that column. I have been able to get this working properly but it fails when using the navigation buttons. I have not been able to find (or understand) the fix that keeps the sort order over multiple pages. I am using Data Bridge 2.3.4 and mySQLi. Any help appreciated.

Sign in to reply to this post

Ray BorduinWebAssist

Can I see a copy of the page you are working on? If I could get a URL and FTP access, that would be best.

Sign in to reply to this post

paulshoe379536

I'm working on my local machine and do not have a database or files set up on a web server. This is not a priority at this time so maybe I can get back to you after I've uploaded files. I thought maybe this was a known situation with a common fix.

Sign in to reply to this post

Ray BorduinWebAssist

What happens when you navigate to a new page? What version of the rsobj.php file do you have? I'm sure there is an easy fix, but I need to understand the issue better in order to help.

Sign in to reply to this post

paulshoe379536

rsobj.php version 2.25... it's hard to explain what it's doing... I'm testing with paging set at 10 records and I have a total of 12 records in the table. When I click on my link it sorts the the first page correctly but going back and forth between page 1 and 2 can produce seemingly random results. Probably the best thing to do is revisit this when I get something on the web server.

Sign in to reply to this post

Ray BorduinWebAssist

Are you passing a url parameter to do the sort? It is probably keeping it in the url and causing the sort to turn on and off, or switch order. You can tell the recordset to not include the url parameter in the navigation links with code like:

php:
<?php

$Recordset1
->RemoveParams[] = "sort";
?>



Just add it below the recordset making sure to use your recordset name and the url parameter you want to be removed from the navigation links.

Sign in to reply to this post

paulshoe379536

Looks like that did it Ray! I'll let you know if I note any quirks as I add data but it looks good now. Thank you.

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