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.
You can probably use the behaviour of FOC_NONE to hide the footer until there's an applicable value for Z in your data. Something like this:
DEFINE FILE CAR
SHOWFOOT/I1 = IF CAR EQ 'JAGUAR' THEN 1 ELSE FOC_NONE;
END
TABLE FILE CAR
PRINT *
ON TABLE FOOTING
"<MAX.SHOWFOOT Line 1"
"<MAX.SHOWFOOT Line 2"
"etc."
END
Haven't tried this though.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Hi Wep, your example won't work. FOC_NONE is designed to hide any non-Dialogue Manager line it appears on when it appears as the value in an amper variable.
It will NOT hide the report code line it appears on as a substituted value in a computed/defined field.
1) -SET &HIDE='FOC_NONE';
2) TABLE FILE CAR
3) PRINT CAR
4) BY '&HIDE' BY MODEL
5) END
The server report engine parser will ignore ALL of line 4.
Dinesh, you cannot program conditional page footings but you can program conditional subfoots, but even that may not get you what you need if you need it to always appear at the bottom of the page.
If you think a conditional subfoot might be the ticket, the following code is a quick example:
TABLE FILE CAR
PRINT MODEL
BY DEALER_COST
BY CAR
BY MODEL NOPRINT SUBFOOT
"***SUBFOOT***"
WHEN MODEL EQ 'TR7'
END
In FOCUS since 1985 - WF 8.009/8.104 Win 8 Outputs: ALL of 'em! Adapters: Sql Server Teradata Oracle
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Mary/Ginny, we were thinking along the same lines at about the same time!
Wep, you are thinking out of the box, but using a condition on the FOOTING stylesheet element works on the same principle as displaying data in a footing, it will only work with the last value on the page. You did give me an idea, though.
Here's a CAR database example that should work (HTML and PDF) for Dinesh showing the FOOTING only when the page contains the target data:
-SET &CAR='DATSUN';
-SET &LNSPP=15;
TABLE FILE CAR
HEADING
"Page: <TABPAGENO </1"
SUM CAR
TABPAGENO NOPRINT
COMPUTE CARMARK/I1=IF CAR EQ '&CAR' THEN 1 ELSE 0;NOPRINT
COMPUTE FOOTMARK/P8=IF TABPAGENO NE LAST TABPAGENO THEN CARMARK ELSE
IF CARMARK EQ 1 THEN 1 ELSE
IF LAST FOOTMARK EQ 1 THEN 1 ELSE 0;NOPRINT
COMPUTE FOOT/A75=IF FOOTMARK EQ 1 THEN 'This FOOTING will appear on the page where the CAR is &CAR.EVAL .' ELSE '';NOPRINT
BY COUNTRY
BY MODEL
FOOTING
"<FOOT</1"
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE NOLEAD
ON TABLE SET LINES &LNSPP.EVAL
ON TABLE SET STYLE *
GRID=OFF,$
TYPE=FOOTING,COLOR=RED,$
ENDSTYLE
END
This will force the FOOTING to appear only on the page where DATSUN appears.This message has been edited. Last edited by: DavSmith,
In FOCUS since 1985 - WF 8.009/8.104 Win 8 Outputs: ALL of 'em! Adapters: Sql Server Teradata Oracle