Hi I am unable to call an oracle procedure from power builder 12.5 classic.
I am trying to call an oracle procedure Processattendance which has three String parameters employeeid, startdate and end date
As per the following instrucrtions in powerbuilder help, i have created a user object 'proccall'
- From the Objects tab in the New dialog box, define a standard class user object inherited from the built-in Transaction object.
In the Script view in the User Object painter, use the RPCFUNC keyword to declare the stored procedure as an external function or subroutine for the user object.
Save the user object.
In the Application painter, specify the user object you defined as the default global variable type for SQLCA.
Code your PowerBuilder application to use the user object.
In the window i use following statement to call procedure.
proccall.PROCESSATTENDANCE('1' , '21/10/2014' , '20/11/2014')
The application compile successfully.
But when i run the application, i get the error.
Powerbuilder application error R0002
Application terminated.
Error: Null object reference at line 14 in clicked even of object cb_1 of w_attendanceprocessing.
I get the same error even when i hardcode the parameter.
The same statement works in an sql editor.
Please help