Focal Point
[CLOSED] Title / Subtitle Layout

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

July 26, 2010, 09:05 AM
Ramkumar - Webfous
[CLOSED] Title / Subtitle Layout
Helllo,

I need to acheive TITLE / Subtitle Format in one of my reports.

For Eg:
Details ------------------Cost Details
Car Country ---------RetailCost Dealercost Sales

Here "Details" and "Cost Details" are main Titles.

Car and Country are Subtitles within Details.
RetailCost Dealercost and Sales are Subtitles within cost Details.

I need the grid between the main titles.

Could someone help me to implement this ?

This message has been edited. Last edited by: Kerry,


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
July 26, 2010, 10:12 AM
Francis Mariani
Whaaaa?


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 26, 2010, 11:13 AM
njsden
Ramkumar, there is no such thing as TITLE / Subtitle in WebFOCUS.

The tool allows you to have a TITLE for each column and that's it.

What you ask to have (if I understood correctly) can *perhaps* be achieved via HEADING's but this would only work in HTML.

Just search this forum for posts on COLSPAN, HEADALIGN and External CSS (CLASS) styling. You should be able to get some ideas.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
July 26, 2010, 01:12 PM
Norb Eckert
Rakumar,

For something quick and dirty (cuz that's how I roll) you could do the following:

  

TABLE FILE CAR
SUM 
  RETAIL_COST AS 'Retail Cost<br/><nobr>Gouge the losers!</nobr>'
  SALES  AS 'Sales<br/><nobr>You call that sales?! My dog could sell better than that!!</nobr>'
BY COUNTRY AS 'Country<br/><nobr>What''s with that Spotted Di*k pudding in England?</nobr>'
BY CAR AS 'Car<br/><nobr>I can hardly wait for Chrysler to sell Fiats!!</nobr>'
END


This will prevent the second line of the title from wrapping. Or as an alternative you could use CSS and reference a class such as ".nobr" in the TYPE=TITLE of the WebFocus stylesheet if you want your code to validate properly.

.nobr {white-space: nowrap}

Best wishes,

Norb


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
July 26, 2010, 05:37 PM
Waz
You don't mean Total and Subtotal ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

July 27, 2010, 01:54 AM
Ramkumar - Webfous
Hi All,

Thank you for your response.

@Waz - No. It is not total, Subtotal.

@Francis - Yeah. This is one of my Client's report requirment. We are migrating a Legacy application from Foxpro to Webfocus. So the report in the same layout.

@Norb : I need 3 and more Subtitles and Columns within every title.

@njsden : I am trying to implement using Heading and Colspan. But still, I wanted to know, whether there is some dirct way of doing this.

See the below image. Total sales, Margin are Titles.

*** / V.Pl / V.pl% are subitles.

This message has been edited. Last edited by: Ramkumar - Webfous,


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
July 27, 2010, 05:38 AM
Dan Satchell
You might use 'Cumulative', 'V.Pl', and 'V.Pl%' as column titles, and then use Njsden's suggestion to span those columns with 'Total Sales' and 'Margin', either as SUBHEADs or HEADINGs.


WebFOCUS 7.7.05
July 27, 2010, 07:58 PM
N.Selph
If your output is PDF, you have a bigger problem.
I had to do that once. I placed the top level titles (TOTAL SALES etc) on the bottom line of the header with spot markers. Then to get the boxes around the titles I overlayed a transparent gif of the borders only.
This was tech support's solution to the problem. But it really wasn't that hard to draw
the gif.

Still, I hope you are not needing PDF.


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
July 28, 2010, 02:52 AM
Ramkumar - Webfous
Hi Dan / Selph... Thank you for your replies.

@Dan, I have implemented the report that way. But the problem is with getting the Borders of the same sort.

@N.Selph, For now I am developing HTML and Excel. But I need to implement PDF also. Frowner . Could you please elaborate me more on the Overlayed GIF.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
July 28, 2010, 11:53 AM
N.Selph
To do the overlaid gif:
I measured my printed output carefully, after placing the wording on the bottom line of the heading exactly above the titles they needed to be.
I drew a picture of the borders in Windows Paint, and saved as a transparent gif file. I made this picture the right width and length to cover the header section of my report, and tried to draw the boxes in the right place.
Then placed this gif file in the Header section of the report at the top left.
I had to go back to Paint and adjust the lines over by a few pixels a couple times, because its hard to get the right placement even if you have measured carefully. It didn't take that long, though.
Alternatively, convince the client that they need something else, Music


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)