Dropdown - value of foreign key [message #2621] |
Tue, 21 September 2010 08:08 |
dsstanescu
Messages: 12 Registered: August 2010
|
Junior Member |
|
|
Hello,
I have imported a database in which:
- table SISTEME has primary key cod_sistem
and
- table ANSAMBLE has primary key cod_ansamblu and a foreign key cod_sistem
I related the tables within the framework: parent is SISTEME and child is ANSAMBLE related through cod_sistem.
I then changed the column cod_sistem in ANSAMBLE to be DROPDOWN and I was expecting when adding a new record to ANSAMBLE to have the DROPDOWN cod_sistem of this table populated with the values from SISTEME. This does not happen ... I get a DROPDOWN which is not populated....
I always exported to PHP and I noticed that the ansamble.class.inc for ANSAMBLE is very basic (see the file uploaded) if compared with the one from CLASSROOM eg crs_student.class.inc. What I get inside the class is just a function ansamble, but not others as _cm_formatData, _cm_getExtraData etc. I read #298 and #490 threads, but did not succeed to solve it...
Thanks!
Dan
|
|
|