Show / Hide Fields in Pentaho Report Based on User Input.
Version : Pentaho RD version : 5.2.0.0-209
Efforts :
I have used the banding element and the functionality formula to 'invisible consumes space'
I have used two bands one within another, with different layouts 'block' and 'row' to remove both spaces for invisible elements (in rows and columns).
Result :
It is giving appropriate result and working fine in Pentaho Report Desinger tool itself while updating Query to fetch any field either col1,col2 etc...
- It removes the hiding empty column space from row and column both. Agreed with that.
*Problem :
It still shows the blank Invisible Consumes column Space when doing that .prpt report integration in web application. eg. Grails
Please help me to come out from the problem.
Thanks.
Related
I am working on web based application using Visual Studio 2019 Preview with SAP Crystal Reports 2016 Support Pack 7.
The report consists of 20 columns in single row. There is a requirement to show two fix headings in details section.
Report Design:
What I want is to set the first heading in first row then list records from database then set other heading and print rest of the records by merging the fields and lines of first and second heading in details sections (similar to excel “Merge Cells Function”). Heading value is set in first column but since the width of first column is too short it is not visible and looks ugly.
Current Output:
Desired Output:
The number of records between first and second heading are not fixed and fetch from database.
In addition, since there are too many columns in single row not all columns are visible in printing. Could anyone advice how to fix them while printing?
Thanks
Group the report based on the logic of how you wish to separate the 2 groups of records.
Then, use a Group Header section to present the information you need at the top of each group.
note: if you are not familiar with Crystal, you Group by using
Insert, Group
or Report, Group Expert
Pentaho RD version : 5.2.0.0-209
Requirement Show / Hide Fields in Pentaho Report Based on User Input
I have a requirement that invisible elements on the report should not consume any space in row or column.
so i use the banding element and the functionality formula to 'invisible consumes space'
I have used two bands one within another, with different layouts 'row' and 'block' to remove both spaces for invisible elements (in rows and columns).
Note It is giving appropriate result and working fine in Pentaho Report Desinger tool itself while updating Query to fetch any field either col1,col2 etc...
But Integration that .prpt report in Grails, it stil shows the "Invisible Consumes Space" in row and column both.
Please help me to remove both spaces for invisible elements (in rows and columns) while integrating the Report to Grails or any web application
I have an MVC application which displays reports based on the report viewer.
Currently, the report has 4 columns and the requirement is to show columns based on the parameters selected.
I had achieved the solution by using sending parameters to the rdlc file and hiding the columns.
But now the problem which I am having is, when the report is exported as excel the last hidden column is showing as an empty column and this is an issue when printing the report from excel.
I would like to know if there is anything that can be done through code so that the column is not generated at all instead of hiding it. had done a lot of research but didnt find any solution. Can anyone please help me... Thanks!!!
One option would be to update the column's cell expressions to not return anything unless the parameter is set to show that column:
=iif(Parameters!HideColumnValue,Nothing,Fields.YourFieldName.Value)
If your column has background or line formatting that needs to not show when the column his hidden, you can set that as well:
Background Color:
=iif(Parameters!HideColumnValue,"White","Gainsboro")
Lines:
=iif(Parameters!HideColumnValue,"None","Solid")
I need create a crystal report to report the column across not down. The report itself is very simple, there is no need to group and summarize. The only thing is different from regular report is it need display the column across rather than down. I try use cross-tab, or multiple columns with no success. is there any way i can make is down in crystal? Thanks
The regular report with column down:
I need display like these:
try the following
put the the 4th names of the first column in the page header and make that section underlay the following section, then create 4 details sections, one per column and put the values values right next below and make the details to grow across then down.
for instance
page header
Mth
Vendor
Trans#
Amt
end of page header
details1 date field
details2 vendor field
details3 trans field
details4 amt field
I have created several drilldown reports within my report unit and one of them is based on number of transactions (drilldown for more detail).
I want the drilldown to only be available when the number of transactions is greater than or equal to one.
Can this currently be done?
You could have two fields stacked on top of one another, one with the hyperlink and one without. Set your expression to show the field without the hyperlink when transactions < 1, and show the field with the hyperlink when transactions >= 1.
Make HyperlinkExpression return null. This works for me.
http://community.jaspersoft.com/questions/520247/conditionally-display-link
JasperSoft Reports 6.12.2
Place Text field stacked on top of one another.
Add Print when Expression to display on condition.
In Hyperlink Settings
If do not want to display link then set Link Target : Self and Link Type : None
Else Link Target : Blank and Link Type : Reference and use Hyperlink Expression as per your need.