Jump to content
Changes to the Jaspersoft community edition download ×

iterating dynamic templates in list subreport


petr.kalafatic

Recommended Posts

Hi,

I want to make iteration of list data source dynamic, but can't find out how to do it, any advice ?

Thanks Petr

 

Example:

data [1,2,3]  templates [a,b,c]

iterate: data[index] -> templates

<subreport>
                <parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression>              
                <dataSourceExpression><![CDATA[$F{listDataSource}]]></dataSourceExpression>
                <subreportExpression><![CDATA[$P{REPORT_SCRIPTLET}.loadReport(($V{index}))]]></subreportExpression>
  </subreport>

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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