Jump to content
Changes to the Jaspersoft community edition download ×

howto manually fill live data into a report adhoc / just-in-time


ospf

Recommended Posts

Hi!

I just searched my ass of to find an answer to this question to no avail
albeit i think what i want is fairly trivial - i hope someone can help me.

I want to fill a Report with one dataset at a time, because the information
is generated just-in-time from a packaging machine. Time is critical,
so i have to adhoc fill my report with every single dataset just the moment 
i get the current dataset complete. Something like this:


    wait for the dataset to become complete
    fill the report with the one dataset
    print the report

The best way to do this that i know up to now is this:

    create a bean with a dataset
    create an array of this one dataset
    create an JRBeanArrayDataSource with the array
    fill the report with the datasource
    export or print the report

But i have the strong Feeling, that this is not the optimal solution, 
because i simply want to give the fields to the report directly
without using that Bean-Array for just one dataset.

Is there a more elegant way to do this?

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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