I have a datastore where I want to add the button for the +1 qty
I have currently in the update have quantity + 1 however this is not increasing the qty is is only adding quantity +1 in the qty cell on the table and does not increase the qty
Your expression is wrong. You wrapped it in single quotes, so it’s considered a string. Everything wrapped in single quotes is a string.
It should look like:
ok not sure what is going on but in the table it is now adding the one as 1 (after add button shows) 11
Also in the table the repeated button for another product the button does not work.
Before it updated all qty’s to the amount it changed to.
Really not sure what I am doing wrong here buddy.
OK got the numbers going up and down, but if you add 2 products it changes both numbers and not the line the button is on.
also the second buttons do not work.
And the issue is that you are using an input as a value for the quantity on insiert in data store.
Input values are always strings, so 1 is added as string, you should convert it to number so that the update action can see it properly and sum the quantity:
Thats awesome, all the problems are sorted out. I did not realise you had to add the .toNumber when the field was number.
All working thanks very much for your help.
As normal impeccable support from you guys