Jump to content
Changes to the Jaspersoft community edition download ×

Dynamic Fields

2005 IR Help

Recommended Posts

By: Dan Powell - danpowell

Dynamic Fields

2004-03-31 12:39

Is it possible to create fields dynamically (either through introspection into the DataSource or through paramaters) without creating a new report definition on the fly, compiling it, and loading it?


I am using a CustomDataSource approach to populate the report, but the columns in the DataSource, and thus the fields in the report, will change with nearly every report load.





By: David Lim - aberrant80

RE: Dynamic Fields

2004-03-31 19:35

I'm not too sure, but I know that you can still access your report's bands when it's still in .jasper format (JasperReport class).

Link to comment
Share on other sites

  • 2 years later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...



You are posting on a thread that is 4 years old and the initial poster do not get your message unless you write them on their Sourceforge.net accounts (the message was migrated).

Dan already mentioned the solution, but he said he does not want to do that. Still, it is the only one.

If you have dynamic reports, you need to create them dynamically, at runtime, using the JR API.

You can check the /demo/samples/noxmldesign sample provided with the JR project source files.


I hope this helps.


Link to comment
Share on other sites

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