Hide 'No data found' msg in report region  when you 1st click search page

Hi,
(sorry if it's confusing but my APEX is in FRENCH and I tried to translate)
I created a search page in my application.
1- I have an HTML region, with a search box and I search button
2- I've got a report region (PL/SQL source) which sometimes returns no data, giving a 'No Data Found.' message.
When I click on the search page for the 1st time (on my navigation bar), I would like to HIDE the report region so I don't have the " No Data Found" message.
Only Once we click on the search button and there is no result, I want to have the message "No Data FOund"
How can I achieve this?
thanks
Roseline

1. create a hidden element on your page (P1_HIDDEN_ELEMENT)
2. put your No Data Found message in a span tag
<span id="no_data_found">No Data Found</span>3. create an on load computation to set your P1_HIDDEN_ELEMENT to 'no_data_found' if it is NULL and to set it to ' ' if it is NOT NULL - type PL/SQL Function Body
BEGIN
   IF :p1_hidden_element IS NULL
   THEN
      RETURN '<script>html_HideElement(''no_data_found'');</script>';
   ELSIF :p1_hidden_element IS NOT NULL
   THEN
      RETURN ' ';
   END IF;
END;4. Put this into the page footer:
&P1_HIDDEN_ELEMENT.The other solution would be to create a display region - pure HTML and to display that first. Once the search is started that region would remain hidden and only the report would show up.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
-------------------------------------------------------------------

Similar Messages

  • Listview Report: how to hide "no data found" message

    Good evening everybody,
    I use the "jquery mobile theme 50" and the "listview report" of it. The report always shows "no data found"-entry  if the source query doesn't return any row.
    Is there a way to suppress this entry in Apex? I can hide "no data found"-entry in html using CSS, but I don't want to have it in the html at all.
    Has someone an idea?
    Thanks a lot!
    Jewgenij

    Thank you very much for the answer!
    Unfortunately it works only for desktop themes but doesn't for jquery mobile Theme 50 :-)
    The help text for the listview's (jquery mobile Theme 50) property "No Data Found Message" is
    Defines the text message that displays when the query does not return any rows. If no value is specified the text of the system message APEX.REGION.NO_DATA_FOUND_MESSAGE is used.
    BR
    JeMo

  • ApEx 4: after upgrade, "when no data found" message on report not shown

    I have a page that displays a tabular form. Initially, the table is empty, and so I have text in the "when no data found" block of the report attributes.
    After upgrading to ApEx 4, this text is no longer shown when no results are returned. It displays the table header, but no rows. So for some reason, it thinks data is being returned -- even though the table is completely empty. I've tried several permutations, but have not been able to find a workaround.
    I'll try to set up a standalone page, but I can provide a pointer to the existing page on apex.oraclecorp.com on request.
    UPDATE: I think this may be related to the bug I reported on tabular forms.
    Is it possible that the empty, hidden row we are adding now counts as a returned row, even though the SELECT statement returned nothing? And thus the report never thinks that there is no data found? This would also explain why it's displaying the table headers, even though no rows are visible.
    Edited by: kswartz on Jul 8, 2010 12:18 AM

    Interesting. I didn't see anything about this change in behavior in the Release Notes. Did I miss something? It definitely didn't do this in 3.2.
    Overall, I think that's actually a very non-obvious change. Seeing a set of table headers with nothing below it looks to me like a mistake. Why would you ever show headers for something when you have no rows? In fact, I thought that was a bug the minute I saw it. With due respect, I don't think the new design is less desirable from a usability perspective than the old one.
    It also doesn't work as you described regarding the proportions: in my case, the columns in the header row did not match the sizes of the columns as I defined them. Although I didn't place anything beside the tabular form, if I had, it would still alter the layout when "Add Rows" is clicked. If you know what the size of those columns is supposed to be (because they are text fields of size xyz, for instance), why wouldn't you define the header cells to use that information? You won't get it exact most of the time, but you can get close, if they're all text fields of specific width.
    Plus, there's nothing on the Report Attributes tab that indicates the "When No Data Found" option won't apply if you are using a tabular form. The textareas should be disabled -- and at the very least, the on-line help should be mentioning this. It doesn't mention anything about this only applying to standard reports.
    Finally, I think you should also put this in the Release Notes, because this requires changes to any application where someone with a tabular form required this. In one case, that was where I provided instructions to users entering data for the first time. Now I have to move it. (Not a big deal, but it would have been nice to know that in advance.) On another page, I put a JavaScript block in there to submit and automatically add a row, because I wanted there to always be a blank row if nothing had been entered -- and that was the easiest way. Okay, granted, that's probably not something you intended to support, but there was nothing wrong with it, technically. And, again, it's fixed by moving that block to the header instead and testing for the number of rows in the table -- easy, now that you provide JQuery for us -- but still manual migration work.
    Thanks for the explanation.

  • Have published iweb site for five years with no problems and just opened a new site and get - 404: Page not found  This error is generated when there was no web page with the name you specified at the web site.-is the problem with iweb or with hosting?  T

    I am sorry if thie is republished-My first time doing this and I am not sure what goes where and where to hear feedback.
    Have published iweb site for five years with no problems and just opened a new site and get -
    404: Page not found 
    This error is generated when there was no web page with the name you specified at the web site.-
    Troubleshooting suggestions:
    Ensure the page you are linking to exists in the correct folder.
    Check your file name for case sensitivity . Index.htm is not the same as index.htm!
    Temporarily disable any rewrite rules by renaming your .htaccess file if it exists
    is the problem with
    iweb or with hosting?
    One Apple tech started to fix Iweb and had to end session and the next said problem with hosting at Network Solutions as it published
    to local folder. NWS has checked sttting a few times-
    Any help would be extremely appreciated as trying to fix this for about five weeks
    Thanks VG
    <Email Edited by Host>

    It's a really bad idea to post your email address - it's an invitation to spam - and I've asked the Hosts to remove it. (Even though I've now noticed you mis-spelled it! - anyway, never post your address in a forum.)
    You have a site here: http://virginiagordon.com/www.virginiagordon.com/WELCOME.html
    If that's not the page you are having trouble with, what is that page's URL?

  • I am looking into Buying Retail a New Blackberry Q10. Doing this to avoid having to Give up my old Data Plan. Have read that when you activate a new Phone it forces you to pick a new Plan. Is this True? and How to I avoid this? 20 Year Verizon Client

    I am looking into Buying Retail a New Blackberry Q10. Doing this to avoid having to Give up my old Data Plan. Have read that when you activate a new Phone it forces you to pick a new Plan. Is this True? and How to I avoid this? Any other advise in this matter would be greatly appreciated.
    20 Year Plus Verizon Client

    The only "unlimited" plan I can think of where this would not apply is the old Connect plan for multimedia/basic phones.  That unlimited data, on devices such as the LG Voyager, EnvTouch, and other "multimedia" devices is  not the same.
    If you currently have an individual $29.99 unlimited data plan with a 3G Smartphone, then you can buy a BBQ10 retail and activate it with the same data plan and keep the unlimited.

  • Are messages sorted by date when you use spotlight search on iphone / ipad?

    When you use spotlight search on an ipad or iphone, and you are searching specifically for text messages,  how are the results sorted?
    it doesnt look like they sort by date modified, or do they?

    i mean Imessages not SMS messages

  • When you double click the circle buttom, and the little bar pops up from what you have been using... is it using data while being in there? is it a good idea to minimize evertthing out of there often so its not using more data ? or does it not matter?

    when you double click the circle buttom, and the little bar pops up from what you have been using... is it using data while being in there? is it a good idea to minimize evertthing out of there often so its not using more data ? or does it not matter?
    thanks!

    Not sure if it uses data, but that allows you to multitask.  To save battery life you should close out of all the apps.

  • How to hide top hits, bookmarks & history drop down menu when typing in safari search bar?

    how do I hide top hits, bookmarks & history drop down menu when typing in safari search bar?

    Not completely.
    In Safari > Preferences > Privacy > Check both Do not preload top hits in the background & Prevent earch engine from providing suggestions.
    This will eliminate top hits and search engine suggestions.
    I am not sure about the rest.
    As far as History, I guess you could clear it and use Private Browsing.
    Bookmarks, I don't think there is anything you can do about that besides removing them.

  • Multiselect item in a SQL/Report received No data found msg

    I am having a problem with retrieving rows from a table with a multiselect item.
    I am using the INSTR function in my SELECT but it only works for one value not two values.
    I am use an anonymous PL/SQL block in a report region:
    Begin
    V_Q:= 'select "ID","FIRMID","FIRM_NAME","ADDRESS1","ADDRESS2","CITY","COUNTY","STATE","ZIP",
    decode("PHONE",null,null,''('' || SUBSTR("PHONE",1,3)|| '') '' || SUBSTR("PHONE",4,3)||''-''|| SUBSTR("PHONE",7,4)) as "PHONE",
    decode("FAX",null,null,''('' || SUBSTR("FAX",1,3)|| '') '' || SUBSTR("FAX",4,3)||''-''|| SUBSTR("FAX",7,4) )as "FAX","EMAIL","ETHNICITY","GENDER"
    from "FIRMS" "F"
    where 1=1 ';
    /********************* this is the code in which I am having a problem ***********/
    If V('P1_COUNTY') is not null then
    v_Q := v_Q || ' AND ' ||'INSTR('':''||v(''P1_COUNTY'')||'':'', '':''||"COUNTY"||'':'') > 0';
    end if;
    APEX_COLLECTION.DELETE_COLLECTION (
    p_collection_name => v_collection_name );
    :P1_Q := v_q;
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B(
    v_collection_name,
    v_q );
    End;
    I am using APEX 2.2 with Oracle 9.2
    I ran the same query in SQL*Plus and it worked. I received data for multiple selections (2).
    Why did it work in SQL*plus and not in APEX?
    Was this a reported bug in APEX 2.2? Was this corrected in APEX 3.0(.1)?
    Can someone please help, I am completely perplexed!
    Robert

    Oops...
    I found the error. INSTR works perfectly. The problem was that I used where clause referencing the COLLECTION which did not have the INSTR builtin function.
    Sorry about that.
    This is now closed.

  • SQL-01403 error reported in a Report Region when there is data to display

    I have a report region populated by a PL/SQL function body returning a SQL Query. When the region is displayed, "ORA-01403: no data found" is output when there should be rows displayed on the report. I see a lot of postings related to ORA-01403, but none seem to describe why this problem occurs or how to solve it.
    Here is the generated SQL query:
    SELECT DISTINCT entry_type, active_time, expire_time, facility, via, output_remarks, p_reports.f_get_to_positions (entry_id, NULL) pos FROM (SELECT 'RSTN' entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_restriction_daily_all WHERE (entry_type in ('RSTN', 'APREQ', 'GS')) UNION ALL SELECT 'RSTN' entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_restriction_daily_all WHERE (entry_type in ('RSTN', 'APREQ', 'GS')) UNION ALL SELECT 'RSTN' entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_restriction_daily_all WHERE (entry_type in ('RSTN', 'APREQ', 'GS')) UNION ALL SELECT 'APERQ' entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_apreq_daily_all WHERE (entry_type IN ('APREQ', 'RSTN')) UNION ALL SELECT 'GS' entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_apreq_daily_all WHERE (entry_type IN ('GS', 'RSTN')) UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_edct_daily UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_runway_daily UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_deicing_daily UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_delay_daily UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_swap_daily UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_sua_daily UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_information_daily UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_outage_daily ) WHERE (active_time BETWEEN TO_DATE (:G7_LOCAL_MIDNIGHT, 'YYYYMMDDHH24MI') AND TO_DATE (:G7_LOCAL_MIDNIGHT, 'YYYYMMDDHH24MI') + 1)
    I am using version 1.6.0.00.87.
    Please advise. Thanks.

    Create a summary column (lets say "CS_TotalRecords") at report level, and set the following properties:
    Function: Count
    Source: column which can not be null (if report displays some data)
    Reset At: Report
    Create a format trigger at most outer frame (the frame you want to hide and all object within that), and write following code:
    BEGIN
    IF NVL(:CS_TotalRecords,0) = 0 THEN
    RETURN (FALSE);
    END IF;
    RETURN (TRUE);
    END;
    Hope this helps.

  • Customize No data found error in report

    4.2.1
    thm:24
    Hi Everyone,
      I have a page with a couple of classic reports. When the underlying sql returns no data, it throws the standard "No data Found" message in that report region. Is there a way we can further customize that by adding something like - no data found for he selected range ?
    Anyone has done this?
    Thanks,
    Ryan

    Hi Ryan,
    Under Report Attributes, scroll to the "Messages" section. There you can edit the "When No Data Found Message", which is default set to "no data found"
    Regards,
    Vincent Deelen

  • No Data Found In APEX report

    Hello All
    I am new to APEX and have a problem. I have created several reports in APEX that allow users to extract data into Excel. However, one report says that No Data is Found in excel although data appears when report is run. Hope I am making my self clear.

    Arie,
    in my case I must have hit a bug (still using Application Express 2.2.1.00.04): I observed this "no data found" issue, and worked around it by just disabling CSV export in the report settings and re-enabling it again afterwards.
    I don't quit understand why we need to apply procedures likes those described in http://htmldb.oracle.com/pls/otn/f?p=31517:117 : shouldn't a CSV export simply work when the corresponding report is non-empty?
    Regards, Thomas

  • No data found in MSS Reports.

    Hi All,
    I've configured the MSS business package in my EP.I've done all the required configuration to get it work.But in all my MSS reports it is showing "NO DATA FOUND".Even the employee search is showing the same message whereas in ESS the employee search and other views are showing proper data.
    Can anyone suggest what could be the issue?
    Your efforts would be rewarded.
    Regards.

    hi,
    MSS now use Launchpad for reporting which u need to configure from the backend system.
    You need to customise the Launchpad reportfrom the backend uding t-code FPB_LP_MSS_REP_CUST. this t-code will initialise ure Launchpad report. Check that table FPB_LP6_SNI is no
    longer empty, and has the required entry. Then run the transaction to
    convert.
    Manually add the line to table FPB_LP6_SNI. The values are role = 'MSS', instance = 'REP', and sni_used = ' ' (blank). Then run the transaction to convert.
       Also try to run run program #PWPC_CONV_MDT_TO_LPA# with type #RPT0#.
    If you want only MDT report's...i.e only HR report..you can include Reporting iView from SAP provided content folder...this is standard iView which will display Manager Desktop.
    Thnaks and Regards,
    Jigar OZa

  • How to pop up if no data found in Crystal Reports XI

    Hi,
    Can you please suggest me how to alert message if no data found?
    Thanks and regards,
    Manjunath N. Jogin
    Edited by: Manjunath N Jogin on Jan 21, 2010 2:53 PM

    To Create a alert the following things has to done
    Goto Report menu --> Alerts --> Create or Modify Alerts --> Click on New button.
    Give the Name as No Records Found and then click on the Condition button and give the condition as
    count({field}) = 0 // Where {field} is any DB field used in the report
    This will create the alert. At each refresh it will alert you.
    Write a formula in the report  as  ie.,Alert Message and give the condition as
    If IsAlertTriggered ("No Records Found") Then
    " No Records Found "
    You can use this formula field in the report to show No Records Found when there is no records available.
    Hope it might help you!

  • How do I clear msgs that I've already deleted from the search page on the iPhone with IOS 6

    How can I clear messages that still show up on my search page even after I've deleted them

    No using the home button it takes me to the search and it shows msgs I've already deleted

Maybe you are looking for