how can i pass a parameter from main report to Table component (ireport4.0.2)?

0

Hello All,

i am using ireport 4.0.2 , i have a main report that have a parameter called USER_ID, and in that report i want to create a Table  component. i want to use the same parameter when i create the table to fill it. but the table cannot see this parameter. so how can i pass it from the main report to the table.

note: there is no property on table or main report to set it.

 

 

 

 

 

 

 

mohednoor's picture
Joined: Jul 18 2011 - 4:13am
Last seen: 8 years 4 months ago

4 Answers:

12

If your table is using an additional dataset, declare the parameters in the dataset. Then pass in the params from the main report to the table element.

To do this right click table and select Edit Table Datasource. Declare parameters to be passed in under the Paramters tab.

I've attached a file with more info.

Hope that helps.

Magnus

phantastes's picture
Joined: Aug 22 2008 - 2:05pm
Last seen: 6 years 6 months ago
0

Thank you so much Magnus.

it works fine with me, i wasn't add the parameter in the way that you add it.

thanks again.

Regards.

Moh. Noor

mohednoor's picture
Joined: Jul 18 2011 - 4:13am
Last seen: 8 years 4 months ago
0

Glad it helped

phantastes's picture
Joined: Aug 22 2008 - 2:05pm
Last seen: 6 years 6 months ago
0

Thanks!!! It works

brahmaji85's picture
Joined: Oct 1 2014 - 3:03am
Last seen: 2 years 11 months ago
Feedback
randomness