select_single field - Cascade parent field option

DaDaBIK version 8.1-Lerici enterprise
PHP Version: 5.6.3
mysql version: 5.6.36-82.1-log
Web server: Microsoft-IIS/8.5
Client: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36


Hi,

I have two select_single fields. The second must be filtered depending on the value of the first one.
I'm using the "Cascade parent field" and "Cascade filter field" (Other choices allowed? is set to NO).

It works fine during records update but gives "unexpected error function refresh_cascade_children code 1" during new record insert.

Any help is greatfully appreciated
Thanks
Gianfranco
 
This is from my inspector:
the "centri_di_costo_id" field is the first one...the second is "tipo_movimento_id".

insp1.png
 

eugenio

Administrator
Staff member
Hello,
very strange, to get more debug info, you could edit include/header.php and change this line
alert('unexpected error function refresh_cascade_children code 1' );

with

alert('unexpected error function refresh_cascade_children code 1' + data.status );

can you tell me the result?

Best,
 

eugenio

Administrator
Staff member
Hello,
so the message has changed now?
In your first post it was code 1, now it is code 2?
 
Top