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     [CLOSED] Styling attribute for Compute Column After Across

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Styling attribute for Compute Column After Across
 Login/Join
 
Gold member
posted
Below is a code that i have to generate a report with a COMPUTE column after ACROSS.

  
TABLE FILE CAR
SUM RETAIL_COST
BY COUNTRY
ACROSS BODYTYPE AND COMPUTE NEW= C1 + C3 ;
END


I am not able to find the styling attribute for the column 'NEW'. Would it come under ACROSS or Regular Report ? Styling Option is greyed out in App studio for this particular column. Any help is much appreciated.

This message has been edited. Last edited by: FP Mod Chuck,


Tharun Katanguru
SBOX- 8205 DEV/TEST/PROD : 8105 8205
Linux, All Outputs
 
Posts: 52 | Location: BOWL OF PASTA | Registered: October 13, 2016Report This Post
Platinum Member
posted Hide Post
Are you talking about the styling for the "NEW" column?
Please have a look below

 
TABLE FILE CAR
SUM RETAIL_COST
BY COUNTRY
ACROSS BODYTYPE 
COMPUTE NEW= C1 + C3 ;
ON TABLE SET STYLE *
TYPE=REPORT,COLOR=RED,$
TYPE=REPORT,COLUMN=NEW,COLOR=GREEN,FONT='TIMES NEW ROMAN',SIZE=20,$
ENDSTYLE
END
 
Posts: 109 | Registered: February 02, 2016Report This Post
Gold member
posted Hide Post
Pav,

Thanks for the reply. I should have made my question more specific.

Your code works fell for styling the Title and data of that 'NEW' column. But in this case, I'm specifically looking for styling Title of the NEW Column.

I tried
TYPE=TITLE,COLUMN=NEW,COLOR=GREEN,FONT='TIMES NEW ROMAN',SIZE=20,$
but it doesn't seem to work.


Tharun Katanguru
SBOX- 8205 DEV/TEST/PROD : 8105 8205
Linux, All Outputs
 
Posts: 52 | Location: BOWL OF PASTA | Registered: October 13, 2016Report This Post
Platinum Member
posted Hide Post
Hello,
Can you try this and let us know.

SET ACROSSTITLE=SIDE
TABLE FILE CAR
SUM RETAIL_COST
BY COUNTRY
ACROSS BODYTYPE 
COMPUTE NEW/I5= C1 + C3; AS 'This is some text!'
ON TABLE SET STYLE *
-*TYPE=REPORT,COLOR=RED,$
TYPE=REPORT,COLUMN=NEW,COLOR=GREEN,FONT='TIMES NEW ROMAN',SIZE=20,$


TYPE=ACROSSVALUE, COLUMN=NEW, STYLE=BOLD, COLOR=BROWN, $ 

ENDSTYLE
END  


Thank You.
 
Posts: 109 | Registered: February 02, 2016Report This Post
Gold member
posted Hide Post
quote:

TYPE=ACROSSVALUE, COLUMN=NEW, STYLE=BOLD, COLOR=BROWN, $


Seems to work for Color Attributes but no luck with JUSTIFY=CENTER


Tharun Katanguru
SBOX- 8205 DEV/TEST/PROD : 8105 8205
Linux, All Outputs
 
Posts: 52 | Location: BOWL OF PASTA | Registered: October 13, 2016Report This Post
Platinum Member
posted Hide Post
May be we can handle this in a separate way but I made justify=center by below method.

 
SET SHOWBLANKS = ON
SET ACROSSTITLE=SIDE
TABLE FILE CAR
SUM RETAIL_COST
BY COUNTRY
ACROSS BODYTYPE 
COMPUTE NEW/I5= C1 + C3; AS '         text!      '
ON TABLE SET STYLE *
-*TYPE=REPORT,COLOR=RED,$
TYPE=REPORT,COLUMN=NEW,COLOR=GREEN,FONT='TIMES NEW ROMAN',SIZE=20,$


TYPE=ACROSSVALUE, COLUMN=NEW, STYLE=BOLD, COLOR=BROWN, JUSTIFY=RIGHT,$ 

ENDSTYLE
END   
 
Posts: 109 | Registered: February 02, 2016Report This Post
Virtuoso
posted Hide Post
Can you find your proper setting with below ?
SET ACRSVRBTITL  = ON
TABLE FILE CAR
SUM RETAIL_COST AS 'Retail Cost'
BY COUNTRY      AS 'Country'
ACROSS BODYTYPE AS 'Body Type'
COMPUTE NEW= C1 + C3; AS 'New'
ON TABLE SET STYLE *
TYPE=TITLE, COLOR=GREY, $
-* THIS IS TO STYLE THE TITLES OF THE ACROSS
TYPE=ACROSSTITLE,            COLOR=GREEN,  FONT='ARIAL',           SIZE=20, JUSTIFY=CENTER, $
-* THIS IS TO STYLE THE VALUES OF THE ACROSS
TYPE=ACROSSVALUE,            COLOR=ORANGE, FONT='TIMES NEW ROMAN', SIZE=15, JUSTIFY=LEFT, $
TYPE=ACROSSVALUE,COLUMN=NEW, COLOR=BLUE,   FONT='TIMES NEW ROMAN', SIZE=15, JUSTIFY=LEFT, $
-* THIS IS TO STYLE THE DATA WHEN ACROSS IS USED OR SPECIFIC TO YOUR CASE
TYPE=DATA,                   COLOR=PINK,   FONT='TIMES NEW ROMAN', SIZE=8,  JUSTIFY=RIGHT, $
-*TYPE=DATA,ACROSSCOLUMN=NEW,  COLOR=RED,    FONT='TIMES NEW ROMAN', SIZE=10, JUSTIFY=RIGHT, $
TYPE=DATA, COLUMN=NEW,       COLOR=RED,    FONT='TIMES NEW ROMAN', SIZE=10, JUSTIFY=RIGHT, $
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
Gold member
posted Hide Post
Thanks a ton Pav and MartinY.

