Jump to content
Changes to the Jaspersoft community edition download ×

Is dynamic columns possible?


cuiweibing

Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

 

You could build or modify the report template dynamically using the API, just like shown in the /demo/samples/noxmldesign sample that comes with the project distribution.

If you do that, you would also need to compile it on-the-fly after building or modifyinf the JasperDesign object.

 

I hope this helps.

Teodor

Link to comment
Share on other sites

  • 1 year later...

thanks, I have actually used the api to modify my jasperDesign object and recompile my report.  The question I have is, how to I wrap columns.  At times the columns I have, created dynamically from user input, exceeds the width of the page.  How to I create new pages at the end of the report for the remaining columns.  Crosstabs do something similiar when the columns exceed the width of the page, it prints the remaining columns at the end of the report on new pages.  How could I achieve something similiar?

 

thanks,

Link to comment
Share on other sites

  • 1 month later...

Hi everyone,

I want just to ask you about the dynamic columns, if there is any improvment about creating dynamic reports, or I should do it the way it is replied earlier?

The problem is that my report is too big and it will be very hard to implement it all using the api. Is there any way to create it with iReport and then editing some how the text fields or static texts and their position or even remove some of them i it si needed, for example?

I will be very pleased if you can answer me soon!

Thank you in advance!

Link to comment
Share on other sites

There is another thread that also has a requirement to show/hide columns based on user input. Can you accomplish what you want by dynamicallly building a parameter list of subreports that is passed to the Master? Each column in your report would need to be a separate subreport. How many columns do you want to display in your report?
Link to comment
Share on other sites

  • 6 months later...

Hello, please I need change the design(.jrml) in execution time but not working,I dont no why...

  please ,any body can help me Lemay

Code:



Post Edited by michel Rodriguez at 03/17/09 03:56



Post Edited by michel Rodriguez at 03/17/09 03:57
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...