Get data of instance in separate file

Tags: #<Tag:0x00007efc6d685cc0> #<Tag:0x00007efc6d685770>

I have a handsontable instance named input in a file called input.html. I have a separate instance named output in a file called output.html. In my input.html file, I want to implement a function that will get all the number of non-empty rows of the table which is located in output.html. How can I accomplish this?

Hi @simeon.thomas238

Thank you for contacting us. In general, it would be easier to achieve if you would have both instances in one JS file, and just render them accordingly in chosen HTML files.

That way you would have access to the instances, and then you can use hooks countAllRows and countEmptyRows and substracts the latter from the first one to get the number of non empty rows. Here’s a simplified example: https://jsfiddle.net/handsoncode/sLq1b9f8/2/

Ok I will try that, thanks!