Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

❓ [QUESTION] - Getting total cell data, not their evaluated values. #82

Open
RasmusHojgaard opened this issue Feb 6, 2025 · 2 comments
Labels
question Further information is requested

Comments

@RasmusHojgaard
Copy link

Description

Hello! Huge fan of this component, extremely useful and versatile.

I am however unable to fathom how to export the actual information in the table. Functions like getObjectsFlatten and getMatrixFlatten only seem to export the evaulated values, not the formulas. I would like for my tables to be able to save/load their actual content to a backend, including relevant formulas (like =sum(), =product() and so on).

How do I go about doing this?

Reproduction URL

No response

Version

1.3.0

@RasmusHojgaard RasmusHojgaard added the question Further information is requested label Feb 6, 2025
@righ
Copy link
Member

righ commented Feb 6, 2025

Thank you for becoming a fan of the library!
Although it's not documented, methods like getMatrixFlatten have an evaluates option.
By specifying table.getMatrixFlatten({ evaluates: false }), you can retrieve the unevaluated formulas.
However, it seems that the evaluates option is not working in v1.3.0.
I'll fix it shortly, so please bear with me for a moment.

@righ
Copy link
Member

righ commented Feb 7, 2025

The issue has been fixed in 1.3.1-alpha.0.
Please check if you are getting the expected result with table.getMatrixFlatten({ evaluates: false }).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants