close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Dynamic DropDown with DataAssist Search

Thread began 2/03/2012 10:05 am by eric284736 | Last modified 2/03/2012 2:19 pm by eric284736 | 3293 views | 8 replies |

eric284736

Dynamic DropDown with DataAssist Search

Hi,

I have a setup for a search where the Country drop down is tied to the regions of that country. So if France is selected from Country, then the Region (Area) lists the correct regions.

That works, but when the search button is clicked it goes to the results page and does not display the results. I think I am missing something on the results page to correctly pull the data.

I have attached the two pages.

thx
Eric

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

Jason ByrnesWebAssist

to help debug, add the following code on the results page just before the closing </body> tag:

php:
<?php echo($query_rsProp); ?>




and send a link to your search page.

Sign in to reply to this post

eric284736

Thanks Jason.

It looks like Area is not carrying over to the query?

Here is the results:
SELECT InternationProps.intpropID, InternationProps.DateAdded, InternationProps.SearchType, InternationProps.PropertyTYPE, InternationProps.PROPERTYREFERENCE, InternationProps.Title, InternationProps.Country, InternationProps.Description, InternationProps.Area, PropTypeInternation.IntPropTypeID, PropTypeInternation.TypeName, InternationProps.Area, InternationProps.Kitchen, InternationProps.Bedrooms, InternationProps.Bathrooms, InternationProps.Office, InternationProps.Gararge, InternationProps.Rooms, InternationProps.Shower, InternationProps.LivingSpace, InternationProps.Price, InternationProps.RentalPrice, InternationProps.LivingArea, InternationProps.OtherRooms, InternationProps.KitchenEquipment, InternationProps.ElectricalEquipment, InternationProps.OtherEquipment, InternationProps.Windows, InternationProps.Flooring, InternationProps.Walls, InternationProps.Services, InternationProps.OtherServices, InternationProps.LanguageSopken, InternationProps.Ceiling, InternationProps.AgentContact, InternationProps.DisplayOnSite, InternationProps.OrderLabel, InternationProps.GoogleMap, InternationProps.MainPhoto FROM InternationProps INNER JOIN PropTypeInternation ON InternationProps.PropertyTYPE = PropTypeInternation.IntPropTypeID WHERE DisplayOnSite = '1' AND (Country = 'France') AND (SearchType = 'Rental') AND (Area = 0) ORDER BY OrderLabel DESC

Sign in to reply to this post

Jason ByrnesWebAssist

area is numeric column, it looks like you are trying to pass a text value to it.

Sign in to reply to this post

eric284736

Okay - changed the numeric to text and the result is
ON InternationProps.PropertyTYPE = PropTypeInternation.IntPropTypeID WHERE DisplayOnSite = '1' AND (Country = 'France') AND (SearchType = 'Sale') AND (Area = 'France') ORDER BY OrderLabel DESC

Now area is France instead of the region name or the region number.

thx
e

Sign in to reply to this post

Jason ByrnesWebAssist

is it working like that?

Sign in to reply to this post

eric284736

No, I need to be passing the numeric value of the region IareaID into Area. The drop down on the search page is setup to pass the id number (or apparently not) but I don't see the issue.

thx
e

Sign in to reply to this post

Jason ByrnesWebAssist

in the create dynamic array behavior, you have set the Child Value to sue the Country column not the areaID column

Sign in to reply to this post

eric284736

I just saw that :)

THANKS!! It is working now!!

Have a great weekend!

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