close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Search based on dropdown

Thread began 8/08/2011 12:17 pm by joseph.moglia399795 | Last modified 8/08/2011 3:47 pm by joseph.moglia399795 | 1612 views | 7 replies |

joseph.moglia399795

Search based on dropdown

How would I get this to work? Please see attached screen capture and the results.php code (below) which I am requesting the 3 fields. Code is also attached. Thank you!

//Dropdown test
$search1 = $_REQUEST['search1'];
$search1text = $_REQUEST['search1text'];
$search1condition = $_REQUEST['search1condition'];
//end test

//comparison list additions

$WADbSearch1>addComparisonFromEdit($search1,$search1text,$search1condition,"Includes",0);

Attached Files
Archive.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the problem is that you are modifying the code by hand rathwer using the data assist search behavior to create the code.


first, on the results page, open the bindings panel and select Form Data, click the folder icon and select the search page to add bindings for the search page form elements.


now double click the data assist search server behavior.

click the plus button to create a new criteria, select the columns that will be searched and other criteria options.

for value, click the lightning bolt icon and select one of the search form bindings.

repeat this process for the other two search fields.

Sign in to reply to this post

joseph.moglia399795

This post has been deleted.

joseph.moglia399795

eycuud away

Thanks! I don't understand how that might work with my dropdown on my search page? Basically, what is happening now is it doesn't matter what I select in my dropdown.. It's just searching all the fields. Super confused. Thanks for your help Jason :)

Sign in to reply to this post

joseph.moglia399795

Can you provided me further instructions

Jason,

Can you provided me further instructions on how to build my search based on my dropdown list of multiple fields in the data assist search server behavior menu.

Please see screen capture attached.

Sign in to reply to this post

Jason ByrnesWebAssist

to troubleshot, please send your search and results page in a zip archive so i can look at the code, also a link where i could see the problem would be helpful.

Sign in to reply to this post

joseph.moglia399795

Thanks, Please see attached zip. I am testing locally.

Attached Files
Archive.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I'm looking closer at your example code, and it looks like you are trying to do something that is not supported by data assist or any other webassist tool


you are trying to dynamically set the search field and criteria based on the selections made in the dropdowns.


this is not supported functionality in data assist.

Sign in to reply to this post

joseph.moglia399795

Thanks for looking at it. I think I am. I'm trying to add 2 condition statements into it:

1. contains
2. not contains

Is this not supported? I believe I'm close with my code. Right now my main problem is that if you just search one of my text dropdowns in the search.. it searches all the fields instead of just the one selected. That's my problem.

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