Not auto-calculated spreadsheet columns

Confluence User - 17 Oct, 2018
Hallo experts,
I need to auto-calculated several columns in my spreadsheet form but never succeed.  I tried put this script in Custom Settings (JSON) to trigger one column (i have 20 calculated columns ) but nothing happened : 
{
    "afterInit" : function() {
        var ht = this;
        var rows = ht.countRows();
        if (rows > 0) {
            var changes =  [];
            for (var i = 0; i < rows; i++) {
                changes[i] = [i, "calculated_column"""""];
            }
            //prepare changes to trigger the calculation
            ht.runHooks("afterChange", changes, "edit");
        }
    }
}
Any other solution ?
forms;spreadsheet

1


26 Oct, 2018
confluenceUser
confluenceUser

Hi, do you need custom code to do calculations? In the Spreadsheet page you can just use functions to perform calculations.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print