Hi Teodore,
This continues to be an issue. I clicked a save button while in toggle preview mode of a generated form that is populated by a single record query, and hitting a server connect update (not appconnect) with the condition of a key id cookie, and it works perfectly in the browser when the cookie is present.
What I think happened here, is that in preview mode, there was no id cookie, but it proceeded to update all of the records in the table to null (ie, wiped out table). In my experience (mysql/ codecharge), it was impossible to update a record without the id, of if you really tried, you might affect one record, not the entire table from a form.
As mentioned, a similar thing can easily happen in the browser if you delete the cookie - it updates the entire table to the values of the record you were editing (all records have the same values). Not good.
In the Wappler way, please explain what “doing this properly and validate the data” means. I mean, how do you validate “null” key id variable? It just shouldn’t update, right? Is there a fool proof setting/ method to assure this?
thank you in advance!