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.
I am developing a report with heading and footing. The report should display the footing at the time of empty report. But I am unable to get footing in the output. please Any body suggust me.
Thanks KOteswar
Example;
SET EMPTYREPORT = ON TABLE FILE EMPDATA PRINT * WHERE DEPT EQ ' '; HEADING " HAI" FOOTING "BYE" END
WebFOCUS 7.6.4, Oracle 9i, Windows XP.This message has been edited. Last edited by: Koteswar,
Instead of having footing for Empty record set, use the same code to print the Footing irrespective of the data returned. You can do this by making the report compound and appending the dummy records at the last to ensure that footing always appears on the report.
Eg:
SET EMPTYREPORT = ON TABLE FILE EMPDATA PRINT * ON TABLE PCHOLD FORMAT EXL2K OPEN END TABLE FILE CAR PRINT MODEL NOPRINT FOOTING "BYE" ON TABLE PCHOLD FORMAT EXL2K CLOSE
Hope this helps.
Webfocus 7.7.03 Windows XP Excel, PDF, HTML, APDF, AHTML, Maintain
SET EMPTYREPORT = ANSI
-*
TABLE FILE CAR
PRINT COUNTRY CAR MODEL
WHERE TOTAL COUNTRY EQ 'SPAIN';
ON TABLE HOLD
END
-*
TABLE FILE HOLD
PRINT *
HEADING
"Hi"
FOOTING
"Bye"
END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
There was a similar post recently that gave several suggestions for this. Your observation that a footing is not generated for an empty report is correct. A heading can be generated, but a footing cannot. The compound report idea will work, but that just seems like overkill for something simple like this (in addition to the fact that the syntax that Swap uses is the "old" syntax and is no longer generated by the GUI tools this way.)
Best way would be something like Dan has. Run the procedure, test to see if &RECORDS EQ 0 and, if so, branch to a separate procedure that gives the output you want.
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, 2007
Actually, the SUBFOOT isn't necessary - either FOOTING or SUBFOOT will work. The reason the HOLD file was neceassry in my ealier post is because the TOTAL was inadvertently left in the WHERE clause from an earlier test.
SET EMPTYREPORT = ANSI
-*
TABLE FILE CAR
PRINT COUNTRY CAR MODEL
WHERE COUNTRY EQ 'SPAIN';
HEADING
"Hi"
FOOTING
"Bye"
END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
I am thanking you for link also, it now in favorites
I think that people not necessarily use search first but should do as Francis say here.
Other problem people no speak Engrish well and is their next language. This problem is when using Engrish based forum like this but I know people try to show help in other language like Ira and TonyA here which is good but when use Engrish based SW there requires Engrish understand.
Kofi
Client Server 8.1.05: Apache; Tomcat;Windows Server 2012 Reporting Server 8.1.05; Oracle; MS SQL; Windows Server 2012
So it's the EMPTYREPORT=ANSI instead of EMPTYREPORT=ON that makes the difference. Using EMPTYREPORT=ON, you will not get a footing. It would be interesting to know how that setting is changing the internal processing.
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, 2007
Based on what I've read, when EMPTYREPORT=ON is used and no records are retrieved, then only HEADING and column titles are displayed. Both &RECORDS and &LINES are set to 0.
With EMPTYREPORT=ANSI and no records retrieved, WF "fakes" one line with values of 0 for numeric fields and blank for alpha fields. In this case, a whole report is produced (with one empty record) so FOOTING is also displayed. &RECORDS is still set to 0 but &LINES is set to 1.
I need to read again to get the facts clear but hopefully I'm not that off