Problem with databasejoin filter (WHERE)

jo-ka

Member
Hello.

I have a databasejoin element on a form, connected to a list, nothing special here...

upload_2022-10-13_20-41-57.png

But I have a WHERE clause, that's giving me problems. Ajax update is on, watching the element on the WHERE clause.

upload_2022-10-13_20-44-13.png
upload_2022-10-13_20-44-59.png

When I use this clause on the form, at first everything seems to be correct, this is, thw dropdown values on the list are correctly filtered and, when the form is saved, the data is stored on the database.

upload_2022-10-13_20-51-48.png

But, when editing the form, after save of course, the previous selected value is missing, and the 'Please select' is the only option available, although the value is still stored on the dabase.
upload_2022-10-13_20-55-38.png

If I remove the clause, everything is OK.

What am I doing wrong here?

Thanks in advance.
 

Attachments

  • upload_2022-10-13_20-40-58.png
    upload_2022-10-13_20-40-58.png
    11.8 KB · Views: 23
Try ...idjogo = '{..._raw}'
If this doesn't help:
Enable Fabrik debug in FabrikOptions and append fabrikdebug=1 to your form URL.
This should show somewhere the generated query.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top