Jump to content
Changes to the Jaspersoft community edition download ×

Change value of input control by selecting others


Recommended Posts


I am new to jasper. I wonder if there is a way to change the value of a list input control by selecting some value in other list.




For example in my report there are two list course and subject, which each course has 6 subjects. If I change the value of course_list from A to B, and then in list of subject was changed from the subjects of A to the subjects of B.




I have tried to load the data to course_list and subject_list from database. I create a parameter to store course value and the sql query of subject_list is: select subject_name from table where course=$P{course}. But it give me exception: java.lang.Exception: 1 -java.lang.NullPointerExceptionÂ

I think the parameter is not assigned any value at that stage.





Thanks million for helping!


Post edited by: ky5566, at: 2007/08/09 15:12

Post edited by: ky5566, at: 2007/08/10 10:41

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

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