APEX version: 4.1.1.00.23 Example: http://apex.oracle.com/pls/apex/f?p=27554:51 login: demo pw: demo
I have a shuttle on a page, and when I move item(s) to the left panel from the right, I want to update a table column 'Analyst' in the database with 'null'
When the page loads there may or may not be items in the right panel.
DB table (when page loads):
Field Analyst
Co-Borrower Credit Score Analyst_1
Appraised Value Analyst_1
Appraisal Identifier Analyst_1
Then, after I move some or all items from the right panel to the left panel and click 'Apply Changes', I want 'null' to be put in the analyst field on the DB for each of the field names on the left panel.
DB table (after clicking button):
Field Analyst
Co-Borrower Credit Score Analyst_1
Appraised Value (null)
Appraisal Identifier (null)
Here is my current page process (after submit):
declare
tab apex_application_global.vc_arr2;
l_count number;
begin
tab := apex_util.string_to_table (:P51_SHUTTLE);
for i in 1..tab.count
loop
select count(*) into l_count from DQ_MANUAL_EDIT WHERE DQ_ATTRIBUTE = tab(i);
if l_count > 0 then
UPDATE DQ_MANUAL_EDIT
SET DQ_ANALYST = :P51_DQ_ANALYST
WHERE DQ_ATTRIBUTE = tab(i);
end if;
end loop;
end;
THANKS IN ADVANCE!!