Focal Point
[SOLVED] How to display message if graph report does not have any data.

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9367011516

January 06, 2012, 09:49 AM
Chiranjeevi
[SOLVED] How to display message if graph report does not have any data.
Hi All,

I have created graph report.

SET EMPTYREPORT = ON

If the report does not give any data it displays as plain screen.
Instead of that I want to display some message or image.

For Eg: No data.

How to implement that , please suggest me?

Thanks & Regards,
Chiranjeevi

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


Webfocus 7702, Windows server 2008
January 06, 2012, 10:09 AM
Prarie
If you will do a search on the Forum for Empty Graph and Empty Report you will see several ideas on how to handle this situation.

Good Luck.
January 06, 2012, 01:13 PM
cgiuda
I have code like this after my report

-RUN
-IF &RECORDS EQ 0 GOTO ERROR;
-GOTO DONE
-ERROR
-HTMLFORM tp_no_records_message.htm
-DONE

Where tp_no_records_message.htm is a htm that I created with a message in it.


WebFocus 8104, IBMi (server), Windows 7 (client), iWay 6.1
January 08, 2012, 11:58 AM
<JG>
You miss a very important detail in what you ask.

What is the output format?

The way you say

quote:
it displays as plain screen


suggests that it's a plain html / image display that's not part of a compound HTML or PDF document.
i.e. only the chart is diplayed.

In that situation the solutions given work.

Otherwise you need to extend them. particularly for compound PDF.
January 09, 2012, 01:37 AM
Chiranjeevi
Hi Prarie,Cgiuda,JG

Thank you very much for your suggestions.
I used Cgiuda code, its working perfectly now.

Thanks & Regards,
Chiranjeevi A.


Webfocus 7702, Windows server 2008