Hi.
When saving handsontable data to my database, I am looking for a way to include a column key, so if a new column is added at a later date, the current saved data can be loaded back into the correct columns.
Currently, I am using the following:
$.ajax({
type: "POST",
url: "http://www.mydomain.co.uk/?ACT=52",
data: { type: tableType, data: JSON.stringify(hot.getData()) },
success: function(response) {
console.log(response);
}
});
This saves something similar to:
[[null,null,null,null,null,null,null,null,null,null]]
I am hoping for something more like:
[[column_name:null,column_name:null,column_name:null,column_name:null,column_name:null,column_name:null,column_name:null,column_name:null,column_name:null,column_name:null]]