santoshtheprofessional Posted February 5, 2019 Share Posted February 5, 2019 I tried something like this:{call prc_JasperEmployeeData($P{LoggedInUserName} and $P{LoggedInFullName})}{call prc_JasperEmployeeData($P{LoggedInUserName},$P{LoggedInFullName})} but it shows error. Am I missing something? Please assist me. Link to comment Share on other sites More sharing options...
sthomas_3 Posted February 7, 2019 Share Posted February 7, 2019 I have created below procedure :CREATE OR REPLACE PROCEDURE prc_JasperEmployeeData(LoggedInUserName varchar2,LoggedInFullName varchar2, emp_cursor OUT sys_refcursor)ISBEGIN OPEN emp_cursor FOR SELECT username,fullname FROM jiuser where username =LoggedInUserName and fullname=LoggedInFullName;END;/and from Jaspersoft studio called the procedure as below{call emplist_proc($P{LoggedInUserName},$P{LoggedInFullName},$P{emp_cursor})} This returns the value as expected. You may have manually create fields to get the values. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now