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, January 06, 2012, 10:09 AM
PrarieIf 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
cgiudaI 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.
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
ChiranjeeviHi Prarie,Cgiuda,JG
Thank you very much for your suggestions.
I used Cgiuda code, its working perfectly now.
Thanks & Regards,
Chiranjeevi A.