Jasperreports - Is it possible to work with datasource with dynamic (non-static) method?

Asked

Viewed 29 times

1

I am trying to generate a report powered by a web service.

The idea is that when the user calls the report generation command he (the command) calls a method that will bring back Java Beans from a web service.

In a preliminary test report I see that this is possible, and the method in question can be dynamic (i.e., non-static) and receive parameters, which is good.

But during the visual creation of JRXML in the Jaspersoft Studio tool I see that in order to test the generation of the report it is necessary that the data source (datasource) created in the tool call a method of a class that needs to be static.

Is this requirement really necessary? Or is there a way around it? Or I just resign myself to testing by calling a datasource with static method and then generating the report via code by calling a dynamic method that is all right?

  • Man, it is. I can get around it. Unfortunately I no longer have access to the source that did exactly that and I need to research on the subject, because I’ve been dealing with it for a long time.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.