while running a report it creates extra blank row in the end of the Report.I tried by setting ON TABLE SET HTMLCSS OFF while the blank row in the end of the report does not appear but also it hides the styles applied in the report.Please help me to solve out this problem.This message has been edited. Last edited by: <Emily McAllister>,
I tried by setting HTML CSS OFF it removes blank space but also styles of the report
Webfocus AppStudio 8201 Windows
July 09, 2016, 06:20 PM
Francis Mariani
This is an ages-old problem - the last row is used to create the bottom border for the real last report row - for HTML reports, WebFOCUS needs the <TR> and <TD> to generate the bottom border. It's ridiculous, but there's nothing you can do.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
July 11, 2016, 01:20 AM
Durai
I thank you very much for your reply Francis Mariani.This message has been edited. Last edited by: Durai,
Webfocus AppStudio 8201 Windows
July 11, 2016, 04:19 AM
Neelima
Hi Durai,
Could you please replicate your issue on sample car master file. It would be good for me.
Just wanted to say thanks for posting that link. This has been my bothering me for a while when trying to size reports and this blank line creates scroll bars that are not needed.
For others that might search and find this, you can inspect the element to determine the CSS class for the blank line at the bottom of the report (it's been something like .x6 or .x7 or some variant in my cases). You can then add this block of code at the end of your procedure to remove this element(I add it above the last END but below the ENDSTYLE). Hope this helps
ENDSTYLE
-HTMLFORM BEGIN
<html>
<head>
<style>
.x6 {
display:none;
}
</style>
</head>
</html>
-HTMLFORM END
END
WF 8.2.0.3 Windows 10 64bit HTML, AHTML, PDF, Excel
September 15, 2016, 04:31 PM
Francis Mariani
Just be sure that if your data changes, that x6 doesn't become a different class!
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
September 15, 2016, 04:46 PM
capples
Good point Francis, we just ran across this when someone tried to run one of the fexes with Message Viewer on as it caused the classes to change.
I think we'll mostly be using this on pages where the layout won't be changing in order to get the exact styling we want.
WF 8.2.0.3 Windows 10 64bit HTML, AHTML, PDF, Excel
February 20, 2017, 08:32 AM
Chaudhary
so we can make tables's last row as "display none"
-HTMLFORM BEGIN
<script>
var sheet = document.createElement('style')
sheet.innerHTML = "table tr:last-child {display:none;}";
document.body.appendChild(sheet);
</script>
-HTMLFORM END
Hi Folks, Rehashing an old one here... I can't seem to get this to work. I still get that blank line. I've tried both of Chaudhary and capples variants.
Should the HTMLFORM bit (the code in Chaudhary and capples post above) be placed after the END command of the TABLE or before it? I don't think it should matter.
Since REMOVING THE BLANK LINE BETWEEN A REPORT AND FOOTER is crazy painful, also sharing this works with other CSS Selectors. I used "nth-last-child(2)" instead of last-child. Thanks a lot!
-HTMLFORM BEGIN
<script>
var sheet = document.createElement('style')
sheet.innerHTML = "table tr:nth-last-child(2) {display:none;}";
document.body.appendChild(sheet);
</script>
<style>
body{ overflow-y: hidden;
margin-right: 30px;
margin-bottom: 100px;
border-style: none;
}
</style>
-HTMLFORM END