I have a List Manager with static values, I can add and delete items, but I need to send this values with Javascript Promises to PL/SQL and read this values. I have this for send the array but I need how to receive the array in PL/SQL and with a cycle for read each value. Thanks for help.
var giro = document.getElementById("P28_NEW").value;
var selectedIds = [];
$('select#P28_NEW').find('option').each(function() {
//Make array with values
selectedIds.push($(this).val());
});
insert();
function insert(){
apex.server.process(
"AJAX_SEND_ARRAY",{
x01: JSON.stringify(selectedIds)
},{
dataType:"text",
loadingIndicator:"#P28_NEW",
success:function(pData){
}
}
);
}