Select Execute PL/SQL Code for Action and enter the following for PL/SQL Code (or copy the code from /home/oracle/Desktop/solutions/apexp2_lab/dynaction01.txt)
declare
l_commission number;
begin
SELECT commission_pct INTO l_commission
FROM employees
WHERE employee_id = :P2_EMPLOYEE_ID;
:P2_BONUS := :P2_SALES_AMOUNT*l_commission;
end;
Enter P2_EMPLOYEE_ID,P2_SALES_AMOUNT for Page Items to Submit and enter P2_BONUS for Page Items to Return and click Next.
No comments:
Post a Comment