I am running the Web Retool on top of a MySQL 5.7.12 server.
I am using the table component to edit my data and have a specific field where I would like to have a multi-select dropdown menu so I am using the "tags" data format to provide these options.
So my problem is two-part:
When only updating a single record that is a json field on the DB side, once data has been edited and entered it does not know how to read the data back into the table in order for it to show the tags and options that I selected. It consumes the data when done as a key value pair.
When trying to do a bulk update and saving it the to DB the SQL query that is executed is not placing the multiple option tags in an array and breaks syntax into the MySQL DB.
@lenti Could you give a little bit more clarity? How do I alter the format of the data as it is pulled into Retool? Do I need to specify it in my query?
And I feel like the second problem, while I could do a workaround and manually tweak the records to bulk update, shouldn't it work out of the box with Retool? It seems like a bug to me.
You can make use of transformers. I have created a query that would return data similar to your DB return, and make use of the transformer to tweak the format.