Hi Jan & pbötcher,
at this moment I want to quote Jan (from pbötcher's link above):
@pböttcher
You are my personal SuperHero #1!

Thank you for taking the time and precisely pointing me into the right direction.
With my own words: Thank you very much pbötcher - your suggestion was indeed the solution.
Of course many, many thanks to Jan as well to taking the time to create a demo and attaching it. I generated a new app with that and for me it actually did
not work. So I took a look at pbötchers post (
viewtopic.php?t=2955 ) and adjusted the file in Jan's demo - works like a charm.
Your addition to simply renaming the caching file in the /hooks/tablename_init is marvelous.
Thank you also for teaching me a little more "browser console". Much appreciated.
For others: If you disable cache like pbötcher suggested, it was the child-fieldname (for me), that needed the commented lines.
All blessings done, I must confess,
a new problem arises:
This fails:
I used Jans suggestion to rename the hooks/tablename-ajax-cache.php file (in hooks/tablename _init function) so no caching for this table. This results in correct behavior of all fields
except my ID_location. To request values for ID_location have created a view on the server (instead of 5 KB SQL). In AG I have only this for the ID_Location lookup
Code: Select all
SELECT * FROM view_freieplaetze_oben AS ecomo_location ORDER BY Lagerort_Kurz, Bereich, ID_posX, ID_posY, id_posZ DESC
So, any idea, why the field shows "no records" and this request suddenly returns "no records" when opening the lookup even though a) the record has a value set (can be seen in table view) b) the sql shows results in phpmyadmin.
Do you have any idea, why this lookup fails now?
This works:
when I use pbötchers suggestion only and comment the lines in /template/tablename-ajax-cache.php for the child lookup A and child lookup B everything is fine: ID_location works as smooth as ever and when I change master lookup A it's child is updated, same for master lookup B: A change here updates child-lookup B.
Do you think this is a bug which should be posted in the bugs section?
Olaf