Jump to content
Changes to the Jaspersoft community edition download ×

send a parameter to a sub-dataset


cek.i06go

Recommended Posts

I need to send a particular value to a sub-dataset.

dataset10 produce the table with a lot of value, for each row value invoke another dataset11 with this value like a foreach cycle that produce another table to shw in the report.

Its possible?

I hope I explained as best as possible ...

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Its helpful yes, but i need a solution to pass each rows result of datase10 to dataset11.

Example:

Dataset10 result this SQL table (i don't know how many and the result isn't static (it's possible in the future a val4, val5 and soon)):

val1

val2

val3

 

ok, for each value use this in the sub-dataset11 for compiling the query:

select *

from myTable

where myTable.attr = val1

 

and soon...

 

It's possible?

Link to comment
Share on other sites

Hi,

Create parameters which holds multiple values like parameter with datatyoe java.util.collection or java.util.list and asssign the value of parameters as field.

So that you will get all the values of field to parameter and map this parameter with your other dataset parameter.

Hope this helps.

Thanks,

Ajinkya

Link to comment
Share on other sites

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