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     ACROSS Conditonal Styling with OVER Command - Missing Link?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
ACROSS Conditonal Styling with OVER Command - Missing Link?
 Login/Join
 
Member
posted
I have tried hard, but unable to get the alternate coloring for the 2nd column of my report that is the Column Title, using OVER command.
Can any anyone point, what I am missing.Below is the car fex for the issue repro.

I am using OVER in my fex, so second column, that looks like rows data is actually a Column title, and I want it to be alternate shading.Alternate coloring does not get applied, using the below code.The same gets applied in the first column though.

Fex Code:
==========
TABLE FILE CAR
SUM
COMPUTE CNTR/I11 = CNTR + 1; NOPRINT
COMPUTE NEWMOD/I3L = IMOD(CNTR, 2, NEWMOD); NOPRINT
BY CAR AS ''


SUM
DC OVER AS 'set1'
DC OVER AS 'set2'
DC OVER AS 'set3''
DC OVER AS 'set4'
DC OVER AS 'set5'
DC OVER AS 'set6'
DC OVER AS 'set7'
BY CAR AS ''
ACROSS COUNTRY NOPRINT
ACROSS COUNTRY AS ''
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SUBHEAD
"Run Date: 23/01/2015"
"Report ID: Testing team"
"Daily Test Run Details"
-*""

FOOTING
" "
"Report Run By: EDA Tester"
"This is the Testing details Report"
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='RPT NAME', $
-*TYPE=REPORT, FONT = 'ARIAL', SIZE=8, BORDER=1, $
TYPE=REPORT, FONT = 'ARIAL', SIZE=8, $

-*Styling for CAR first BY Field
TYPE=DATA,COLUMN=N1, BACKCOLOR=RGB(193 213 243), WHEN=NEWMOD EQ 0,$
TYPE=DATA,COLUMN=N1, BACKCOLOR=RGB(222 235 246), WHEN=NEWMOD EQ 1,$


-*Conditional Styling on OVER Fields
TYPE=TITLE, ACROSSCOLUMN=N1, BACKCOLOR=RGB(193 213 243), WHEN = NEWMOD EQ 1, $
TYPE=TITLE, ACROSSCOLUMN=N2, BACKCOLOR=RGB(193 213 243), WHEN = NEWMOD EQ 1, $
TYPE=TITLE, ACROSSCOLUMN=N3, BACKCOLOR=RGB(193 213 243), WHEN = NEWMOD EQ 1, $
TYPE=TITLE, ACROSSCOLUMN=N4, BACKCOLOR=RGB(193 213 243), WHEN = NEWMOD EQ 1, $
TYPE=TITLE, ACROSSCOLUMN=N5, BACKCOLOR=RGB(193 213 243), WHEN = NEWMOD EQ 1, $
TYPE=TITLE, ACROSSCOLUMN=N6, BACKCOLOR=RGB(193 213 243), WHEN = NEWMOD EQ 1, $
TYPE=TITLE, ACROSSCOLUMN=N7, BACKCOLOR=RGB(193 213 243), WHEN = NEWMOD EQ 1, $
TYPE=TITLE, ACROSSCOLUMN=N8, BACKCOLOR=RGB(193 213 243), WHEN = NEWMOD EQ 1, $

TYPE=TITLE, ACROSSCOLUMN=N1, BACKCOLOR=RGB(222 235 246), WHEN = NEWMOD EQ 0, $
TYPE=TITLE, ACROSSCOLUMN=N2, BACKCOLOR=RGB(222 235 246), WHEN = NEWMOD EQ 0, $
TYPE=TITLE, ACROSSCOLUMN=N3, BACKCOLOR=RGB(222 235 246), WHEN = NEWMOD EQ 0, $
TYPE=TITLE, ACROSSCOLUMN=N4, BACKCOLOR=RGB(222 235 246), WHEN = NEWMOD EQ 0, $
TYPE=TITLE, ACROSSCOLUMN=N5, BACKCOLOR=RGB(222 235 246), WHEN = NEWMOD EQ 0, $
TYPE=TITLE, ACROSSCOLUMN=N6, BACKCOLOR=RGB(222 235 246), WHEN = NEWMOD EQ 0, $
TYPE=TITLE, ACROSSCOLUMN=N7, BACKCOLOR=RGB(222 235 246), WHEN = NEWMOD EQ 0, $

TYPE=DATA, BORDER =0.5, $

TYPE=REPORT,COLUMN=P1,SIZE=8,BACKCOLOR=RGB(193 213 243),STYLE=BOLD,WRAP=1.2,$
TYPE=ACROSSVALUE,SIZE=8,WIDTH=.1,BACKCOLOR=RGB(193 213 243),JUSTIFY=CENTER,STYLE=BOLD,WRAP=0.9,BORDER =0.5,$

TYPE=TITLE,COLUMN=CAR,JUSTIFY=LEFT,WRAP=1.5,$

TYPE=SUBTOTAL,SIZE=8,HEADALIGN=BODY,BACKCOLOR=RGB(255 153 0),STYLE=BOLD,$
TYPE=GRANDTOTAL,SIZE=8,BACKCOLOR=RGB(255 153 0),STYLE=BOLD,$
TYPE=SUBHEAD,SIZE=8,STYLE=BOLD,BORDER=OFF,$
TYPE=FOOTING,LINE=1,FONT = 'ARIAL',SIZE=8,JUSTIFY=LEFT, $
TYPE=FOOTING,LINE=2,SIZE=8,FONT = 'ARIAL',JUSTIFY=LEFT, $
TYPE=FOOTING,LINE=3,SIZE=7,FONT = 'ARIAL',JUSTIFY=LEFT, $
TYPE=FOOTING,LINE=4,SIZE=7,FONT = 'ARIAL',JUSTIFY=LEFT, $
TYPE=FOOTING,BORDER=OFF,$
TYPE=TABHEADING, LINE=1,JUSTIFY=RIGHT,BORDER=OFF,SIZE=7, $
TYPE=TABHEADING, LINE=2,JUSTIFY=RIGHT,BORDER=OFF,SIZE=7, $
TYPE=TABHEADING, LINE=3,JUSTIFY=LEFT,BORDER=OFF,SIZE=12,STYLE=BOLD,$
========


WF-7703/7705
Windows, All Outputs
 
Posts: 4 | Registered: January 21, 2015Report This Post
<FreSte>
posted
The same styling should be defined for the data-rows.
Add the following line to your stylesheet:

TYPE=DATA ,BACKCOLOR=(RGB(222 235 246) RGB(193 213 243)) ,$
 
Report This Post
Master
posted Hide Post
Gurpreet Singh,

You can do formatting by using TYPE=TITLE. Looks like conditional formatting is not supported for title string generated using OVER command.

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Virtuoso
posted Hide Post
quote:
Originally posted by FreSte:
The same styling should be defined for the data-rows.
Add the following line to your stylesheet:

TYPE=DATA ,BACKCOLOR=(RGB(222 235 246) RGB(193 213 243)) ,$


Column titles are regarded as part of the Report, but not part of its Data.

Because of the way titles are normally positioned (above the column of data cells), they have no tie to data values in individual rows; and BACKCOLOR=(color1, color2) is thus inapplicable.

Since in a report with OVER and ACROSS the title can appear to the left of each row (positioned as if it were a data columns), IBI should revise their treatment of Titles to allow alternating and conditional styling in such reports, and to address other problems as well.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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     ACROSS Conditonal Styling with OVER Command - Missing Link?

Copyright © 1996-2020 Information Builders