I was able to achieve it using Martiny's example.


Tharun Katanguru
SBOX- 8205 DEV/TEST/PROD : 8105 8205
Linux, All Outputs
 
Posts: 52 | Location: BOWL OF PASTA | Registered: October 13, 2016Report This Post
Gold member
posted Hide Post
@Martiny, the code you provided works well for HTML for all styling attributes. However, JUSTIFY=CENTER for the column 'NEW' doesnt seem to work well with XLSX, even though other properties like color , font and background translates well.

   
SET ACRSVRBTITL  = ON
TABLE FILE ibisamp/CAR
SUM RETAIL_COST AS 'Retail Cost'
BY COUNTRY      AS 'Country'
ACROSS BODYTYPE AS 'Body Type'
COMPUTE NEW= C1 + C3; AS 'New'
ON TABLE PCHOLD FORMAT XLSX
ON TABLE SET XLSXPAGESETS ON
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=TITLE, COLOR=GREY,  $
-* THIS IS TO STYLE THE TITLES OF THE ACROSS
TYPE=ACROSSTITLE,            COLOR=GREEN,  FONT='ARIAL',           SIZE=20, JUSTIFY=CENTER, $
-* THIS IS TO STYLE THE VALUES OF THE ACROSS
TYPE=ACROSSVALUE,            COLOR=ORANGE, FONT='TIMES NEW ROMAN', SIZE=15, JUSTIFY=CENTER, $
TYPE=ACROSSVALUE,COLUMN=NEW, COLOR=BLUE,   FONT='TIMES NEW ROMAN', SIZE=15, JUSTIFY=CENTER, $
-* THIS IS TO STYLE THE DATA WHEN ACROSS IS USED OR SPECIFIC TO YOUR CASE
TYPE=DATA,                   COLOR=PINK,   FONT='TIMES NEW ROMAN', SIZE=8,  JUSTIFY=RIGHT, $
-*TYPE=DATA,ACROSSCOLUMN=NEW,  COLOR=RED,    FONT='TIMES NEW ROMAN', SIZE=10, JUSTIFY=RIGHT, $
TYPE=DATA, COLUMN=NEW,       COLOR=RED,    FONT='TIMES NEW ROMAN', SIZE=10, JUSTIFY=RIGHT, $
ENDSTYLE
END

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


Tharun Katanguru
SBOX- 8205 DEV/TEST/PROD : 8105 8205
Linux, All Outputs
 
Posts: 52 | Location: BOWL OF PASTA | Registered: October 13, 2016Report This Post
Virtuoso
posted Hide Post
Work as expected

SET ACRSVRBTITL  = ON
TABLE FILE ibisamp/CAR
SUM RETAIL_COST AS 'Retail Cost'
BY COUNTRY      AS 'Country'
ACROSS BODYTYPE AS 'Body Type'
COMPUTE NEW= C1 + C3; AS 'New'
ON TABLE PCHOLD FORMAT XLSX
ON TABLE SET XLSXPAGESETS ON
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=TITLE, COLOR=GREY,  $
-* THIS IS TO STYLE THE TITLES OF THE ACROSS
TYPE=ACROSSTITLE,            COLOR=GREEN,  FONT='ARIAL',           SIZE=20, JUSTIFY=CENTER, $
-* THIS IS TO STYLE THE VALUES OF THE ACROSS
TYPE=ACROSSVALUE,            COLOR=ORANGE, FONT='TIMES NEW ROMAN', SIZE=15, JUSTIFY=CENTER, $
TYPE=ACROSSVALUE,COLUMN=NEW, COLOR=BLUE,   FONT='TIMES NEW ROMAN', SIZE=15, JUSTIFY=CENTER, $
-* THIS IS TO STYLE THE DATA WHEN ACROSS IS USED OR SPECIFIC TO YOUR CASE
TYPE=DATA,                   COLOR=PINK,   FONT='TIMES NEW ROMAN', SIZE=8,  JUSTIFY=RIGHT, $
TYPE=DATA, COLUMN=NEW,       COLOR=RED,    FONT='TIMES NEW ROMAN', SIZE=10, JUSTIFY=CENTER, $
ENDSTYLE
END


With which WF version is not working ?


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
Gold member
posted Hide Post
quote:
Originally posted by MartinY:


TYPE=ACROSSVALUE,COLUMN=NEW, COLOR=BLUE,   FONT='TIMES NEW ROMAN', SIZE=15, JUSTIFY=CENTER, $  /* Not Working, the title 'New' is aligned to right by default*/

TYPE=DATA, COLUMN=NEW,       COLOR=RED,    FONT='TIMES NEW ROMAN', SIZE=10, JUSTIFY=CENTER, $  /* This is working in XLSX for me, data is being justified center*/





I'm on 8.2.05 GEN 93.


Tharun Katanguru
SBOX- 8205 DEV/TEST/PROD : 8105 8205
Linux, All Outputs
 
Posts: 52 | Location: BOWL OF PASTA | Registered: October 13, 2016Report 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     [CLOSED] Styling attribute for Compute Column After Across

Copyright © 1996-2020 Information Builders