i created InterActive Datagrid and it’s colum currencyId create dynamicAction event execute java script query and set this code
// Get the Interactive Grid model
var model = apex.region("PAYEMNTDetails").widget().interactiveGrid("getViews", "grid").model;
// Retrieve the selected rows
var selectedRecords = model.getSelectedRecords();
if (selectedRecords && selectedRecords.length > 0) {
// Access the first selected record
var record = selectedRecords[0];
// Get the CurrencyId field value
var currencyId = record[3]; // Replace 3 with the actual index of CurrencyId field, or:
// var currencyId = record.getValue("CURRENCYID"); // If the field name is "CURRENCYID"
console.log("CurrencyId:", currencyId);
} else {
console.log("No row is selected.");
}
i want to get the current value after changed
the problem : this code give me previous value before change