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

.commit() method breaks some formulas #20

Open
urpizu opened this issue Jul 24, 2018 · 2 comments
Open

.commit() method breaks some formulas #20

urpizu opened this issue Jul 24, 2018 · 2 comments

Comments

@urpizu
Copy link
Contributor

urpizu commented Jul 24, 2018

Being a formula in a random cell: =SUM($1:$2) / =SUM($A:$B)
After commit it's broken to: =SUM(R1:R2) / =SUM(C1:C2)

After some research, it's a Google Sheets API issue. While next methods are equivalent...
range.setValue(=R[0]) ~= range.setFormulaR1C1(=R[0])

It looks that .setValue() can not recognize next R1C1 pattern, when .setFormulaR1C1() can:
range.setValue(=R1:R2) !== range.setFormulaR1C1(=R1:R2)

I've been able to avoid the issue using the Item.commitFieldValue(field) method.

@urpizu urpizu changed the title .commit() method break some formulas .commit() method breaks some formulas Jul 24, 2018
@sp-philippe-oger
Copy link
Contributor

Shall we close this issue now? Since yesterday PR, I don't think it is relevant anymore.

@urpizu
Copy link
Contributor Author

urpizu commented Jul 25, 2018

Woop, nope! This is the only issue we didn't fix with the yesterday PR! Sheetfu keeps breaking formulas when Item.commit() or Table.commit(). I'd keep it so future users can understand and find alternatives to the issue.

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

No branches or pull requests

2 participants