tag:blogger.com,1999:blog-37642571.post8583535888248216969..comments2024-03-20T02:30:44.457-07:00Comments on Thinking In Software: IReport: Dynamically hide / show columns for Jasper ReportsNestor Urquizahttp://www.blogger.com/profile/12351754666722274569noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-37642571.post-83672364311287134452018-11-16T03:35:54.276-08:002018-11-16T03:35:54.276-08:00@Anjana I am not currently using Jasper so I sugge...@Anjana I am not currently using Jasper so I suggest you ask your question in stackoverflow or wherever Jasper community is gathering nowadays. Good luck!Nestor Urquizahttps://www.blogger.com/profile/12351754666722274569noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-13738729384044116692018-11-16T01:00:32.182-08:002018-11-16T01:00:32.182-08:00Hi Nestor,
It is very good and well understood p...Hi Nestor, <br /><br />It is very good and well understood post. I would like to understand is show hide possible with crosstab component of jasper i am using jasper 6.6.Anjanahttps://www.blogger.com/profile/15329222962485092663noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-67839423757567313112016-08-04T03:55:05.593-07:002016-08-04T03:55:05.593-07:00@Ramya I suggest you post your question in stack o...@Ramya I suggest you post your question in stack overflow or the current jasper reports forum. BTW these days I am producing the front end of any report from where it belongs, directly from app UI. Then if needed exported to excel, pdf etc. The technology is already there thanks to HTML/CSS/JS and if needed webkit. IMO reporting tools tried to create a language for visualization but they will continue losing adoption. The web is a mature platform and it has won. From a data visualization standpoint we should not look at reports as any special piece of the whole app but rather just as another view that in some cases presents some real time data (OLTP, predictive analysis) while in others it presents higher latency data (data marts, OLAP) .Nestor Urquizahttps://www.blogger.com/profile/12351754666722274569noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-11124355889650614022016-08-04T02:42:12.783-07:002016-08-04T02:42:12.783-07:00I am facing issues with whitespace in jasper irepo...I am facing issues with whitespace in jasper ireport 5.5.1. I have a static text and a textfield with height 60px (getting the textfield value dynamically). If I get null value from backend, then i was unable to reduce the height of textfield. Tried using RemoveLineWhenBlank and isBlankWhenNull but didn't get solution. Can anyone please help me out. <br />Thanks in advance.Anonymoushttps://www.blogger.com/profile/05389406603070317346noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-76571958994923921372014-10-23T20:32:16.680-07:002014-10-23T20:32:16.680-07:00@Krishna I am afraid you will need to test this in...@Krishna I am afraid you will need to test this in the version we tested it was working. If in newer versins then it stopped working you have a perfect test case to either share with the community in Talend forums or create a ticket in jira.<br />Cheers,<br />- NestorNestor Urquizahttps://www.blogger.com/profile/12351754666722274569noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-40368965895394734822014-10-22T22:49:07.351-07:002014-10-22T22:49:07.351-07:00nice one. but when i tried to execute this in jasp...nice one. but when i tried to execute this in jasper ireport 5.5.1 i am getting error like invalid report.. can u tell me how to run ur sample code??Krishna Ananthihttps://www.blogger.com/profile/06590496117955584889noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-25660980065863666642013-05-29T01:37:08.434-07:002013-05-29T01:37:08.434-07:00Solved it.. I just checked with Boolean input cont...Solved it.. I just checked with Boolean input control.. parametername in iReport=ID in the input controls of server.Sadakar Pochampallihttps://www.blogger.com/profile/13590828239755256167noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-64345748371687413972013-05-29T00:57:58.810-07:002013-05-29T00:57:58.810-07:00Nice article. I am newbie to iReport..
My Questio...Nice article. I am newbie to iReport.. <br />My Questions are :<br />I can use input controls with in the report designer well and fine.<br />i.e., I'm giving true,and false as you specified. <br /><br />Now, I want to upload the same report to the server and want see the preview. <br />What are the input controls I need to add over inputs folder for this report ?<br /><br />In the report you have used boolean .. So What type of input control should I use when uploading to the server like Boolean , Single select, multiselect(list, queries).. and How do I have to pass the parameters in the table query ??? Sadakar Pochampallihttps://www.blogger.com/profile/13590828239755256167noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-19461472008030261912012-11-07T13:31:07.052-08:002012-11-07T13:31:07.052-08:00@kapilan I just tested this with ireport version 4...@kapilan I just tested this with ireport version 4.7.1 and it does work. Check the XSD for your distribution and validate the jrxml, you might be running an incompatible version (older or newer than the ones I have used so far).Nestor Urquizahttps://www.blogger.com/profile/12351754666722274569noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-60046433025013534972012-11-05T21:13:40.987-08:002012-11-05T21:13:40.987-08:00hi...good work.but i m getting one error when usin...hi...good work.but i m getting one error when using this sample code like <br />cvc-complex-type.2.4.a: Invalid content was found starting with element 'c:table'. One of '{"http://jasperreports.sourceforge.net/jasperreports":component}' is expected.<br /><br />can anyone please tell me how to solve it?<br /><br />Thanks & Regards,<br />Kapilan.AAnonymoushttps://www.blogger.com/profile/07568584064844381928noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-73119168353681972312012-08-22T04:14:14.443-07:002012-08-22T04:14:14.443-07:00this post save me alot of time tnx =)this post save me alot of time tnx =)kimberhttps://www.blogger.com/profile/02448576027146148925noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-27284090914012870252011-08-26T06:10:26.658-07:002011-08-26T06:10:26.658-07:00@Dayana Baby
That would work if the entire column ...@Dayana Baby<br />That would work if the entire column is blank. If it contains a header it will still show up even if the whole column content is empty.<br /><br />That is good for rows but to "hide" a "non empty" column" you better use the technique described here .Nestor Urquizahttps://www.blogger.com/profile/12351754666722274569noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-28640950051242590802011-08-25T21:49:17.091-07:002011-08-25T21:49:17.091-07:00Hi Guys,
For removing the space(column space) whe...Hi Guys,<br /><br />For removing the space(column space) when there is no data, we can use the property of Remove Line When Blank.<br /><br />Regards<br />Dayana BabyDayana Babyhttps://www.blogger.com/profile/12139218944332830156noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-40394635158488999642011-08-01T09:07:56.945-07:002011-08-01T09:07:56.945-07:00Well that was not my goal. I am sorry if I did not...Well that was not my goal. I am sorry if I did not make it clear but the requirement here is that you can hide or add columns with *fixed* width.<br /><br />About dynamic width I really do not know how to make it happen.Nestor Urquizahttps://www.blogger.com/profile/12351754666722274569noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-71353697726746288752011-08-01T08:06:03.309-07:002011-08-01T08:06:03.309-07:00Yes, that's the point: they're shifted, bu...Yes, that's the point: they're shifted, but their width does not change and the whole table becomes narrower. And the goal is to keep the table size the same, just like in HTML where you can assign columns width in % and have variable number of columns: they'll just rearrange the space accordingly.dondahttps://www.blogger.com/profile/15778994754849329924noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-46590403387474245032011-08-01T07:42:24.351-07:002011-08-01T07:42:24.351-07:00@donda I just rerun the example and it did hide th...@donda I just rerun the example and it did hide the columns and the rest of the columns were shifted. I tested in iReport Designer 4.0.2 in a MAC.Nestor Urquizahttps://www.blogger.com/profile/12351754666722274569noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-57306248754754857332011-08-01T06:52:54.845-07:002011-08-01T06:52:54.845-07:00Useful stuff, indeed. But as far as i can see, the...Useful stuff, indeed. But as far as i can see, the columns are hidden and other columns are shifted to their place, thus shrinking the whole table. Is there a way to keep the original table width and make columns stretch horisontally to occupy the full width? Or did i get something wrong?dondahttps://www.blogger.com/profile/15778994754849329924noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-80904256335040216872011-06-09T23:19:35.211-07:002011-06-09T23:19:35.211-07:00Good stuff. I wish your post had existed a year a...Good stuff. I wish your post had existed a year ago. As it was, I ended up writing my own reporting engine in PHP... simpler than jasper, but at least I could hide columns easily at runtime. :-)dandahttps://www.blogger.com/profile/17581558754113054988noreply@blogger.com