-
Notifications
You must be signed in to change notification settings - Fork 885
Closed
Description
/**
* Update all related cells in the chain
*/
obj.updateFormulaChain = function(x, y, records) {
var cellId = jexcel.getColumnNameFromId([x, y]);
if (obj.formula[cellId] && obj.formula[cellId].length > 0) {
In this part of code, specifically IF, theres is this issue: I have a formula in the last row (SUM(A1:A2)), if delete the last row I should update to 0, then I set x.setValue("B1","0") but this is cycled, then I suggest this line
if (obj.formula[cellId] && obj.formula[cellId].length > 0 && obj.formula[cellId]!=cellId) {
Activity
pphod commentedon Sep 12, 2019
Can you create a jsfiddle to illustrate better your problem, please?
javg15 commentedon Sep 28, 2019
follow your example https://bossanova.uk/jexcel/v3/examples/programmatically-updates
pphod commentedon Oct 20, 2019
Your example resulted in a self-reference call. But, has been fixed in v3.5.2 (available in the master). It was included protections against it.