cagali
Posts: 10
|
Posted: 03/18/2014, 4:05 AM |
|
I am having 2 parameters which is set as in/out type (URL) in my store procedure. Below are the code i customize with action after execute insert:
try {
SPCommand command = (SPCommand) e.getCommand();
Object p1= command.getOutParameter(0);
Object p2= command.getOutParameter(1);
String err_code= p1== null ? null : p1.toString();
String err_msg= p2== null ? null : p2.toString();
}catch(Exception e) {e.printStackTrace();}
The above code always throw me java nullpointer exception.
Can anyone advice on how to resolve this issue?
And, for CCS5, is anyone know how to retrieve the store procedure value which direction are set as input/output in the sql procedure?
|