Hi guy,
when I change a field of a sheet record via app (Ex. name) I need to undestand the exact cell (not row) that is changed in the sheet and compare the new cell value with an other sheet (same spreadsheep) column field and if true call a my function in apps script.
How can I do it?
I tried to use OnChange but I canโt find the cell changedโฆ
Thanks
Youโd need to check the [_THISROW_BEFORE] values against the current value for every column. Hereโs a handy template generator for such a thing.
Thankyou Marc for the answer.
I must have just confused in my ask. Sorry.
My issue is to launch a my function in apps script when I changed a field in my appsheet. With OnEdit function Itโs ok when I change the field directly on the sheet but it doesnโt go when I change it in the app.
Is there a method for this?
Thanks
Thanks Steveโฆ Iโve just seen time trigger but it canโt do what I need. I need a simultaneous launch of my function because it complete other sheet fields .
Thankyou anyway.
Appsheet doesnโt edit individual cells, it always updates entire rows at once. As such, a GAS will not have access to the actual cell edited, only the row. You need to depend on Appsheet to determine which values was changed, and you can do that using the #tips thread I posted earlier.
Ok Marc but how can I know in apps script function that a chance accours in a row via app sheet without time trigger?
Thank you
OR
User | Count |
---|---|
14 | |
11 | |
9 | |
7 | |
4 |