I am trying to update a datastore with new values and I’m going around in cycles trying to figure out what I’m doing wrong.
OK, let’s get started.
Table below is stored in a Datastore. When you click on the blue wheel it passes the values of the row to an update section on the screen.
You can see that card ‘444444444’ is row ID 2 in the “DEBUG - clean datastore output” table which is the row I click to edit.
Now when presented with the data in the update section you will see I have a DEBUG output to verify the row that has been passed to the update section.
So I get the ID from the DEBUG text input.
I tell it to update the record where the ID is from the DEBUG text input and update the card column in the datastore with the new value from the form.
But as you can see below, it’s updating the first row.
Also why do you have two filters and not just one - the record id?
One more thing. The input values are always strings. If you are filtering a numeric value, please make sure to use the to number formatter when selecting it as a value.
Please use one filter only, the id of the record you are updating and if it’s a numeric value and you use form input for that please use the to number formatter.
Yes, the toNumber() issue got me a few days ago too.
Booleans can be an issue too… I’m using numbers in the data store to represent Boolean values the same way the database does… Otherwise you have to convert 0/1 to true/false!