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 report in InfoAssist

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Styling report in InfoAssist
 Login/Join
 
Platinum Member
posted
I want to do styling in InfoAssist to give certain rows a different background. I add this line of code to the styling:
TYPE=DATA, BACKCOLOR=RGB(225 225 225), WHEN=N6 EQ 'J', $ 

Unfortunately InfoAssist keeps changing it to the following:
TYPE=DATA, COLUMN=N6, BACKCOLOR=RGB(225 225 225), WHEN=N6 EQ 'J', $ 

which only applies to column N6 which is also a NOPRINT column that is only needed for the WHEN in the conditional styling, so does not have any effect at all.

Does someone have a solution or workaround how I can accomplish this in InfoAssist, or will it just not allow me to do this kind of conditional styling?

thanks, Martin.

This message has been edited. Last edited by: Martin vK,


WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
 
Posts: 168 | Registered: March 29, 2013Report This Post
Virtuoso
posted Hide Post
In InfoAssist, you'll have to create 3 macros for this condition and apply them to each column separately. Something like this:
  
DEFMACRO=Condition_1, MACTYPE=RULE, WHEN=N3 GT 5000, $
DEFMACRO=Condition_2, MACTYPE=RULE, WHEN=N3 GT 5000, $
DEFMACRO=Condition_3, MACTYPE=RULE, WHEN=N3 GT 5000, $
TYPE=DATA, COLUMN=N1, MACRO=Condition_1, FONT='ARIAL', SIZE=12, COLOR=RGB(255 255 255), STYLE=BOLD, HYPERLINK-COLOR=RGB(255 255 255), BACKCOLOR=(RGB(255 0 0) RGB(255 0 0)), $
TYPE=DATA, COLUMN=N2, MACRO=Condition_2, FONT='ARIAL', SIZE=12, COLOR=RGB(255 255 255), STYLE=BOLD, HYPERLINK-COLOR=RGB(255 255 255), BACKCOLOR=(RGB(255 0 0) RGB(255 0 0)), $
TYPE=DATA, COLUMN=N3, MACRO=Condition_3, FONT='ARIAL', SIZE=12, COLOR=RGB(255 255 255), STYLE=BOLD, HYPERLINK-COLOR=RGB(255 255 255), BACKCOLOR=(RGB(255 0 0) RGB(255 0 0)), $



But I think in App Studio you can create one macro and apply it to the whole row. This is how you can apply the same condition to different columns generated by App Studio:
  
     DEFMACRO=COND0001,
     MACTYPE=RULE,
     WHEN=N3 GT 5000,
$
TYPE=DATA,
     COLUMN=N3,
     COLOR='WHITE',
     BACKCOLOR='RED',
     MACRO=COND0001,
$
TYPE=DATA,
     COLUMN=N2,
     COLOR='WHITE',
     BACKCOLOR='RED',
     MACRO=COND0001,
$
TYPE=DATA,
     COLUMN=N1,
     COLOR='WHITE',
     BACKCOLOR='RED',
     MACRO=COND0001,
$

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


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
Thanks. I already figured this would be the workaround. You can not apply styling to a row so you have to apply same styling to each column separately.


WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
 
Posts: 168 | Registered: March 29, 2013Report This Post
Virtuoso
posted Hide Post
quote:
Originally posted by Martin vK:
You can not apply styling to a row so you have to apply same styling to each column separately.

Omit the COLUMN=Nx, row such as below and it will be applied to the whole row
TABLE FILE CAR
SUM RETAIL_COST
BY COUNTRY
BY CAR

ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     DEFMACRO=COND_RED,
     MACTYPE=RULE,
     WHEN=N3 GT 5100,
$
     DEFMACRO=COND_BLUE,
     MACTYPE=RULE,
     WHEN=N3 LT 5100,
$
     DEFMACRO=COND_GREEN,
     MACTYPE=RULE,
     WHEN=N3 EQ 5100,
$
TYPE=DATA,
     COLOR='WHITE',
     BACKCOLOR='RED',
     MACRO=COND_RED,
$
TYPE=DATA,
     COLOR='WHITE',
     BACKCOLOR='BLUE',
     MACRO=COND_BLUE,
$
TYPE=DATA,
     COLOR='WHITE',
     BACKCOLOR='GREEN',
     MACRO=COND_GREEN,
$
ENDSTYLE
END


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
This apparently does not work in InfoAssist, you can only apply styling to columns not to rows.


WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
 
Posts: 168 | Registered: March 29, 2013Report 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 report in InfoAssist

Copyright © 1996-2020 Information Builders