close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

not getting search/filter working

Thread began 10/31/2013 6:19 am by Jamie | Last modified 11/01/2013 7:37 am by Jason Byrnes | 1563 views | 5 replies |

Jamie

not getting search/filter working

Hey Jason

Trying to get the attached product results page's filter by category to work but it just isnt filtering by category at all... it shows all products.

Would you mind taking a look to see what I have done wrong please?

Many thanks

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

you have the wadaproducts recordset on the page twice, once in a loop that looks like it is used for updating, then again further down the page, the search was only added to the first one that gets executed on update order, but not the one used on the page.


change line 157:
$query_WADAproducts = "SELECT * FROM products ORDER BY ProductOrder ASC";

to:

$query_WADAproducts = "SELECT * FROM products ORDER BY ProductOrder ASC";
setQueryBuilderSource($query_WADAproducts,$WADbSearch1,false);

Sign in to reply to this post

Jamie

thanks Jason. so, and out of curiousity, would I be right in saying that if the filter/search came after the product section, that code modification would not be needed?

Sign in to reply to this post

Jason ByrnesWebAssist

it's a matter of having the same recordset on the page twice.

the search was applied to the first instance of the WADAproducts recordset code.

That was not the instance used for populating the page though, so the modification needed to be applied to the second instance of the WADAproducts code.

Sign in to reply to this post

Jamie

thanks for the tip and explanation!

by the way, whats with the red socks??

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

  by the way, whats with the red socks??  



LOL.

Boston Red Sox - Won the World Series on Wednesday.

I'm a Boston native...

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