javascriptcsssqloracle-apexapex

Oracle APEX Hide/Show No Data Found Message


I have a requirement to hide the No Data Found message on an Interactive Report when page is initially loaded then show back the message if there is no data.

I have search items (Say PX_Search_Item_1, PX_Search_Item_2) on the region and a button Search and underneath an Interactive Report based on the search items. Initially we need to hide the No Data Found message but when Search button clicks, there is no data then show back the No Data Found or any custom message.

Would it be possible? Your help and support would be appreciated.


Solution

  • The IR attribute "When No Data Found" does support page item syntax but that value needs to be set before rendering. There are 2 possible implementations of your question. One is that the search button submits the page and another is that the search button triggers a dynamic action that refreshes the IR region only.

    search button with page submit
    search button with dynamic action to refresh IR

    This can be done with some javascript