close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Show all records via link

Thread began 1/13/2010 4:50 pm by Joe Lowery | Last modified 1/15/2010 9:43 am by Jason Byrnes | 2506 views | 9 replies |

Joe Lowery

Show all records via link

My client would like to include an option in the recordset navigation to show all the items in the recordset on the ProductsResults page. Is that possible?

Sign in to reply to this post

Jason ByrnesWebAssist

Products_Results.php?S_ProductName=%20&Search=1

should do the trick
Search=1 to trigger the search and S_ProductName=%20 to clear the previous search.

Sign in to reply to this post

Joe Lowery

Sorry, Jason - I don't think I was clear. Rather than showing 5 items in the recordset (or in my case 12) per page, I'd like to show all the items in a single page. Anyway to pull that off?

Sign in to reply to this post

Jason ByrnesWebAssist

Ahhh, OK. the number of records that is displayed on the page is controlled by the repeat region. In the server behaviors list, double click the repeat region server behavior and change it to show all.

Sign in to reply to this post

jaa397769

what happens if

The repeat section is grayed out in dreamweaver? If I cant double click it which line of code do I change to accomplish what you just explained to previous thread and what is the code?
Thank you

Sign in to reply to this post

Jason ByrnesWebAssist

change:

php:
$WADAProducts = mysql_query($query_limit_WADAProducts, $localhost) or die(mysql_error());




to:

php:
$WADAProducts = mysql_query($query_WADAProducts, $localhost) or die(mysql_error());
Sign in to reply to this post

Joe Lowery

Originally Said By: Jason Byrnes
  Ahhh, OK. the number of records that is displayed on the page is controlled by the repeat region. In the server behaviors list, double click the repeat region server behavior and change it to show all.  



So you're saying that I should create a link to a version of the ProductsResults page with the repeat region set to show all? Is there any way to do that by passing a parameter to the same page?

Sign in to reply to this post

Jason ByrnesWebAssist

Create the show all link to pass a QS Parameter:

html:
<a href="results.php?showall=1">Show All</a>





Then change the following line:

php:
$WADAProducts = mysql_query($query_limit_WADAProducts, $localhost) or die(mysql_error());




to:

php:
if(isset($_GET['showall']) && $_GET['showall']== 1) {

  $WADAProducts = mysql_query($query_WADAProducts, $localhost) or die(mysql_error());
} else {
  $WADAProducts = mysql_query($query_limit_WADAProducts, $localhost) or die(mysql_error());
}
Sign in to reply to this post

Joe Lowery

Beauty. Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

No worries Joe.

Sign in to reply to this post
loading

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