I need help with a dynamic action I have on a form page in Oracle APEX 4.2. I have a number of items setup that when changed in the dropdowns fire the dynamic action to return either 'Complete' or 'In Porgess'. When the page loads or when the an item is changed I keep getting null. I checked the debug also and it has verified that I am just getting null. Here is my PL/SQL Function body.
declare l_status varchar2(255);
begin
if
:p2_dbst_1_1 = 'Complete' AND
:p2_dbst_1_2 = 'Complete' AND
:p2_dbst_1_3 = 'Complete' AND
:p2_dbst_2_1 = 'Complete' AND
:p2_dbst_2_2 = 'Complete' AND
:p2_dbst_2_3 = 'Complete' AND
(:p2_dbst_2_3A = 'Complete' OR
:p2_dbst_2_3A = 'NA') AND
:p2_dbst_2_4 = 'Complete' AND
:p2_dbst_3_1 = 'Complete'
THEN l_status := 'Complete';
ELSE l_status := 'In Progress';
end if;
end;
The only item that can be 'Complete' or 'NA' is 3A.
I do have all of these items in the Change Item separated by commas and I am returning the l_status into dbst_3_1 as a display only item.
Any ideas on why I keep getting null and not Complete or In Progress? Also I need it to continue to run dynamically on the page over and over as the user is changing the items. Is there where the 'Dynamic Scope' comes in?
Thanks,
return l_status;
? – Tony Andrews