iReport: Passing parameters from a main report query to a dataset query for a table or list

后端 未结 4 1245
猫巷女王i
猫巷女王i 2020-12-15 05:52

I understand how to pass parameters from a main report to a subreport, since there\'s a specific field for this in the subreport object. However, I\'d like to do the same th

4条回答
  •  长情又很酷
    2020-12-15 06:20

    To pass the parameters from main report to the table or list datasources in the iReport upper version we need to do following steps:

    1. create required parameters in the main report by right clicking on the parameters section of main report------> add parameter-------->set the properties (data type) of newly added parameter to your desired one.
    2. create equivalent parameters in the table/List's data source's parameters section exactly as in step 1.
    3. from report explorer, right click on the table and click on Edit Table DataSet ------> Select the parameters tab ----------->Click on add ---------->Choose the parameter (which you created in the dataset's parameter section in step 2.) from upper combo (i.e. Dataset parameter name) ------> then click on lower button (i.e.) assign value expression i.e. the params which you added in step 1.

提交回复
热议问题