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] Styling for Active Reports

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Styling for Active Reports
 Login/Join
 
Silver Member
posted
I am wanting certain lines in an Active Report (AHTML) to be a certain color. However, when I try to apply a condition, I don't get all of my columns to obey the conditional styling. In the example below, I would like all column for ALPHA ROMEO to be yellow, but my first two columns remain green. Any ideas on how to get around this?
 -* File activestyling.fex
TABLE FILE CAR
PRINT
     'CAR.BODY.SEATS'
     'CAR.BODY.DEALER_COST'
     'CAR.BODY.RETAIL_COST'
     'CAR.BODY.SALES'
BY 'CAR.COMP.CAR'
BY 'CAR.CARREC.MODEL'

ON CAR.COMP.CAR SUBTOTAL AS '*TOTAL'
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = EURSTEEL,
$
     UNITS=IN,
     PAGESIZE='A4',
     LEFTMARGIN=0.777778,
     RIGHTMARGIN=0.777778,
     TOPMARGIN=0.388889,
     BOTTOMMARGIN=0.388889,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
     PAGECOLOR=RGB(240 240 250),
$
     DEFMACRO=COND0001,
     MACTYPE=RULE,
     WHEN=N1 EQ 'ALFA ROMEO',
$
TYPE=REPORT,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
$
TYPE=DATA,
     COLUMN=N1,
     BACKCOLOR=RGB(255 252 204),
     MACRO=COND0001,
$
TYPE=DATA,
     COLUMN=N2,
     BACKCOLOR=RGB(255 252 204),
     MACRO=COND0001,
$
TYPE=DATA,
     COLUMN=N6,
     BACKCOLOR=RGB(255 252 204),
     MACRO=COND0001,
$
TYPE=DATA,
     COLUMN=N3,
     BACKCOLOR=RGB(255 252 204),
     MACRO=COND0001,
$
TYPE=DATA,
     COLUMN=N4,
     BACKCOLOR=RGB(255 252 204),
     MACRO=COND0001,
$
TYPE=DATA,
     COLUMN=N5,
     BACKCOLOR=RGB(255 252 204),
     MACRO=COND0001,
$
TYPE=SUBTOTAL,
     BY=1,
     COLOR='BLACK',
     BACKCOLOR=RGB(210 210 210),
$
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
I believe it's having a conflict between the included style sheet and your conditional styling. If you remove the INCLUDE EURSTEEL,$ line, all of the columns receive your conditional style. try making the stylesheet inline instead of INCLUDE to (a)see what it adds and (b)see if it works or if it can be modified to work with your additional conditions.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Silver Member
posted Hide Post
Thanks Darin,
Your suggestion worked on my sample report but not on my actual report. The main difference I have is that the rows that does NOT adhere to the conditional styling is when I have no data for the specific column. For example, I have a description column. If I want that whole row to be yellow, all the columns are yellow EXCEPT the description box where I have no description data in that field. How can I get around this and make it yellow even if I have no data for that specific field? Thanks.


WebFOCUS developer studio version 7.6.11
Windows
all formats
 
Posts: 36 | Registered: February 12, 2009Report This Post
Virtuoso
posted Hide Post
Is the value for that particular field and row missing (null) or is it blank? If the value is null, you could get around it by redefining the field (which basically converts missing values to blank) in a DEFINE.

FIELD1/A20=FIELD1;

This assumes that you don't need to use that missing value for anything such as a calculation, average, etc.

I can understand why that particular column would not be styled, (you've styled DATA= but there is NO data for that column/row) but it DOES seem not quite right that if you're wanting to style an entire row, it is not able to style a column with missing data. I would open a case on that one and see what tech support says.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Silver Member
posted Hide Post
Thank you Darin.


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] Styling for Active Reports

Copyright © 1996-2020 Information Builders