Re: DropDown Field values - changing in runtime [message #7682 is a reply to message #7681] |
Wed, 16 February 2022 04:08 |
htManager
Messages: 421 Registered: May 2014
|
Senior Member |
|
|
Sorry, my fault. I didn't explain it right.
I have a foreign (compound) key in my table and I call a popup form to choose an occurence of this foreign table. In _cm_getExtraData() I have the code for filling the dropDown list with the values of a table consisting of the foreign key and another key field with the (detail) values I want.
As far as I understand, the popupReturn event doesn't fire an 'onchange' trigger and that's why the _cm_updateFieldarray() method will not be fired.
Using a dropdown field for a compound key as desribed in FAQ 138 was the last time too difficult for me. But I will try it again.
It is possible to fire an 'onchange' trigger in the _cm_popupReturn() method after filling in the selected values in $fieldarray? Or is there a better solution for this problem?
[Updated on: Wed, 16 February 2022 06:57] Report message to a moderator
|
|
|