tanvirtonu Posted December 10, 2007 Share Posted December 10, 2007 I m getting out of mind by this error.I am using iReport 2.0.2. I used " SELECT * FROM loan WHERE loan_id =$P{id} " in report query and I added a parameter; name= id , class type= integer, default value=1. But it says after compiling, parameter id not found. I M GETTING out of control bcos I did the same thing before and it worked. Link to comment Share on other sites More sharing options...
donclary Posted December 10, 2007 Share Posted December 10, 2007 Do you really want a default value for the parameter? I played around with a similar example. I have "Use as prompt" set to yes. My example prompts for a value and creates a report, until I set a default value. I tried leaving the default value and setting prompt to no, but it still does not work. Good Luck. I Hope to see how you solve this problem. Link to comment Share on other sites More sharing options...
tanvirtonu Posted December 10, 2007 Author Share Posted December 10, 2007 tanvirtonu wrote:I played around with a similar example. I have "Use as prompt" set to yes. My example prompts for a value and creates a report, until I set a default value. I tried leaving the default value and setting prompt to no, but it still does not work.Brother even if you try the way u tried,IT MUST WORK.But the question is- why it is not working. Link to comment Share on other sites More sharing options...
donclary Posted December 11, 2007 Share Posted December 11, 2007 I have attached the sample that I created when exploring the problem you reported. Maybe you can canabalize something from it. Set the default value for the parameter ID and the report will stop working. Good Luck! [file name=Labels.jrxml size=7753]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/Labels.jrxml[/file] 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