CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Dependant Listboxes & browsing forms

Print topic Send  topic

Author Message
ferraro

Posts: 1
Posted: 10/21/2009, 3:14 AM

Hi everyone, I have been implementing a web application for managing a set of employees. A simplified representation of the data base I am using is:

EMPLOYEE(ID, NAME, COUNTRY_ID, CITY_ID)
COUNTRY(ID, NAME)
CITY(COUNTRY_ID,ID,NAME)

(notice that I cannot modify the structure of COUNTRY and CITY tables)

I have been able to create a 'new employee' page where it is possible to input the city where the employee works by first selecting the name of his country and, then, choosing among the names of cities existing in that country. I have done this by using the Two dependant listbox example available (http://examples.codecharge.com/Ajax/DependentListBox2.php) by CCS.

However, when creating a 'browse/modify' page, I don't know how to display the name of the city (dependant on both the CITY_ID and COUNTRY_ID attributes) instead of the CITY_ID attribute.

Is there someone of you that could help me with this?

Thank you in advance,

Umberto Ferraro
View profile  Send private message
ckroon

Posts: 869
Posted: 10/22/2009, 2:00 PM

If the record is storing the IDs of teh country/city rather than the actual name.. you should be fine.

_________________
Walter Kempees...you are dearly missed.
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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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