Solved

Pentaho Reports

Posted on 2014-11-05
4
198 Views
Last Modified: 2015-05-20
Please find attached screenshot of my report requirement.
I need to create the same in the pentaho report with data and label been made invisible if data is not available.
Please let me know how to handle this in a smart way.
Thanks All.
Capture.PNG
0
Comment
Question by:Star79
  • 2
4 Comments
 
LVL 32

Accepted Solution

by:
Daniel Wilson earned 500 total points
ID: 40430251
Your data and label have a Visible property.  Put a formula in there ... something like

If(strlen(datafield)>0,True,False)

I'm a bit rusty on the syntax, but that's the basic idea.
0
 

Author Comment

by:Star79
ID: 40433061
I did that but when we preview and the data is empty it leaves the empty spaces without deleting those spaces
0
 

Author Closing Comment

by:Star79
ID: 40448473
solved a part of the question
0
 
LVL 4

Expert Comment

by:Anthony Carter
ID: 40787899
Hi,

I know this might be a bit late, but you could put each data/label inside a band and use the visible property on the band rather than on the object.  That way the whole band gets hidden.

There is also the option to remove whitespace property (can't remember of the top of my head) that would then collapse any gaps.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A short article about a problem I had getting the GPS LocationListener working.
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now