CodeCharge Studio
search Register Login  

Visual 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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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