Posted 9 November 2023, 1:25 pm EST
I need to pass several lists of values as parameters and the function receives the cell values
ex: =CUSTOM(A1:A8,B1:B5)
Today I can only receive the list of values using acceptsArray = true but I always need to pass which sheet I’m using
ex: =CUSTOM(Sheet1!A1:Sheet1!A8,Sheet1!B1:Sheet1!B5)
even when using just one sheet or inserting the formula in the same sheet as the cells
my function:
var customFunction = function () {
};
customFunction.prototype = new GC.Spread.CalcEngine.Functions.AsyncFunction(“CUSTOM”, 1, 255, null);
customFunction.prototype.defaultValue = function () {
return “Loading…”;
};
customFunction.prototype.acceptsArray = function () {
return true;
};
customFunction.prototype.evaluate = function (context, …parametros:any) {
console.log(parametros) }
