This post is about calling stored function in ADF Application , a very basic requirement. Many times we need to call a PL/SQL function in ADF app for any specific requirement.
In this post i am discussing same so for that i have created a PL/SQL function that takes EmployeeId as input parameter and return it's Employees Name (Using Oracle HR Schema)
CREATE OR REPLACE FUNCTION FN_GET_EMPNAME(EMP_NO NUMBER) RETURN VARCHAR2 IS EMP_NAME VARCHAR2(50) := 'N'; BEGIN SELECT FIRST_NAME||' '||LAST_NAME into EMP_NAME FROM EMPLOYEES WHERE EMPLOYEE_ID=EMP_NO; RETURN EMP_NAME; END;