Is it possible to set a formula cell's value, overwriting the computed one? #1053
Replies: 3 comments 11 replies
-
@aboodman Thanks for reaching out to us.
I'm not sure what you mean by temporarily. A cell has either a formula or a value. A formula updates whenever its dependencies change (a volatile formula updates on every volatile action). A value remains untouched unless any CRUD operation overrides it (e.g.
Have you considered running HF only on the server? You can get all the computed values using the getAllSheetsValues method and send them to all the clients on every update. |
Beta Was this translation helpful? Give feedback.
-
What may work is to overwrite all volatile functions implementations, there are not that many of them. Load those new implementation on clients, where only server will have the original real implementation. Our mock implementation for i.e. From the user perspective we will avoid FOWC (Flash Of Wrong-calculated Content, I just named it 😆). One flash will be there anyway, wrong data will be displayed until the correct value will be sent from the server. But until then, wrong content is displayed, just without the FOWC. A more advanced mock could return a placeholder, i.e. custom error |
Beta Was this translation helpful? Give feedback.
-
@aboodman We've just released the new version of our documentation with the updated list of volatile functions. |
Beta Was this translation helpful? Give feedback.
-
I looked through the API and I don't see anything for this. I would like to be able to temporarily override the computed value for a cell that has a formula. I realize that volatile formulas will recompute when anything relevant changes.
I realize this may sound like an odd question, but I believe it makes sense for my use case:
I am building a collaborative spreadsheet based on hyperformula. It's easy enough to do this if HF runs only on the client-side. I can make the authoritative server data just be the formulas, no derived values. I just render the spreadsheet on each client.
However this has a few downsides:
So what I'd like ideally is a way to override the value for a computed cell and let it update normally on next dependency change.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions