最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

jquery - Iterating through the getChanges array - Stack Overflow

matteradmin6PV0评论

Currently in my oracle apex application, I am trying to target changes made within an interactive grid and pass the column name, record ID, and contents of the changed cell to an AJAX callback every time an update is made to the interactive grid.

My idea was to iterate through the array returned by getChanges but I am having some difficulty. With the following code, called from a change dynamic action with .a-GV-cell as the jQuery target, the record ID is printed to the console, but only after a second change is made. There seems to be a delay.

var model = apex.region('IG_STATIC_ID').widget().interactiveGrid('getCurrentView').model;
var changes = model.getChanges();

changes.forEach(function(change) {
    var recId = model.getRecordId(change.record);
    console.log(recId);
});
Post a comment

comment list (0)

  1. No comments so far