I’m experiencing a similar issue. I’m trying to access the data in the table for use in another table.
When I try retrieving the data it comes out as null when I reference the object:
Handsontable.hooks.add(‘afterChange’, (changes) => {
changes.forEach(([row, col, oldValue, newValue]) => {
var salaryData = data[2][2];
// var salaryThis = this.getData(2,2,2,2);
var rowData = this.getCellMeta(2);
var salary = hot.getData(2,2,2,2);
var equity = hot.getData(3,2,3,2)[0];
var bonusPercentage = hot.getData(4,2,4,2)[0];
var refresher = hot.getData(5,2,5,2)[0];
var signOnBonus = hot.getData(6,2,6,2)[0];
console.log(“data at cell”,hot.getDataAtCell(2,2));
console.log(“salaryThis”, rowData);
console.log(“salaryData”,salaryData);
console.log(“salary”,salary);
console.log(“equity”,equity);
calculatedValuation.loadData([companyTitles, calculateFourYearValue(salary, equity, bonusPercentage, refresher, signOnBonus)]);
calculatedValuation.render();
console.log(“changes”, row, col, oldValue, newValue);
});
}, hot);
I tried using this
as listed in the article but it seems that the article is outdated as this is not referenced in the event handler. Any ideas how I can retrieve the value I’m looking for?