CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 Stored Procedure Input/Output Parameters in CCS5

Print topic Send  topic

Author Message
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?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.