Hi, I'm just starting out with Crystal and am wondering how to call a function which is in an Oracle schema whose tables I am pulling data from.
We are using Crystal Reports 7.0. The function is called Get_Hire_Date.
Function GET_HIRE_DATE
(Empid_In IN Varchar2)
RETURN date IS
Hire_date date;
BEGIN
Select eff_date
into Hire_date
from hris_employee_position
where empid = Empid_In
and version = (select max(version)
from hris_employee_position
where change_id in (1,21)
and empid = Empid_In);
RETURN Hire_date;
END;
If I can't call it to use in Crystal, how to I build this using a formula? Any help with this would be appreciated.
Thanks
Q
We are using Crystal Reports 7.0. The function is called Get_Hire_Date.
Function GET_HIRE_DATE
(Empid_In IN Varchar2)
RETURN date IS
Hire_date date;
BEGIN
Select eff_date
into Hire_date
from hris_employee_position
where empid = Empid_In
and version = (select max(version)
from hris_employee_position
where change_id in (1,21)
and empid = Empid_In);
RETURN Hire_date;
END;
If I can't call it to use in Crystal, how to I build this using a formula? Any help with this would be appreciated.
Thanks
Q