jeanjenkins Posted May 11, 2011 Share Posted May 11, 2011 Hi,I've written some stored procedures for iReports. I now want to pass iReport parameters to those procedures. Perhaps write a function I could use in a query, along with the iReport parameters. Was wondering if anyone else had done this. Thanks in advance. Link to comment Share on other sites More sharing options...
kolaitis Posted May 11, 2011 Share Posted May 11, 2011 Something like that in iReport query : (SELECT dbo.yourProcedure_Function (dataBaseFile.field, $P{iReport_Param1})) as Name1 (select dbo.yourProcedure_Function ($P{iReport_Param1}, $P{iReport_Param2}, $P{iReport_Param3}, $P{iReport_Param4})) as Name2 AND (SELECT dbo.yourProcedure_Function(dataBaseFile.field, $P{iReport_Param1}, $P{iReport_Param2})) = $P{iReport_Param3} ANDdbo.yourProcedure_Function(dataBaseFile.field) = $P{iReport_Param4} Good Luck.... Link to comment Share on other sites More sharing options...
jeanjenkins Posted May 11, 2011 Author Share Posted May 11, 2011 Hi, thanks. Do you have an example of a function that executes a procedure that creates a temporary table, and returns the contents of that table? Thanks in advance. I'm using mysql. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now