CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Droplist value based on another droplist

Print topic Send  topic

Author Message
bas60

Posts: 18
Posted: 04/10/2011, 2:28 PM

I'm using a modified book store example ...

I have placed a droplist from category_id - filled from store_category
and this works fine... ie. only selected category is displayed

I have now added a 2nd droplist product_id but I need this to be filled from store_products but only select items where the category is the selected category above.

I think I need to do this via SQL but I just can;t seem to get the right SQL

I've tried:

select * from store_products where category_id = s_category_id order by product_name

but its not right !

Any help appreciated
View profile  Send private message
damian

Posts: 838
Posted: 04/10/2011, 3:00 PM

use dependent listbox tool from toolbox

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.