Hello,
I'm using apex 21.2
I get the ID from first and last record like this:
var grid = apex.region('MY_INTERACTVE_GRID').call('getCurrentView'),
model = grid.model,
totalRecords = model.getTotalRecords(),
firstRecord = model.recordAt(1),
lastRecord = model.recordAt(totalRecords - 1);
console.log(firstRecord[1]);
console.log(lastRecord[1]);
I also can get the selected id record ...
var model = this.data.model;
if (this.data != null){
if(this.data.selectedRecords[0] != null){
v_curr_id = model.getValue(this.data.selectedRecords[0], "ID");
}
}
apex.item("P1_SELECTED_ID").setValue(v_curr_id);
but how do I get the ID from the previous and next row ?