Rads R
asked on
Display message only when there is no data found
Hi APEX masters,
Can I know how to display a message as "NO DATA FOUND" in oracle apex , when the query is not returning any data from a SQL.
As when I give a message under the attributes of the report - it would display a message as "No Data Found", even before the user selects the parameters. I want to display "No Data Found" message only when there is no data.
Please let me know how to approach this issue.
Thanks,
R
Can I know how to display a message as "NO DATA FOUND" in oracle apex , when the query is not returning any data from a SQL.
As when I give a message under the attributes of the report - it would display a message as "No Data Found", even before the user selects the parameters. I want to display "No Data Found" message only when there is no data.
Please let me know how to approach this issue.
Thanks,
R
I'm not a master of APEX, but I have used a number of reporting tools for Oracle over the years. In all of them, it is always MUCH harder to report on what is NOT in the database, than on what IS in the database! Database reporting tools are designed to report on what IS in the database.
Sdstuber's suggestion looks to me like a good idea, if APEX has that feature.
Sdstuber's suggestion looks to me like a good idea, if APEX has that feature.
ASKER
Hi sdstuber
Will definitely try that.
Thank you,
R
Will definitely try that.
Thank you,
R
ASKER
sdstuber,
I have given a message under "no data found" part of the report
I gave serverside condition as one of the parameters is not null, but still it displays the message.
Thanks,
R
I have given a message under "no data found" part of the report
I gave serverside condition as one of the parameters is not null, but still it displays the message.
Thanks,
R
export your page and post it here
Hi, the problem with the serverside-condition should be, that the report is not actually delivered to the client if the parameter page item is empty. What you could do, is create a hidden page item. In an on-change dynamic action of your parameter page item, fill this page item with "No data found"-message if the parameter page item is NOT NULL. Then, set this hidden page item as No-Data-Found-message in the region attributes (the format is &PAGE_ITEM_NAME.).
ASKER
Thank you Markusld. I have found my own solution and working as expected.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
and then set the report to be conditional on the parameters being populated
that way the "no data found" message won't be seen until after the parameters are set and submitted