close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Can you apply the DataAssist search wizard twice?

Thread began 5/20/2010 5:04 am by Lee Firth | Last modified 5/20/2010 8:58 pm by Lee Firth | 825 views | 4 replies |

Lee Firth

Can you apply the DataAssist search wizard twice?

I need two different types of search functionality. I need to be able to search by map number and type and also by name or address or phone number. I don't think you can accomplish this with a single search DataAssist Search SB added to the page (Correct me if I'm wrong).

I have tried to add the SB twice but I get an error message which says:

Fatal error: Class 'FilterDef' not found in C:\inetpub\wwwroot\phone\numbers_Results.php on line 16

Sign in to reply to this post

Eric Mittman

I think you can have more than one DataAssist Search server behavior on the page at once but this should not be necessary if you are searching through the same recordset. The current error you are getting looks to be a code order issue, if the class if referenced before it is defined you will get this error. This class should be referenced in the include files that should be at the top of the page. If the proper include files are above this code the error should not occur.

To set this up so you do it with a single Search Server Behavior you need to make sure that you have the form fields in place first. Then you can edit the server behavior and just add in the additional criteria. When you add them make sure to change the separator to OR, then select the column it's type, the type of comparison to make, then select the form element that this value will be coming from. This should allow you to create a single Search server behavior that does all of this.

Sign in to reply to this post

Lee Firth

I managed to get close to what I wanted on a single search SB. Thanks Eric.

Sign in to reply to this post

Eric Mittman

Glad to hear that, are you having any other trouble with it that you are trying to work out? Let us know if there is anything you need help with still.

Sign in to reply to this post

Lee Firth

I'm starting to use this extension a lot and I've found that if you print the SQL that has been modified by the SB to the screen you can usually see what the problem is.

Each case would be different but if you look at this line of code:

$inv = mysql_query($query_limit_inv, $BEA_PHP) or die(mysql_error());

The query is "$query_limit_inv" so if you echo that you will see the modified SQL.

Thats my tip for the day. :)

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