Posted 24 July 2020, 9:59 am EST
Hi,
We have bought spread sheet designer code and now we are able to render designer plus spreadsheet. We put the entire spread in Iframe and inside the iframe I have written a method to fetch the state in json format.
I am writing below line of code to achieve this.
(function() {
'use strict';
var spread = new GC.Spread.Sheets.Workbook(
document.getElementById('ss'),
);
var spreadsheetData = JSON.stringify(
spread.toJSON({ includeBindingSource: true }),
);
console.log('exported state', spreadsheetData);
})();
It is returning a json however the dataTable node is empty.
"data": {"dataTable: {}"} ...
I am making sure that below line is called once and it is correctly pointing to the instance of the spreadsheet.
var spread = new GC.Spread.Sheets.Workbook(
document.getElementById('ss'),
);
So please help me what am I missing? I am getting the json however the spread sheet cell data is not coming. This is little urgent issue for us. Need your guide.






