cached value after adding row

cached value after adding row

vismarkvismark Posts: 79Questions: 5Answers: 0
edited August 2017 in Free community support

Hi, I'm moving some rows between 2 tables. I have a dynamic column that assumes a different value based on some other fields value (a select). This is an example of my code:

var clickedRow = queueTable.row($(elm))
var extraCols = [
    12
];
$.merge(clickedRow.data(), extraCols);
$(secondTable.row.add(clickedRow.data()).draw().node())
clickedRow.remove().draw();

Problem is that after row has been moved the first time, if i move it again changing the dynamic column value (for example to 13), the old value remains cached, even if what i see from the console.log(clickedRow.data()) that the object contains the new refreshed value. How can i refresh the cache? I tried redrawing both tables with *.draw() but it doesn't solve.

Replies

This discussion has been closed.