APEX version: 4.1.1.00.23
I have a shuttle on a page, and when I move item(s) to the right panel from the left, I want to update a table in the database with what is in a select list.
In this case, when I select ‘Analyst_1’ from the drop down, it will populate the right side based on javascript.

DB table (before clicking button):
Field Analyst
Co-Borrower Credit Score Analyst_1
Appraised Value (null)
Appraisal Identifier (null)
Then, after I move some items from the left panel to the right panel and click ‘Apply Changes’, I want ‘Analyst_1’ to be put in the analyst field on the DB for each of the field names on the right panel.

DB table (after clicking button):
Field Analyst
Co-Borrower Credit Score Analyst_1
Appraised Value Analyst_1
Appraisal Identifier Analyst_1
Here is my code for when the button ‘Apply Changes’ is clicked.
Update Data_Table
set ANALYST_NAME = :P51_ANALYST
where FIELD = :P51_SHUTTLE_RIGHT;
I used the following code to get the DB to update the Analyst (select list) based ONLY on the items in the right panel to work.
NOTE: This only updated the DB based on the right panel. If you move something from the right panel, to the left panel, it will still appear on the right panel after the page is submitted.
Create page process (PL/SQL anonymous block) after submit: