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.
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,
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
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.
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
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
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, 2013
@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,
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, 2013
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*/