My Interactive Grid SQL Query's last column is of Switch Type with Values Yes / No. If user changes value of this column (from N to Y), I want to capture the new changed value (Y) in the dynamic action JavaScript in "val" but the below code snippet is returning the initial value of the switch column (N), not the changed value (Y).
var $te = $(this.triggeringElement);
var rowId = $te.closest('tr').data('id');
var ig$ = apex.region("GMIG").widget();
var model = ig$.interactiveGrid("getViews", "grid").model;
var record = model.getRecord(rowId);
var comm = model.getValue( record, "USER_EXIST");
var val = comm["v"];
alert(val);