US and Worldwide: +1 (866) 660-7555
Results 1 to 3 of 3

Thread: How to pass a dataset from a xaction to a prpt report

  1. #1
    Join Date
    Jul 2009
    Posts
    20

    Default How to pass a dataset from a xaction to a prpt report

    Hello,

    I'm trying to send a subreport dataset to a prpt report from an xaction, and the report doesn't seem to recognize the prepared dataset that I'm sending.

    If I send two regular datasets with fixed data, it works. But of course in order to work allright, one of the datasets must be a prepared dataset.

    I followed the subreport example, but it uses a legacy report definition.

    Could anybody point me in the right direction?

    Thanks.

  2. #2
    Join Date
    Mar 2003
    Posts
    7,591

    Default

    Use a parameter that is declared to hold a tablemodel, and feed your result-set into the report using that declared parameter name. Then pass that parameter value to your subreport (using the subreport's parameter) where you can use it as a datasource via the external-datasource.
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  3. #3
    Join Date
    Jul 2009
    Posts
    20

    Default

    Thanks, Taqua!

    Do you happen to have a working sample? Because that's *exaclty* what I'm doing :S

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •