close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Displaying results after a search as a plug-in

Thread began 7/09/2013 7:31 am by YellowCircleWeb | Last modified 7/09/2013 11:19 am by YellowCircleWeb | 1638 views | 10 replies |

YellowCircleWeb

Displaying results after a search as a plug-in

I'm trying to create a search page using Databridge. The search is working properly in terms of returning correct results. However, I want to not show any results until a search has been performed. The default setting is to have all records returned. I have also tried using just a search page as a plug-in, which does not show any results until a search has been performed, but when I do this the results are returned as their own page, not within the confines of the original page i.e. my site design.

Here's a link to the page in question http://loneworkertrainingnetwork.co.uk/contact-hub-search.php Any help is appreciate

Sign in to reply to this post

Jason ByrnesWebAssist

on the results page, edit the Data Assist Search server behavior and set the Default Where to:
0 != 0


to use the results as a plugin, you will need to edit the action of the search form to go to the main page that the results are plugged into.

Sign in to reply to this post

YellowCircleWeb

I tried that Jason and it resulted in a syntax error in the SQL statement. I altered it via the search server behavior as you suggested and this code was added in $WADbSearch1_DefaultWhere = "0 != 0";

Sign in to reply to this post

Jason ByrnesWebAssist

ooops, that is PHP Syntax, sorry.

use this instead:
0 <> 0

Sign in to reply to this post

YellowCircleWeb

I'm still getting a syntax error after the second change??

** UPDATE**
I fixed the syntax error by removing the quotes around the 0 <> 0 in the php code, I figured as it was a number comparison the quotes wouldn't be needed. However, the page is still giving me results before I've carried out a search? If you view the page again you'll see this.

Sign in to reply to this post

Jason ByrnesWebAssist

the original search will be stored in a session, so you will need to close the browser completely to start a new browsing session for testing.

Sign in to reply to this post

YellowCircleWeb

I closed the browser (Chrome) and reloaded the page, but it still brings up the full list of results initially?

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

YellowCircleWeb

Details in private message as requested

Sign in to reply to this post

Jason ByrnesWebAssist

the probelm was that the recordset being used had a WHERE clause already.

I corrected the problem by setting the default where to:

$WADbSearch1_DefaultWhere = " AND 0 <> 0";

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