Focal Point
[CLOSED] Heading Excel [two Heading lines]

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4987053096

June 11, 2018, 04:15 AM
jenni
[CLOSED] Heading Excel [two Heading lines]
Hi,

I am separating my Header with a ','. When I run my fex, the separated heading is in the same Cell in Excel.
Does soemone know how I can split the heading into two cells?

Thanks.

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.1.05
Windows, All Outputs
June 11, 2018, 08:13 AM
Frans
use <+0> in combination with HEADALIGN:

TABLE FILE CAR
BY COUNTRY
BY CAR
SUM SALES
HEADING 
"TEST <+0> TWO"
ON TABLE PCHOLD FORMAT EXL07
ON TABLE SET STYLE *
	HEADALIGN=BODY,$
ENDSTYLE
END  



Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
June 12, 2018, 02:34 AM
jenni
Thanks but it's not working. it just writes the <+0> into the Header, that's it... Ideas?


WebFOCUS 8.1.05
Windows, All Outputs
June 12, 2018, 07:13 AM
Frans
Did you try the example I've provided?


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
June 13, 2018, 07:19 AM
jenni
I did, but I think I didn't explaine it correcty.

it' s the "as 'whatever <+0> the next cell underneath the whatever'"

not the heading..


WebFOCUS 8.1.05
Windows, All Outputs
June 13, 2018, 08:53 AM
Lisa Lindquist
Try this:
TABLE FILE CAR
BY COUNTRY
BY CAR
SUM SALES
HEADING
"TEST"
"TWO"
ON TABLE PCHOLD FORMAT EXL07
ON TABLE SET STYLE *
HEADALIGN=BODY,$
ENDSTYLE
END


WebFOCUS 8.2.01M3
Windows, All Outputs
June 13, 2018, 10:01 AM
MartinY
Adding a comma is like you are adding a carriage return/line feed in the text.

To have it split into two cells you need two rows in your header such as Lisa sample.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
June 14, 2018, 09:58 AM
jenni
@Lisa Lindquist: Like I said, it's not hte heading, it's the title!!!

so my value as 'text 1, text 2'


WebFOCUS 8.1.05
Windows, All Outputs
June 14, 2018, 11:44 AM
MartinY
jenni,

I don't understand why you would like to accomplish such a thing.
Having column's title in two cells will make you not able to use the Excel feature properly such as filters, pivot table, slicer, etc.

Can you explain you goal by doing that ?


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
June 20, 2018, 12:18 PM
Doug
quote:
it's not the heading, it's the title!!!

I think what Lisa's saying is in order to do what you want, the final display showing the 'Column Titles' on two lines, you need to use two heading lines instead of the 'Column Titles'.

So, you would use a "AS ''" on all you PRINT, SUM... fields, and use the spot makers, as Frans showed, for alignment of those 'titles' over the associated 'columns.

I've used this methodology countless times, or more times than I care to count.

So, Yes, We can do this in WebFOCUS! ~ Doug

PS: Keep in mind what Martin Y said. With the caveat that you can filter on the second line, awkward, but it's doable.