Jump to content
JasperReports Library 7.0 is now available ×

Recommended Posts

By: Samanth Athrey - samanth_athrey

calling a SP

2002-04-10 22:02

hi all,

 

i tried calling a SP directly from the XML file and it works. but when i pass that as a parameter it fails. why is this so?

 

also, i have a questions. i checked the code JRQueryExecuter where it actually executes the SQL statement. Here it is using PreparedStatement! How is it possible for it to execute a SP??? any idea? or is there something that am missing out here

 

thanx

sva

 

 

By: Steven Blough - stevenblough

RE: calling a SP

2002-04-11 04:51

You can not use a SP with a parameter within the XML. To do this you will need to use a datasource object. It takes a bit more work but you will have a far more flexible solution in the end.

 

-Steven Blough

 

 

 

By: Samanth Athrey - samanth_athrey

RE: calling a SP

2002-04-11 05:01

correct, i agree with you.

 

but when you say <queryString><![CDATA[Get_OrderDetails[123]]]></queryString> this works perfectly fine. how is that??? if you try just passing the value 123 as parameter from a component, it gives a vague runtime exception. i fail to understand this!!

 

sva

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...