Re: Lookup not working in Edit Form
Posted: Sun Jun 02, 2013 5:35 am
I have been doing some testing but have been unsuccessful in having the 'unit' lookup field on the form update the 'vio_building_unit' column in the violations table. I looked at the 'invoices' form in samplenufinancial. Other than some parameters like 'No description', 'Read only', etc., I didn't see anything that was wrong. I changed all of those minor parameters to match the sample but it didn't make any difference.
The only thing I really changed this time was to re-order the SQL for the violations form and qualify the columns with table names as follows:
SELECT * FROM violations
INNER JOIN unit
ON violations.vio_unit_id = unit.unit_id
LEFT JOIN zzsys_list
ON violations.vio_resolution = zzsys_list.sli_option
WHERE sli_name = 'resolution'
It still didn't fix the problem.
Just a reminder. All I am doing while in the 'violations' edit form is to click on the 'unit' lookup field, select a 'unit' from the 'unit' table/form and updating other fields in the 'violations' form. All of the other fields are getting updated in the 'violations' table except the lookup fields.
Thanks,
John
The only thing I really changed this time was to re-order the SQL for the violations form and qualify the columns with table names as follows:
SELECT * FROM violations
INNER JOIN unit
ON violations.vio_unit_id = unit.unit_id
LEFT JOIN zzsys_list
ON violations.vio_resolution = zzsys_list.sli_option
WHERE sli_name = 'resolution'
It still didn't fix the problem.
Just a reminder. All I am doing while in the 'violations' edit form is to click on the 'unit' lookup field, select a 'unit' from the 'unit' table/form and updating other fields in the 'violations' form. All of the other fields are getting updated in the 'violations' table except the lookup fields.
Thanks,
John