[CLOSED]Blank line between HEADING and Report with BODERs
See the code:
TABLE FILE CAR
SUM
SALES
BY LOWEST COUNTRY
HEADING
"Report"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
$
ENDSTYLE
END
In the output there is a blank line between the HEADING and the report. This is caused by WebFOCUS inserting
<TD COLSPAN=2 class='x3'>&.nbsp;</TD>
after the heading in order to close the border around the HEADING. Does anyone know a "simple" way to get rid of the blank line?
Ah well... I searched the Forum after I posted and saw the many requests... and still no solution...This message has been edited. Last edited by: <Emily McAllister>,
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
February 17, 2012, 09:11 AM
njsden
quote:
.. and still no solution...
Sadly that's still the case. And I doubt they'll ever fix it as it may have an impact on many existing reports that have been developed expecting that line there.
It would be interesting to have something like:
SET BLANKAFTERHEADINGONBORDER = { OLD | NEW }
Where: OLD -> Annoying blank line
NEW -> No blank line. Consistent behaviour (border or no border)
The setting name should be shorter obviously, I'm just trying to make a point here
@njsden Very true, it would leave other formats with the spacing issue and your idea of SET BLANKAFTERHEADINGONBORDER = { OLD | NEW } is the best one. I am wondering if the gap is for a subheading?
Developer Studio 7.7.02 Windows XP Pro SP3 and Windows 7 64bit all output
February 18, 2012, 01:23 PM
Danny-SRL
No. The gap is there to produce the bottom border of the HEADING as the top border of the gap. Was some programmer was a bit lazy?
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
February 18, 2012, 02:58 PM
Danny-SRL
After some research. Using the same code in my first post, if we look at the generated HTML, this is what comes out. I changed all hard spaces to &.nbsp to see them. The offending blank is marked with ==>>:
You will notice that if one takes out the offending line, then the output is just as we would like it. So? Where is the problem? Can't the SET as proposed by njsden be added?
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
August 30, 2016, 10:30 AM
David Briars
quote:
...It would be interesting to have something like:
SET BLANKAFTERHEADINGONBORDER = { OLD | NEW }
Where: OLD -> Annoying blank line NEW -> No blank line. Consistent behaviour (border or no border)
We are planning to upgrade from 8007 to 8105M, and have 8105M in a PILOT environment.
Searched the 8105M 'New Features' manual for a fix to the blank line between the HEADING and ColumnTitles, in high hopes, but no joy.
In 8.1 the offending blank line now has a class of 'x4' instead of 'x3'.
For example, when you run Danny's excellent example showing the issue, in the first post, you now see the following HTTML tag insert:
<td colspan=2 class='x4'>
</td>
So...if you were responsive to your users who didn't like the blank line, and hid 'x3' with CSS, you might need to consider remediation.
(If I am missing something, and there is a solution, I am all ears!)
Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster