Is there a way to add additional key/values to the change data so that it will be available in the OldValues and NewValues Hashtables?
I have a grid of data that could be edited from different pages at the same time and I need to pass an additional key/value pair with the change data to track DB Concurrency issues.
// callback function
function cell_changed(sender, args) {
var row = args.get_row();
var field = args.get_columnUniqueName(); // column
var value = args.get_editorValue();
var timestamp = row.getAttribute("data-ts");
// how can I add an addition change to pass back with the newValues
cell.add_change("ts", timestamp);
}
// is this close?
var id = sender._masterCleintID;
var editor = sender.get_batchEditingManager();
var changes = editor._changes[id];
changes[{rowIndex}] = {
{field} = {
originalValue = {
"ts": timestamp
}
}
}
I have a grid of data that could be edited from different pages at the same time and I need to pass an additional key/value pair with the change data to track DB Concurrency issues.
// callback function
function cell_changed(sender, args) {
var row = args.get_row();
var field = args.get_columnUniqueName(); // column
var value = args.get_editorValue();
var timestamp = row.getAttribute("data-ts");
// how can I add an addition change to pass back with the newValues
cell.add_change("ts", timestamp);
}
// is this close?
var id = sender._masterCleintID;
var editor = sender.get_batchEditingManager();
var changes = editor._changes[id];
changes[{rowIndex}] = {
{field} = {
originalValue = {
"ts": timestamp
}
}
}