I implemented a JavaScript function to capture the unique ROWIDs of selected rows in the GRID and send them to a specific page item.
var gridView = apex.region("emp").call("getCurrentView"),
selectedRecords = gridView.getSelectedRecords(),
idValues = "";
for (var i = 0; i < selectedRecords.length; i++) {
var record = selectedRecords[i];
var idValue = record[0];
idValues += idValue;
if (i < selectedRecords.length - 1) {
idValues += ",";
}
}
$s("P43_ROW_SELECT", idValues);
Nevertheless, I now require utilizing these values in a server-side process. This necessitates submitting the page so that the item can actually receive the values for use in the process flow.
My inquiry revolves around whether there exists an alternative method to pass on the values received by the item directly to my PL/SQL process server side, without having to submit the page again. Is there any other approach to achieve this besides triggering a submission?