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     No HTML Output! page how to redirect?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
No HTML Output! page how to redirect?
 Login/Join
 
Gold member
posted
If there is no data I get the standard No HTML Output! blank page. How can I redirect to a standard output page?
 
Posts: 72 | Registered: April 03, 2006Report This Post
Gold member
posted Hide Post
Had some difficulties - I hope you get all of this:

After your report:
-SET &BANG_NODS00 = IF &RECORDS EQ 0
- THEN '!IBI.FIL.MINORECS;' ELSE ' ';
-HTMLFORM BEGIN
<HTML>
<TITLE> National Report
<STYLE TYPE="TEXT/CSS">
</STYLE>
<BODY>
<CENTER>
!IBI.FIL.NATRPT;
&IBIBANG1;
&BANG_NODS00
</CENTER>
</BODY>
</HTML>
-HTMLFORM END
In your HTML PDS:
SPF/E BROWSE WebFOCUS….HTML.DATA(MINORECS)
<HTML>
<HEAD>
<TITLE> No Data Found </TITLE>
</HEAD>
<BODY><FONT FACE="ARIAL" SIZE=1>
There is no data matching the parameters you requested.
</FONT> </BODY> </HTML>
(You can center this.)


WebFOCUS 7.6.11, WINDOWS, HTML, PDF, EXCEL
 
Posts: 77 | Location: Baltimore | Registered: May 31, 2006Report This Post
Expert
posted Hide Post
Also try SET EMPTYREPORT = OFF

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, 2004Report This Post
Expert
posted Hide Post
rc, this will give you the idea how to put a redirect into your output area.
You can adjust the code here to display some alternate "no data found--try again" page for a few seconds (currently set to 5, content="5") before redirecting to some nice pre-made page you might have somewhere, what you call your 'standard output page'
If your report does in fact return data, then the redirect statement is bypassed.

SET EMPTYREPORT=ON 
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS MYTAB FORMAT HTMTABLE
END
-RUN
-SET &HOWMANY = &LINES ;
-HTMLFORM BEGIN
<html>
<head>
-IF &HOWMANY GT 0 GOTO no.redirect ;
<META HTTP-EQUIV="Refresh"  
CONTENT="5 ;
URL=http://the page you want to redirect to">
</head> 
-no.redirect
!IBI.FIL.MYTAB;
-HTMLFORM END




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
quote:
!IBI.FIL.MYTAB;

What is !IBI.FIL.MYTAB; ?
 
Posts: 72 | Registered: April 03, 2006Report 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     No HTML Output! page how to redirect?

Copyright © 1996-2020 Information Builders