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     [SOLVED] Graph with no Data

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Graph with no Data
 Login/Join
 
Member
posted
I have a graph that I want to show a special message when there is no data. My research to date shows that I must perform a table request first to see if &LINES EQ 0. Then if there is data, I run the Graph report, otherwise show my HTML custom error page.

I am looking for a way to accomplish this more efficiently, since I am running two passes if there is data.

Thanks in advance.

This message has been edited. Last edited by: Kerry,


WF 7.6.11
Windows
Excel, HTML, and PDF.
 
Posts: 5 | Location: Jacksonville, FL | Registered: August 31, 2009Report This Post
Virtuoso
posted Hide Post
You can do the graph, let it create an empty graph and hold it. Then check &LINES (it will be 0 for an empty graph) and take action upon that - either show the held image or show some empty graph message.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Silver Member
posted Hide Post
Hi,
-IF &LINES.EVAL NE 0 THEN GOTO END_GRAPH;
TABLE FILE CARPRINT
COMPUTE GRAPHND/A850 = 'NO DATA AVAILABLE'; AS ' '
MODEL NOPRINT
BY MODEL NOPRINT
HEADING
" "
FOOTING
" "
IF RECORDLIMIT EQ 1
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='A4',
LEFTMARGIN=1.5,
RIGHTMARGIN=&RIGHTMARGIN,
TOPMARGIN=0.150000,
BOTTOMMARGIN=0.000000,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
FONT='ARIAL',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
TOPGAP=0.023889,
$
TYPE=HEADING, SIZE=10, TOPGAP=0.40,$
TYPE=REPORT, COLUMN=N2, SIZE=10,WRAP=5.0, $
TYPE=DATA, COLUMN=N2, SIZE=12,WRAP=5.0,STYLE=BOLD, $
TYPE=FOOTING, SIZE=10, TOPGAP=-1.05 ,JUSTIFY=RIGHT,STYLE=BOLD,$
ENDSTYLE
END
-RUN
-END_GRAPH

Thanks!


WebFOCUS 7.6.x
Windows
Output: Excel,PDF, HTML
 
Posts: 42 | Registered: September 28, 2007Report This Post
Member
posted Hide Post
Thanks, All.


WF 7.6.11
Windows
Excel, HTML, and PDF.
 
Posts: 5 | Location: Jacksonville, FL | Registered: August 31, 2009Report 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     [SOLVED] Graph with no Data

Copyright © 1996-2020 Information Builders