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     [SOLVED] Format specific text in header or footer
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Format specific text in header or footer
 Login/Join
 
Gold member
posted
Is there a way to format specific text in headers/footers?
Like this:
Transaction PST_DT from a prior month can appear in the following month AS_OF_DT. These will be highlighted in YELLOW

-> could the word YELLOW actually have a background of yellow?

Currently, it's the entire line
TYPE=FOOTING,
LINE=2,
OBJECT=TEXT,
ITEM=1,
BACKCOLOR=RGB(255 255 153),

Thanks

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


WF (App Studio) 8.2.01m / Windows
Mainframe FOCUS 8
 
Posts: 92 | Registered: February 20, 2008Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi Bob,
You could do this by inserting spot markers <+0> on both sides of the word you want to highlight and then set the background color for that item.

Here is an example:

TABLE FILE CAR
SUM 
     CAR.BODY.SEATS
     CAR.BODY.DEALER_COST
     CAR.BODY.SALES
BY  CAR.ORIGIN.COUNTRY
BY  CAR.COMP.CAR
BY  CAR.CARREC.MODEL
BY  CAR.BODY.BODYTYPE
ON TABLE SUBHEAD
"Amazing <+0>Yellow <+0>Cars"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     SIZE=22,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=2,
     SIZE=22,
     BACKCOLOR='YELLOW',
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=3,
     SIZE=22,
$
ENDSTYLE
END



WebFOCUS 8.0.09
App Studio 8009
Linux Kernel-2.6
DBMS: Oracle 11g
all output (Excel, HTML, AHTML, PDF)
 
Posts: 84 | Location: Oklahoma City, Oklahoma | Registered: July 01, 2010Reply With QuoteReport This Post
Gold member
posted Hide Post
[Solved]
Thanks Seyed. This worked. Knew about this but forgot.

Note: can't seem to get BACKCOLOR to work. So I applied font color and style instead.

BobV


WF (App Studio) 8.2.01m / Windows
Mainframe FOCUS 8
 
Posts: 92 | Registered: February 20, 2008Reply With QuoteReport This Post
Gold member
posted Hide Post
Bob,
Double check your line number and item number for the word you want the background color changed is correct. BACKGROUND setting applied when line number and item numbers are found.


WebFOCUS 8.0.09
App Studio 8009
Linux Kernel-2.6
DBMS: Oracle 11g
all output (Excel, HTML, AHTML, PDF)
 
Posts: 84 | Location: Oklahoma City, Oklahoma | Registered: July 01, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
As your report is HTML, you could use CSS to style the text.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.04OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 5986 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Format specific text in header or footer

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