[CASE-OPEN] Problem solving the gap between header data and title data
Hello all. Let me first state that I've done lots of searching on this topic but have yet to find a solution that works in my version of Webfocus.
I have the following code which produces a report that has 5 lines of header before the title and data. I would like to eliminate the gap between the last header line and the title data below it.
Any help you can provide would be much appreciated!
The DROPBLNKLINE parameter suppresses blank lines around subtotals, subheadings, and subfootings when formatting a report for output. In addition, certain data lines may be blank and appear as blank lines on the report output. You can eliminate these blank lines from the report output using the SET DROPBLNKLINE=ON command.
This setting does not apply to the following output formats: HOLD/PCHOLD/SAVE formats, ALPHA, INTERNAL, BINARY, COM, COMT, COMMA, TAB, TABT, FIX, DFIX, all DBMS, VSAM, LOTUS, SYLK, DIF, FOCUS, and XFOCUS.
The syntax is: SET DROPBLNKLINE = {OFF|ON|BODY|HEADING|ALL}
where: OFF - Inserts system-generated blank lines as well as empty data lines. OFF is the default value. ON|BODY - Removes system-generated blank lines within the body of the report, for example, before and after subheads. In addition, certain data lines that may be blank and appear as blank lines on the report output will be removed from the output. BODY is a synonym for ON. HEADING - Removes the blank lines between headings and titles and between the report body and the footing. Works in positioned formats (PDF, PS, DHTML, PPT) when a request has a border or backcolor StyleSheet attribute anywhere in the report. ALL - Provides both the ON and HEADING behaviors
Originally posted by tomatosauce: what happens when you replace ON TABLE SET DROPBLNKLINE OFF with ON TABLE SET DROPBLNKLINE ALL ?
Nothing happens
WebFOCUS 8 Windows, All Outputs
April 27, 2017, 01:45 PM
manglum
quote:
Originally posted by tomatosauce:
The syntax is: SET DROPBLNKLINE = {OFF|ON|BODY|HEADING|ALL}
where: OFF - Inserts system-generated blank lines as well as empty data lines. OFF is the default value. ON|BODY - Removes system-generated blank lines within the body of the report, for example, before and after subheads. In addition, certain data lines that may be blank and appear as blank lines on the report output will be removed from the output. BODY is a synonym for ON. HEADING - Removes the blank lines between headings and titles and between the report body and the footing. Works in positioned formats (PDF, PS, DHTML, PPT) when a request has a border or backcolor StyleSheet attribute anywhere in the report. ALL - Provides both the ON and HEADING behaviors
I have done SET DROPBLNKLINE for each of the options above to no effect. I've seen this post before in my research.
WebFOCUS 8 Windows, All Outputs
April 27, 2017, 06:06 PM
Waz
Also, if you post code, please use the code tags.
It make the code readable and stops some of the code disappearing.
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
April 27, 2017, 08:45 PM
manglum
quote:
Originally posted by Waz: Also, if you post code, please use the code tags.
It make the code readable and stops some of the code disappearing.
Sorry, I used the tags but deleted part of the tag by accident. It has been corrected.
WebFOCUS 8 Windows, All Outputs
April 28, 2017, 06:13 AM
Hank W.
The SET DROPBLNKLINE doesn't bite on HEADING when you have different border styles between the heading and the column titles or the data and the footing.
Cheers, H. WebFOCUS 8.1.05M Oracle 11g - DB2 RedHat
April 28, 2017, 09:19 AM
manglum
quote:
Originally posted by Hank W.: The SET DROPBLNKLINE doesn't bite on HEADING when you have different border styles between the heading and the column titles or the data and the footing.
Do you mean strictly between the last heading and the top of the titles? I removed any border styling there and it didn't remove the gap. Or are you saying you cannot use borders at all?
WebFOCUS 8 Windows, All Outputs
April 28, 2017, 09:33 AM
manglum
quote:
Originally posted by Hank W.: The SET DROPBLNKLINE doesn't bite on HEADING when you have different border styles between the heading and the column titles or the data and the footing.
So, I went through and removed all border styling from my report and it indeed removed the gap between the header and the title line. However now I have white grid lines between all my header, title and data columns. Solved one problem and introduced another. :-)
WebFOCUS 8 Windows, All Outputs
May 05, 2017, 10:31 AM
FP Mod Chuck
Hi Manglum
Please re-post your most current code.
Thanks,
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
May 05, 2017, 10:45 AM
manglum
Chuck, The code posted above contains the border formatting and the code below contains no border formatting.
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
May 05, 2017, 11:53 AM
manglum
Chuck, Yes, of course they do :-) But if you look back at the original problem, whenever border formatting is employed there appears a blank white line (a gap) between the header data and the title line. I need that white gap to disappear.
WebFOCUS 8 Windows, All Outputs
May 05, 2017, 12:26 PM
FP Mod Chuck
Manglum
Sorry about that. You are right! You may want to open a case or maybe someone else has the answer. I'm sorry I was no help...
Regards,
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
May 05, 2017, 12:45 PM
Tom Flynn
Have you tried these SET commands at the top: SET PRINTPLUS=ON, TITLELINE=SKIP
Originally posted by Tom Flynn: Have you tried these SET commands at the top: SET PRINTPLUS=ON, TITLELINE=SKIP
Tom, No effect.
WebFOCUS 8 Windows, All Outputs
May 15, 2017, 12:18 PM
FP Mod Chuck
Hi Manglum
I think you should open a case with techsupport to see if they have an answer..
Thanks,
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
May 17, 2017, 03:27 PM
manglum
quote:
Originally posted by Chuck Wolff: Hi Manglum
I think you should open a case with techsupport to see if they have an answer..
Thanks,
Case opened.
WebFOCUS 8 Windows, All Outputs
May 28, 2017, 12:05 PM
Doug
Wishing you well in all that you do my Friend...
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
May 29, 2017, 05:58 AM
Hank W.
quote:
You may want to open a case or maybe someone else has the answer.
It's a 'documented feature'
Cheers, H. WebFOCUS 8.1.05M Oracle 11g - DB2 RedHat
June 01, 2017, 03:54 AM
Dave
Okay,
I'm going for "one of the worst hacks ever"-award.
You could add
-HTMLFORM BEGIN
<style>
.x19{display:none;}
</style>
-HTMLFORM END
either before the TABLE or after the END.
Works fine for HTML, aslong as the layout doesn't change.
Greets, Dave
_____________________ WF: 8.0.0.9 > going 8.2.0.5
June 01, 2017, 09:46 AM
manglum
quote:
Originally posted by Dave: Okay,
I'm going for "one of the worst hacks ever"-award.
You could add
-HTMLFORM BEGIN
<style>
.x19{display:none;}
</style>
-HTMLFORM END
either before the TABLE or after the END.
Works fine for HTML, aslong as the layout doesn't change.
Greets, Dave
Thanks Dave. I tried this in both ways you listed above and it still doesn't work in HTML output.
WebFOCUS 8 Windows, All Outputs
June 01, 2017, 09:47 AM
manglum
quote:
Originally posted by Hank W.:
It's a 'documented feature'
I'm finding lots of those. and several that aren't yet documented features...lol
WebFOCUS 8 Windows, All Outputs
June 01, 2017, 09:48 AM
manglum
quote:
Originally posted by Doug: Wishing you well in all that you do my Friend...
Thank you Doug, best wishes to you as well.
WebFOCUS 8 Windows, All Outputs
June 01, 2017, 03:12 PM
capples
quote:
Originally posted by Dave: Okay,
I'm going for "one of the worst hacks ever"-award.
You could add
-HTMLFORM BEGIN
<style>
.x19{display:none;}
</style>
-HTMLFORM END
either before the TABLE or after the END.
Works fine for HTML, aslong as the layout doesn't change.
Greets, Dave
This blank line is one of the most frustrating things to deal with in WebFOCUS and I wish there was an easier way to remove it. The above code DOES work, but you must first run your report, then use the developer tools in IE/Chrome/etc to inspect the blank line to get the class name. It is normally some variant of x1,x2,x3, etc. Then use the code posted by Dave. If you change anything in your report, then the class can randomly change as well and you will have to update the class name.
A new feature request to have a setting to disable this line would be nice though...
WF 8.2.0.3 Windows 10 64bit HTML, AHTML, PDF, Excel
June 01, 2017, 04:01 PM
manglum
quote:
Originally posted by capples:
quote:
Originally posted by Dave: Okay,
I'm going for "one of the worst hacks ever"-award.
You could add
-HTMLFORM BEGIN
<style>
.x19{display:none;}
</style>
-HTMLFORM END
either before the TABLE or after the END.
Works fine for HTML, aslong as the layout doesn't change.
Greets, Dave
This blank line is one of the most frustrating things to deal with in WebFOCUS and I wish there was an easier way to remove it. The above code DOES work, but you must first run your report, then use the developer tools in IE/Chrome/etc to inspect the blank line to get the class name. It is normally some variant of x1,x2,x3, etc. Then use the code posted by Dave. If you change anything in your report, then the class can randomly change as well and you will have to update the class name.
A new feature request to have a setting to disable this line would be nice though...
OK. So that x19 needs to be changes to whatever I find the class name to be and it will work? I'll give that a shot!
WebFOCUS 8 Windows, All Outputs
June 02, 2017, 05:46 AM
Tony A
Alternatively you could leave out your borders (as you did above) and then add the following. You don't have to pre-execute your code to make sure that you have the correct class!
Obviously only for HTML as I guess that your next step is the other output format(s) styling (unless you've already pulled out you hair doing that )
-HTMLFORM BEGIN
<style>
table{border-collapse:collapse;}
</style>
-HTMLFORM END
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
November 12, 2018, 09:20 AM
Aj_BI
Hi All, as per the information available over various earlier posts for similar issue and per the IBI documentation, the DROPBLNKLINE is not applicable to EXCEL format and there seems no straight forward way to achieve the same. As soon as we apply border to the DATA/REPORT, the blank line between HEADER and TITLE appears automatically. However, I have generated a workaround that meets the requirement. I have done the PoC on only three columns and anyone can extend the same as per the real time requirement.
Guys, again this is perhaps my first reply over the WebFOCUS community so I'd be more that glad to receive your positive up-votes and feedback. These would help me keep energetic for more replies
TABLE FILE CAR
PRINT
COMPUTE COUNTRY/A10 = 'COUNTRY';
COMPUTE CAR/A16 = 'CAR';
COMPUTE MODEL/A24 = 'MODEL';
BY HIGHEST 1 COUNTRY NOPRINT
ON TABLE HOLD AS CAR_TITLE
END
-RUN
TABLE FILE CAR
PRINT
CAR.ORIGIN.COUNTRY
CAR.COMP.CAR
CAR.CARREC.MODEL
BY COUNTRY NOPRINT
ON TABLE HOLD AS CAR_DATA
END
-RUN
TABLE FILE CAR_TITLE
PRINT
COUNTRY
CAR
MODEL
ON TABLE HOLD AS CAR_FNL
MORE
FILE CAR_DATA
END
-RUN
TABLE FILE CAR_FNL
PRINT
COUNTRY AS ''
CAR AS ''
MODEL AS ''
BY COMPUTE BLK/A1 = ''; NOPRINT
ON BLK SUBHEAD
"Markets and Discounts"
ON TABLE SET PAGE OFF
ON TABLE PCHOLD FORMAT XLSX
ON TABLE SET BYDISPLAY ON
ON TABLE SET DROPBLNKLINE HEADING
ON TABLE SET EMPTYREPORT ON
ON TABLE SET SHOWBLANKS OFF
ON TABLE SET STYLE *
TYPE=DATA,BORDER-TOP=LIGHT,BORDER-BOTTOM=LIGHT,BORDER-LEFT=LIGHT,BORDER-RIGHT=LIGHT,SIZE=10,$
TYPE=DATA, COLUMN=COUNTRY, FONT='CALIBRI',SIZE=14,COLOR='WHITE',BACKCOLOR=RGB(83 141 213),STYLE=BOLD,JUSTIFY=CENTER,WHEN=COUNTRY EQ 'COUNTRY', $
TYPE=DATA, COLUMN=CAR, FONT='CALIBRI',SIZE=14,COLOR='WHITE',BACKCOLOR=RGB(83 141 213),STYLE=BOLD,JUSTIFY=CENTER,WHEN=CAR EQ 'CAR', $
TYPE=DATA, COLUMN=MODEL, FONT='CALIBRI',SIZE=14,COLOR='WHITE',BACKCOLOR=RGB(83 141 213),STYLE=BOLD,JUSTIFY=CENTER,WHEN=MODEL EQ 'MODEL', $
TYPE=SUBHEAD, FONT='CAMBRIA',SIZE=16,COLOR=RGB(31 73 125),STYLE=BOLD, JUSTIFY=CENTER,$
ENDSTYLE
END
WebFOCUS 8 Windows, All Outputs
November 13, 2018, 10:20 AM
jgelona
Can you use a template file with an Auto_Open macro? Borders, Group Borders and much more are so much easier. Almost every excel report we do uses this method.
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.