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.
Should be simple enough to do but its giving me a headache Formatting Grand total for example, in the following
SUM COMPUTE Actual/F5 = ( CHGPT101 / CHGPT201 ) * 100; NOPRINT COMPUTE TgtCalcC/F5 = TgtCalcA / TgtCalcB; NOPRINT AS 'Target' COMPUTE Var/F5 = Actual - TgtCalcC; AS 'Variance' BY MF_SORTVALUE AS 'Mode of Transport' BY EI_DISPVALUE AS 'Direction' ACROSS HIGHEST YEARSORT NOPRINT ACROSS PERIOD AS ' '
First question, is there any defined ways to identify which column, ( N1, N2 N3 etc ) or is it purely in order so in this case
Actual =N1 TgtCalc = N2 Var =N3
2ndly in the above example, when setting the Column to Var, only the first item would change to red when LT , the others remained the normal formatting..
3rdly , is there anyway to set the CSS style formating and define the fields inside the Report Painter ?
Nn Identifies a column by its position in the report. To determine this value, count vertical sort (BY) fields, display fields, and ROW-TOTAL fields, from left to right, including NOPRINT fields.
Pn Identifies a column by its position in the report. To determine the value of n, count vertical sort (BY) fields, display fields, and ROW-TOTAL fields from left to right. Do not count NOPRINT fields.
Cn Identifies a display column by its position in the report. To determine the value of n, count only display fields from left to right, including NOPRINT fields. Do not count vertical sort (BY) fields or ROW-TOTAL fields.
To select all display fields use C*.
Bn Identifies a vertical sort (BY) column by its position in the report. To determine the value of n, count only vertical sort (BY) fields, including NOPRINTs, from left to right.
To select all BY fields use B*.
field Identifies a column by its field name.
When a field occurs more than once, use field(n) to select a particular occurrence or field(*) to select all occurrences of the field.
ROWTOTAL Identifies a column of row totals generated using ROW-TOTAL. When used with ACROSS and multiple display commands, ROWTOTAL generates multiple total columns. Use ROWTOTAL(n) to select a particular total column. Use ROWTOTAL(field) to select the row total column for a particular field.
Use ROWTOTAL(*) to select all row total columns in the report.
SET HTMLCSS=ON is on. and also referencing the CSS file, the CLASS statements aren't the issue, as it's working everwhere else, it's only in the row totals ( SUMMARIZE ) that the Formatting gives an issue. Try it, format column totals conditionally ... Doesn't seem to want to work for me...
TYPE=GRANDTOTAL,COLUMN=Cn,COLOR=RED,WHEN=Cn LT 0,$ that's just gotta work. i use it like that. you may not like the Cn part, but its a workaround, till somebody comes up with something cooler.
10.. very funny.
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
But the problem seems to be occuring in the WHEN statement, for example, if I have column with a negative figure somewhere in it, then it's still formatted as red even though the total for the column is positive....
is there anyway to do something like WHEN=COLUMN-TOTAL(N3) LT 0 ( I know COLUMN-TOTAL) is used for something else... but I want it here
I know that the reply to this topic is a few months old but it may be of benefit to those who read this and come across Sean's problem (as I did).
I found that if the datatype was defined as packed decimal, e.g. P19, the entire colum came back red. However, once I changed it to decimal, e.g. D19, it worked fine.
Maybe someone has an explanation but I'm just happy that it works.
hi , i have 2 compute columns which are to be displayed at the end of a CROSSTAB report.. adn i am not able to format the title and font of the compute column and synchronize the font with the rest of the report structure.. this sounds simple..but i have been tryin this for the past 1 week.. please advice below is the code which shows the structure of the report .. thank you
TABLE FILE T_ORA_APPL_PLN_V SUM SALESX NOPRINT COMPUTE PCNTS/D12.2 = ( SALESX / TOTAL_NO_APPS ) * 100; NOPRINT BY LIFECYCLE_STAGE SUM SALESD AS '# OF APPLICATIONS' COMPUTE PCNTA/D12.2 = ( SALESX / TOTAL_NO_APPS ) * 100; AS '% OF APPLICATIONS' BY LIFECYCLE_STAGE ACROSS PRIMARY_BPO AS '' COMPUTE NOTA/D12.2 = SALESX; AS 'Total' COMPUTE PCNT/D12.2 = PCNTS; AS ' Total' ON TABLE SUBHEAD "APPLICATION PORTFOLIO PLANNING REPORT 1" ON TABLE SET PAGE-NUM OFF ON TABLE COLUMN-TOTAL AS 'APPLICATIONS THAT SUPPORT MULTIPLE BPO''S' SALESX SALESD ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * UNITS=IN, PAGESIZE='A1', SQUEEZE=ON, ORIENTATION=LANDSCAPE, $
hi prarie, i have tried acrosstitle , acrossvalue keywords..It doesnt work ..the problem i am facing is the tow compute columns are detached from the rest of the report and i am not able to format them...please advice..i have pasted the screenshot of my output in [URL=http://www.tinypic.com]
[IMG]http://i30.tinypic.com/2ykzv2s.jpg
This message has been edited. Last edited by: arvind,
Use the "TYPE=REPORT, COLUMN=" syntax of the stylesheet.
Example -
TABLE FILE CAR
SUM COMPUTE SALESX/D9 = SEATS; NOPRINT
COMPUTE PCNTS/D12.2 = BHP / SALESX; NOPRINT
BY COUNTRY
SUM COMPUTE SALESA/D9 = SEATS;
COMPUTE PCNTS/D12.2 = BHP / SALESA;
BY COUNTRY
ACROSS BODYTYPE AS ''
COMPUTE NOTA/D9 = SALESX;
COMPUTE PCNT/D12.2 = PCNTS;
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
GRID=OFF, SIZE=8, $
TYPE=REPORT, COLUMN=NOTA, BACKCOLOR=RGB(000 000 255), COLOR=WHITE, SIZE=9, STYLE=BOLD+ITALIC, $
TYPE=REPORT, COLUMN=PCNT, BACKCOLOR=RGB(000 000 255), COLOR=WHITE, SIZE=9, STYLE=BOLD+ITALIC, $
ENDSTYLE
END
TThis message has been edited. Last edited by: Tony A,
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
hi tony, It dint work ...i used the column = (compute column name ) clause.. If u will please see the output shot ...the two compute columns are totally unaffected by the formatting changes in the rest of the report...My requirement is that their format should be similar to the report format..any suggestions??
The trouble with tinypic is that it is an offline storage site and is often blocked by some companies firewalls and content filters (e.g. where I am!).
Did you try the example I gave you? That does work and is close to what you are attempting. The example, too, uses the COLUMN=[computed field name] and functions just fine.
Extending the example above to provide your column-total syntax, this code -
TABLE FILE CAR
SUM COMPUTE SALESX/D9 = SEATS; NOPRINT
COMPUTE PCNTS/D12.2 = (SALESX / BHP) * 100; NOPRINT
BY COUNTRY
SUM SEATS AS ''
COMPUTE PCNTS/D12.2 = (SALESX / BHP) * 100; AS ''
BY COUNTRY
ACROSS BODYTYPE AS ''
COMPUTE NOTA/D9 = SALESX; AS 'Total'
COMPUTE PCNT/D12.2 = PCNTS; AS 'Total'
-*ON TABLE SUBTOTAL SALESX SEATS AS 'Grand Total'
ON TABLE COLUMN-TOTAL AS 'Totals' SALESX SEATS
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
GRID=OFF, BACKCOLOR=RGB(240 245 255), COLOR=BLUE, SIZE=8, $
TYPE=ACROSS, BACKCOLOR=RGB(200 200 255), COLOR=WHITE, SIZE=9,
STYLE=+BOLD+ITALIC, BORDER=LIGHT, BORDER-COLOR=RGB(160 160 255), $
TYPE=TITLE, BACKCOLOR=RGB(200 200 255), COLOR=WHITE, SIZE=9,
STYLE=+BOLD+ITALIC, BORDER=LIGHT, BORDER-COLOR=RGB(160 160 255), $
TYPE=REPORT, COLUMN=NOTA, BACKCOLOR=RGB(200 200 255), COLOR=WHITE,
SIZE=9, STYLE=+BOLD+ITALIC, BORDER=LIGHT, BORDER-COLOR=RGB(160 160 255), $
TYPE=REPORT, COLUMN=PCNT, BACKCOLOR=RGB(200 200 255), COLOR=WHITE,
SIZE=9, STYLE=+BOLD+ITALIC, BORDER=LIGHT, BORDER-COLOR=RGB(160 160 255), $
-*TYPE=GRANDTOTAL, BACKCOLOR=RGB(160 160 255), COLOR=WHITE, SIZE=10,
STYLE=+BOLD+ITALIC, BORDER=LIGHT, BORDER-COLOR=RGB(160 160 255), $
ENDSTYLE
END
Produces this output -
Try uncommenting the GRANDTOTAL styling and see the difference, also switch between SUBTOTAL and COLUMN-TOTAL to see differences.
TThis message has been edited. Last edited by: Tony A,
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
hi tony, thanks for the code..i tried it but the whole compute column's backcolor is changed..my requirement is i want only the coumn title backcolor to change.. When i use TYPE = TITLE , COLUN = NOTA , BACKCOLOR = RGB(153 153 153), $ IT is not getting reflected only in the title.. Is there any other way to format the compute columns??please advice..
Can you suggest a place where i can upload the screenshot..or can u please give me your email Address ??
hi tony, even if i remove the two style statements for compute columns..then also those two columns are not getting formatted according to the report ... below is the code ...please check
[CODE] DEFINE FILE T_ORA_APPL_PLN_V SALESD/D15 = NO_OF_APPLICATIONS; SALESX/D15= NO_OF_APPLICATIONS; NOTA/D12.2 = SALESX; PCNT/D12.2 = PCT.SALESX; END TABLE FILE T_ORA_APPL_PLN_V SUM SALESX NOPRINT COMPUTE PCNTS/D12.2 = ( SALESX / TOTAL_NO_APPS ) * 100; NOPRINT BY LIFECYCLE_STAGE SUM SALESD AS '# OF APPLICATIONS' COMPUTE PCNTA/D12.2 = ( SALESX / TOTAL_NO_APPS ) * 100; AS '% OF APPLICATIONS' BY LIFECYCLE_STAGE ACROSS PRIMARY_BPO AS '' COMPUTE NOTA/D12.2 = SALESX; AS 'Total' COMPUTE PCNT/D12.2 = PCNTS; AS ' Total' ON TABLE SUBHEAD "APPLICATION PORTFOLIO PLANNING REPORT 1" ON TABLE SET PAGE-NUM OFF ON TABLE COLUMN-TOTAL AS 'APPLICATIONS THAT SUPPORT MULTIPLE BPO''S' SALESX SALESD ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * UNITS=IN, PAGESIZE='A1', SQUEEZE=ON, ORIENTATION=LANDSCAPE, $ TYPE=TITLE, COLUMN=NOTA, SIZE=10, WRAP=2.5, JUSTIFY=RIGHT, $ TYPE=TITLE, COLUMN=PCNT, SIZE=10, WRAP=2.5, BACKCOLOR=RGB(153 153 153), JUSTIFY=RIGHT, $
tHE TWO COMPUTE COLUMNS ARE NOTA AND pcnt THANK YOU SIRThis message has been edited. Last edited by: arvind,
If you are wanting to individually change just those two column titles then I think you are out of luck.
As you attempting individual styling for these two columns, then the statement I made (repeated above in case you didn't notice it the first time) is relevant.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Change your column headings to be part of the report heading and format the report heading and in your report logic use the " AS '' " logic to keep you column headings from appearing. Example of heading: table file whatever heading "Application Planning Portfolio Report2" "<+0> <+0>Asset Protection<+0>Distribution<+0>Marketing<+0>Total<+0>Total" "Life Cycle<+0># of Applications<+0>% of Applications<+0># of Applications<+0>% of Applications"
Then style it within the stylesheet logic as "type=heading, line=n, object=text, item=n,...."
WF 7.7.05 HP-UX - Reporting Server, Windows 2008 - Client, MSSQL 2008, FOCUS Databases, Flat Files HTML, Excel, PDF