Skip to content

sheet.saveUpdatedCells() doesn't seem to save any data #549

Closed Answered by theoephraim
Tristan-zimmerman asked this question in Q&A
Discussion options

You must be logged in to vote

The row-based and cell-based APIs are totally separate...

If you want to deal with rows (which keeps this simple but is limited) then you load rows, update them (while being blissfully unaware of the concept of cells), and call save on them.

Otherwise if you want to deal with cells directly (more flexible but more complex), then you load a range of cells, update the data in specific cells, and then can save all the updates.

This was set up this way to try to mirror Google's row-based interactions that they used to have in a previous version of their API. It's definitely much more limited, but probably handles 90% of use cases and keeps things much simpler.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by theoephraim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants