Forum Stats

  • 3,767,858 Users
  • 2,252,726 Discussions
  • 7,874,366 Comments

Discussions

How to send values from a List Manager to PL/SQL

Moisés
Moisés Member Posts: 2 Green Ribbon
edited Feb 18, 2021 5:45PM in APEX Discussions

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){

             

            }

        }

    );

}