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

Button to show all records?

Thread began 3/06/2015 4:00 am by MagsW | Last modified 3/07/2015 7:31 am by MagsW | 639 views | 3 replies |

MagsW

Button to show all records?

In a paginated results set, how would I add a button that would give the user the choice to display all records? Reason I ask is that I'm also giving them the option of exporting the table to Excel but it will only export the page of results it's on, so I need to be able to provide the option of showing all records. Don't want to make this this default view though as there are over 3,000 records and rising daily!

Sign in to reply to this post

Jason ByrnesWebAssist

I would create a separate page for this and add a link to the show all page.

Sign in to reply to this post

Willi Schneider

Hi mwilson

I've done that a couple of times, but that requires a lot hand coding.

You would have to declare your own variable, let's say "$MyNumberOfRecords", which you could set as value of a form field or an option for a select menu and assign that to the "$maxRows_WADANameOfYourRecordset" in the DB generated php code.

Then you add a simple form containing that form field or menu and a submit button.

In your case (Export all data to Excel) it would be easiest to add a link to a copy of your list page, that just displays all records...

Sign in to reply to this post

MagsW

Thanks for the replies, sounds like I'll be doing it the easy way!

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