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] Display message in compound report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Display message in compound report
 Login/Join
 
Platinum Member
posted
Let say, I have 4 sub reports for the compound report. I want to display message : "There is no record with this selection, please try again" when 4 sub reports don't return any record. How can I do that ? Please advise.

Example of my code:
 
SET HTMLARCHIVE=ON
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN,$
SECTION=section1, LAYOUT=ON, METADATA='0.5^0.5^0.5^0.5', MERGE=OFF, ORIENTATION=LANDSCAPE, PAGESIZE=TABLOID, $
PAGELAYOUT=1, NAME='Page layout 1', text='Page layout 1', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, ORIENTATION=LANDSCAPE, PAGESIZE=TABLOID,$


COMPONENT='report0', TEXT='report0', TOC-LEVEL=2, POSITION=(0.1 0.000), DIMENSION=(* *),$
COMPONENT='report1', TEXT='report1', TOC-LEVEL=2, POSITION=(0.1 1.300), DIMENSION=(* *),$
COMPONENT='report2', TEXT='report2', TOC-LEVEL=2, POSITION=(5.4 1.300), DIMENSION=(* *), $
COMPONENT='report3', TEXT='report3', TOC-LEVEL=2, POSITION=(8.0 1.300), DIMENSION=(* *), $

END

SET COMPONENT='report0'
-INCLUDE report0.fex
-RUN

SET COMPONENT='report1'
-INCLUDE report1.fex
-RUN
SET COMPONENT='report2'
-INCLUDE report2.fex
-RUN
SET COMPONENT = 'report3'
-INCLUDE report3.fex
-RUN

COMPOUND END
 


Thanks.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 125 | Registered: June 17, 2013Report This Post
Member
posted Hide Post
Hi hainguyen,

I would recommend to create 4 hold files respectively to each sub report; then evaluate all hold files on &RECORDS value. Let's say : &RECORDS1 - number of records from 1st hold.... &RECORDS4 - number of records for your 4th file.
Then if &RECORDS1+&RECORDS2+&RECORDS3+&RECORDS4=0 then execute report with "There is no record with this selection, please try again" message, otherwise - execute compound PDF report.

Cheers


WebFOCUS 8204 and older, iWay DataMigrator; Unix/Linux/Windows; Oracle 11g, DB2; SQL, PL/SQL, ETL
 
Posts: 23 | Registered: May 17, 2012Report 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] Display message in compound report

Copyright © 1996-2020 Information Builders