Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] background color on BY fields when using OVER

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] background color on BY fields when using OVER
 Login/Join
 
Silver Member
posted
I have created an HTML report using OVER. I am needing to have the alternating background color appear also on the second line where the BY fields are. See example below......I would like to see the green or yellow color on BOTH lines of Region and State instead of the white color. Any ideas on how to do this?

 -* File backgroundcolor.fex
TABLE FILE GGSALES
PRINT 
     'GGSALES.SALES01.CITY' AS '' OVER 
     'GGSALES.SALES01.CATEGORY' AS ''
     'GGSALES.SALES01.PRODUCT' AS ''
BY 'GGSALES.SALES01.REGION'
BY 'GGSALES.SALES01.ST'
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = GREENBAR,
$
     UNITS=IN,
     PAGESIZE='Letter',
     LEFTMARGIN=0.500000,
     RIGHTMARGIN=0.500000,
     TOPMARGIN=0.500000,
     BOTTOMMARGIN=0.500000,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
     RIGHTGAP=0.125000,
     TOPGAP=0.013889,
     BOTTOMGAP=0.027778,
$
ENDSTYLE
END
 

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


WebFOCUS developer studio version 7.6.11
Windows
all formats
 
Posts: 36 | Registered: February 12, 2009Report This Post
Virtuoso
posted Hide Post
Could you post the contents of greenbar.fex so we can have a complete running code?



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.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Silver Member
posted Hide Post
Greenbar is the style sheet.....I just picked one.....use any style sheet you want that has alternating backgroud colors for the detail lines.


WebFOCUS developer studio version 7.6.11
Windows
all formats
 
Posts: 36 | Registered: February 12, 2009Report This Post
Expert
posted Hide Post
I think posting greenbar would be very helpful, as we do not know what is in it.

Here is my gestimate.

TABLE FILE GGSALES
PRINT 
     'GGSALES.SALES01.CITY' AS '' OVER 
     'GGSALES.SALES01.CATEGORY' AS ''
     'GGSALES.SALES01.PRODUCT' AS ''
BY 'GGSALES.SALES01.REGION'
BY 'GGSALES.SALES01.ST'
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     PAGESIZE='Letter',
     LEFTMARGIN=0.500000,
     RIGHTMARGIN=0.500000,
     TOPMARGIN=0.500000,
     BOTTOMMARGIN=0.500000,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,$
TYPE=REPORT,
     GRID=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
     RIGHTGAP=0.125000,
     TOPGAP=0.013889,
     BOTTOMGAP=0.027778,$
TYPE=DATA, COLUMN=P1, BACKCOLOR=(yellow silver), $
TYPE=DATA, COLUMN=P2, BACKCOLOR=(yellow silver), $

ENDSTYLE
END


Is this doing what you want or is it what you are currently getting ?


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
<JG>
posted
It's not actually possible to do the styling required by Mark.

The output genertated when using OVER uses empty TD tags to space the columns and as such
cannot be styled. (if using DHTML then it uses absolute positioning with the tags for cells completely missing)

<TD class='x2_0'>
Midwest</TD>
<TD class='x3_0'>
IL</TD>
<TD>
Chicago</TD>
</TR>
<TR>
<TD></TD>
<TD></TD>
<TD>
Coffee</TD>
<TD>
Espresso</TD>
</TR>  


or for DHTML

 <div style="position:absolute;top:102pt;left:45pt;width:47pt; text-align:left;" class='x2_1'>Midwest</div>
<div style="position:absolute;top:102pt;left:101pt;width:29pt; text-align:left;" class='x3_1'>IL</div>
<div style="position:absolute;top:102pt;left:139pt;width:138pt; text-align:left;">Chicago</div>
<div style="position:absolute;top:115pt;left:139pt;width:48pt; text-align:left;">Coffee</div>
<div style="position:absolute;top:115pt;left:205pt;width:81pt; text-align:left;">Espresso</div> 
 
Report This Post
Silver Member
posted Hide Post
Thanks for your insight and help.


WebFOCUS developer studio version 7.6.11
Windows
all formats
 
Posts: 36 | Registered: February 12, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] background color on BY fields when using OVER

Copyright © 1996-2020 Information Builders