How to find updated column name
Closed this issue · 2 comments
sajumani commented
Hi,
Am using joins ; So i want to update it in different table based on the updated columns.
How to find updated column name ?
ylh3721 commented
Hi sajumani
I think you can get the update field by comparing the data before the update.
sajumani commented
I solved it by
function leadFunction( updatedCell, updatedRow, oldValue ) {
var cols = songlog.settings().init().columns;
console.log(\"Logs The new value for the cell is: \" , updatedCell.data());
console.log(\"The old value for that cell was: \" , oldValue);
console.log(\"The values for each cell in that row are: \" , updatedRow.data());
$.post( URL,{ 'old': oldValue,'column': cols[updatedCell.index().column].name, 'data' : updatedRow.data() },function(){
lead.ajax.reload();
});
}