Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Heading Excel [two Heading lines]
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Heading Excel [two Heading lines]
 Login/Join
 
Platinum Member
posted
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
 
Posts: 177 | Registered: October 17, 2017Reply With QuoteReport This Post
Guru
posted Hide Post
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.
 
Posts: 435 | Location: Europe | Registered: February 05, 2007Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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
 
Posts: 177 | Registered: October 17, 2017Reply With QuoteReport This Post
Guru
posted Hide Post
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.
 
Posts: 435 | Location: Europe | Registered: February 05, 2007Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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
 
Posts: 177 | Registered: October 17, 2017Reply With QuoteReport This Post
Member
posted Hide Post
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
 
Posts: 14 | Location: Minnesota | Registered: August 01, 2016Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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
 
Posts: 2341 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Platinum Member
posted Hide Post
@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
 
Posts: 177 | Registered: October 17, 2017Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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
 
Posts: 2341 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Expert
posted Hide Post
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.
 
Posts: 3103 | Location: Middle Tennessee | Registered: February 23, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Heading Excel [two Heading lines]

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.