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     Formatting Multiple Columns in the Stylesheet

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Formatting Multiple Columns in the Stylesheet
 Login/Join
 
Guru
posted
Is there syntax that combines the formatting of columns in the stylesheet?
 $
TYPE=DATA,
     COLUMN=N4,
     BACKCOLOR=( RGB(204 255 255) RGB(204 255 204) RGB(255 255 153) RGB(255 204 153) ),
$
TYPE=DATA,
     COLUMN=N5,
     BACKCOLOR=( RGB(204 255 255) RGB(204 255 204) RGB(255 255 153) RGB(255 204 153) ),
$ 


 $
-*Things I have tried
TYPE=DATA,
   -*  COLUMN=N4,N5,
   -*  COLUMN=(N4 N5),
   -*  COLUMN=(N4, N5),
     BACKCOLOR=( RGB(204 255 255) RGB(204 255 204) RGB(255 255 153) RGB(255 204 153) ),
$


I am trying to shorten up my code to make
it more readable.


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
<Jax>
posted
Unless you want to apply the formatting to all columns in the report the column-by-column approach would be the way to go.

If you want to apply the backcolor across all columns then

TYPE=DATE,
BACKCOLOR=( RGB(204 255 255) RGB(204 255 204) RGB(255 255 153) RGB(255 204 153) ),
$
 
Report This Post
Virtuoso
posted Hide Post
As Jax mentions (and I assume he meant TYPE=DATA, not TYPE=DATE) if you don't specify a column, then by default, the style is applied to all columns. Sometimes it's shorter to do this and then single out the columns where you DON't want the style when you have numberous column that are affected.


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
Guru
posted Hide Post
Thanks for the information.
In a report I am working on 3 columns need to be formated one way and 2 columns another way.
I thought there might be a way to format the columns without having having to go column-by-column.
But, there isn't.


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Virtuoso
posted Hide Post
Max,

A bit of Dialog Manager can help:
  
-REPEAT #LAB1 FOR &I FROM 4 TO 6;
TYPE=DATA,
     COLUMN=N&I,
     BACKCOLOR=( RGB(204 255 255) RGB(204 255 204) RGB(255 255 153) RGB(255 204 153) ),
$
-#LAB


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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     Formatting Multiple Columns in the Stylesheet

Copyright © 1996-2020 Information Builders