Query date picker display "No data found", works of SQLPlus

I created 2 date picker points - P2_START_DATE and P2_END_DATE. I put the format of these of 'DD-MON-YYYY '.

This is the query that I select the data based on the values of the selectors of dates:

Select sample_date, reading of meter_data where sample_date between to_date(:P2_START_DATE,'DD-MON-YYYY') and to_date(:P2_END_DATE,'DD-MON-YYYY') order by sample_date;

The P2_START_DATE is January 20, 2011 ', the P3_END_DATE is January 21, 2011'.

The query returns "No data found" when it is run in the APEX, but when I run the present in SQLPlus on the host I get data:


Select sample_date, reading of meter_data where sample_date between to_date('20-JAN-2011','DD-MON-YYYY') and to_date('21-JAN-2011','DD-MON-YYYY') order by sample_date

20 JANUARY 2011.39
20 JANUARY 2011.14
20 JANUARY 2011.14
20 JANUARY 2011.18
21 JANUARY 2011.13


Can someone explain what I am doing wrong? I tried a few different formats, without success.

TIA

Please update your handle something more staff.

Watched your applications and found several problems. Make a copy of the Page 2 (Page 4); He is currently working.

Problems found at Page 2:

select null link, SAMPLE_DATE label, READING value1
from  "METER_DATA"."METER_READINGS"

had no Where clause; missing a statement Between; added or replaced Where clause to Page 4 for your original message

select null link, SAMPLE_DATE label, READING value1
FROM   meter_readings
WHERE  sample_date BETWEEN To_date(:P4_START_DATE, 'DD-MON-YYYY') AND To_date(
                           :P4_END_DATE, 'DD-MON-YYYY')
ORDER  BY sample_date;

Button named; Date range Submit Redirected to Page 3 application; delete this button and adding a Submit button, who introduced the page and graphics rendering

Maximum lines map series has been set at 50 lines; I fell the value up to 500 in order to get all the dates in your meter_readings table

Jeff

Tags: Database

Similar Questions

  • Query of the region gets no data found

    Hi all

    I have a region that is of type "SQL query". This area is also a button 'apply update '. There is a validation of the page that looks up a value in a shuttle that goes off when you press 'Apply update'. Sometimes, when the button is pressed and the validation fails the region return that the no data found message as defined in the attribute for the region, other times reports page when the failure of the validation of data which has been in the region until the button is pressed just stay there, as it should.

    Why I get such different results when validation fails? Why do I sometimes get "no data found" and other times I get the data in the array returned by the SQL query?

    A couple of things to point out,

    (1) the table gave in, the sql query will always return Row (s)

    (2) the sql query is NOT dependent on the values of page defined level.

    (3) the sql query is simple, similar to...

    Select *.
    of my_custom_table
    my_column asc order

    Is a global temporary table... but it is defined as "on commit preserve rows", my data must therefore be kept for my entire session, even if it wasn't, it still does not explain the sporadic "no data found", unless the APEX is somehow sometimes change the session and I'm not aware of it...

    Exactly what APEX - and any other web technology using connection pooling- done.

    Replace the TWG with a collection of the APEX. You can define a view of the collection to match the name of the existing table, the column names and data types.

  • Query report back "No data found" with bind variables

    I put a simple query in the report query:

    Select "bluefish". 'name' as 'name',
    "bluefish". "" primary_flag "as"primary_flag. "
    "bluefish". "" status "than"status. "
    "bluefish". ' ' ID ' as 'ID' of "bluefish" "bluefish" where "bluefish". "" ID "=: P3_XPRINTID

    When I test the query, the data is returned. However, when I try to run the query using the "Test report" button, I get an error 01403 no data found. If I replace the link with an explicit value variable, the report runs.

    Anyone have any ideas as to what is causing this problem? I use the generic report layout, with different types of output. I'M editting the query and set the binding variable before test report (otherwise, the query is not executed).

    Charles

    In fact the report would go - unlike other products of Oracle who complain about a missing binding variable, Apex is not complaining but interprets as a null value. So if you hurt typed the name of your variable, you are never alerted to it.

    Check the Session window to make sure that it is a value - the most common questions are that you named the wrong variable in the query or your item has no value in session state again.

  • How to display the message no data found

    My problem is that when my report generates no how to display a message "No Data found for search criteria" to data users? Here is an example of XML, when there is no data found.
    <?xml version="1.0" encoding="UTF-8"?>
    <DOCUMENT>
        <DATE>01-MAY-09</DATE>
        <USER_NAME>MYUSERNAME</USER_NAME>
        <APP_ID>750</APP_ID>
        <APP_NAME>APEX - Application Builder</APP_NAME>
        <TITLE>Averaging_Change_Letter</TITLE>
        <P7_MINIMUM_VARIANCE>0</P7_MINIMUM_VARIANCE>
        <P7_PROVIDER_ID>2033</P7_PROVIDER_ID>
        <P7_SIGNER>Someones Name</P7_SIGNER>
        <P7_SIGNER_PHONE>(801) 999-9999</P7_SIGNER_PHONE>
        <P7_CHANGE_DATE>11-JAN-09</P7_CHANGE_DATE>
        <P7_PAY_DATE>30-JAN-09</P7_PAY_DATE>
        <P7_PERIOD_NUMBER>3</P7_PERIOD_NUMBER>
        <REGION ID="0">
            <ROWSET>
                <ROW>
                    <PROVIDER_ID></PROVIDER_ID>
                    <HR_EMPLOYEE_NUMBER></HR_EMPLOYEE_NUMBER>
                    <PROVIDER_NAME></PROVIDER_NAME>
                    <BIWEEKLY_PAY></BIWEEKLY_PAY>
                    <CHANGE_DATE></CHANGE_DATE>
                    <EFFECTIVE_TO_MONTH></EFFECTIVE_TO_MONTH>
                    <LETTER_DATE></LETTER_DATE>
                    <MONTH_FROM></MONTH_FROM>
                    <MONTH_TO></MONTH_TO>
                    <PERIOD_ABBREV></PERIOD_ABBREV>
                    <PERIOD_FULL></PERIOD_FULL>
                    <RVUS_IN_PERIOD></RVUS_IN_PERIOD>
                    <DAYS_IN_PERIOD></DAYS_IN_PERIOD>
                    <DAILY_RVU_PRODUCTION></DAILY_RVU_PRODUCTION>
                    <RVU_PAY_RATE></RVU_PAY_RATE>
                    <PROVIDER_EXPLANATION></PROVIDER_EXPLANATION>
                    <PREV_PROVIDER_ID></PREV_PROVIDER_ID>
                    <PREV_MONTH_FROM></PREV_MONTH_FROM>
                    <PREV_MONTH_TO></PREV_MONTH_TO>
                    <PREV_RVUS_IN_PERIOD></PREV_RVUS_IN_PERIOD>
                    <PREV_DAYS_IN_PERIOD></PREV_DAYS_IN_PERIOD>
                    <PREV_DAILY_RVU_PRODUCTION></PREV_DAILY_RVU_PRODUCTION>
                    <PREV_RVU_PAY_RATE></PREV_RVU_PAY_RATE>
                    <PREV_BIWEEKLY_PAY></PREV_BIWEEKLY_PAY>
                    <PREV_PERIOD_ABBREV></PREV_PERIOD_ABBREV>
                    <PREV_PERIOD_FULL></PREV_PERIOD_FULL>
                </ROW>
            </ROWSET>
        </REGION>
    </DOCUMENT>
    Published by: tfa on May 1, 2009 10:30

    I missed a POINT in front of! =, his. ! =

  • How not to display no data found for two different elements

    I wanted to view report by dept wise or wise provider
    so when I'm not have associated deptno data
    It should say no data found
    for this I use if condition
    Ditto for the provider too
    instead of giving twice can I give it in the same condition if
    If so, how

    Use logical operator 'or '.

    as not found data

  • Get "no data found" when I download the report

    Hai...

    In my application, I created a region of reports where the data are displayed... I gave 'Download' format csv... when I try to download, I could not the data in the spreadsheet "excel" his coming as no data found...


    What could be the problem...

    Please help me...


    David

    Hi David,

    I've always found preferable to set the value of the element on a page using a calculation when I want him to have a starting value that does not rely on a database column.

    On your two fields, set the static allocation Type of Source and remove source.

    Now, on your page, click on the button create (icon +) in the section of the Page rendering calculations. Then enter the following settings:

    Geographical area: item on this page
    Point calculation: select your P1_STARTDATE
    Calculation Point: Before header
    Calculation type: SQL query
    Calculation: Select TO_CHAR(SYSDATE-1,'MM/DD/YYYY') from Dual
    Condition Type: Article 1 of the Expression value is NULL
    Expression 1: P1_STARTDATE

    Repeat this for your usng P1_ENDDATE Select TO_CHAR(SYSDATE,'MM/DD/YYYY') from Dual to the query

    Now, when the page is loaded first, the calculation conditions are checked. As the two fields are empty, the calculations are made and items get their start values. Your application should then work ok for export.

    Andy

  • OBIEE 11.1.1.7 have reported "no data found" on data table columns

    Creates a data source jdbc using the 'Manage the Sources of private data' button, then a model of data using this data source and some sql codes.  Sample recorded data.  Trying to create reports OBIEE, but when I drag the columns on the data model, they appear in the table of data as any data found: / COLUMN_PATH

    When I try to run reports, they end up error, does not display any data.

    If I use BI Publisher reports on this data model, those that work very well.

    Any ideas on what's going on?

    Hello

    'Manage private Data Sources' = BI Publisher

    "data model" = BI Publisher

    OBIEE reports on BI Publisher data model? Impossible!

    I can't imagine even where you have found a way to create an analysis using a BI Publisher data model as a source.

    BI Publisher reports against BI Publisher data model works very well = this is the expected behavior.

    What/where/how do you do your analysis OBIEE?

  • report "no data found".

    Hello together,

    I use Apex 4.2.4 with a DB XE on Windows.

    I'm creating a mobile application.

    I created a report showing specific information from the user.

    Sometimes, it is possible that there is no information available. In this case the report displays the message/exception "no data found".

    Is there a solution to hide this message?

    My plan is to show only the data if they are available and show nothing when no data found.

    For the user, it should look like this, there is not a report if no data is available.

    I don't want to see the message "no data found".

    Thanks for your help

    Joe

    Joe_990933 wrote:

    I use Apex 4.2.4 with a DB XE on Windows.

    My plan is to show only the data if they are available and show nothing when no data found.

    For the user, it should look like this, there is not a report if no data is available.

    Control if the area of report is displayed using a Exists (SQL query returns at least one row) condition with a query that returns at least one row if the report contains data.

  • Redirect when no data found

    Using Apex 4.1.1

    I need my application to redirect to another page when the user performs a search and there is no data found. The query in the report is too complicated and is a "Body of function from PL/SQL returning SQL query" and must be like that. It just does not work on its own.

    Initially, I tried to Javascript to run onLoad & run loading Page like:
    function redirect_on_no_data_found2()
    {
         
         // if user came from non-catalogue page
         if($(".nodatafound").html() == "no data found")
         {     
              redirect('f?p=129:8:'+$v('P1_SESSION_ID_VALUE')+':NO_DATA_FOUND:NO::');
         }
         
    }
    But javascript as it's too unreliable in IE 7, which is what users use and does not work in some cases while in others works.


    Is there another way I could do a redirect without javascript or using the APEX_APPLICATION.redirect procedure. Little short of ideas.

    Thank you very much.

    Hello

    I wrote this blog post where is also link to example
    http://dbswh.webhop.NET/HTMLDB/f?p=blog:read:0:article:6611800346018314

    I have test, you must use a fixed value as function APEX_UTIL. SAVEKEY_VC2 call parameter and select the double wrap.
    In this way, the function is called only once in the report query.

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Button cancel LOV shows "No Data Found"

    I have 5 fields in a form where users can search for different information based on what they type in the search fields. Once they have their search criteria, they hit a "Search" button, I have a trigger button when_button_pressed on the search button. This trigger I have logic to build a record group dynamically, after the General receiver gets filled dynamically I use the bulit SHOW_LOV to my LOV to the end user. It all works well, however, there is a new requirement in where the client wants a message "no data found" displayed on the screen when users type information arbitrary/no valid on all areas of research. I could accomplish this by simply putting the following code in the ELSE part of my IF statement main to my LOV.

    ON THE OTHER
    IF SHOW_LOV ('LIAB_LST_LOV') THEN
    display_message ('no data found');
    END IF;
    END;

    The preceding code displays the message that they want to see when search users research on invalid criteria. So finally, here is the question, when their research on VALID criteria that the LOV appears of course without any problem, but if users click on the button 'Cancel' in the LOV window they get the message "No data found" above too. They only see the message, if there is data invalid sought.

    How can I make sure that after the LOV gets filled my code does not return the message no data found when they press the LOV Cancel?

    Thank you

    Adrian

    Hello

    See the GET_GROUP_ROW_COUNT integrated in the online help.

    François

  • No data found apex 4.0

    I created an application on the site of apex oracle with the workspace that you gave me, it worked fine. I made an app to export and tried to import into my work apex 4.0, the same version that the
    site of the Oracle, she imported ok without error
    but when I opened the form, one of the regions said no data found, I have the same exact tables

    Its pretty difficult to see the source of the problem on our side.

  • You use some type of context based view
  • Tables/views to fine grain Access Control (Policies)
  • Your reference to the table is correct? Perhaps a synonym is pointing to the wrong schema.
  • atBind name of the Variable used in a query wrong/space between / had some special characters in the name, which have been lost-out/in replaced import?

    Start with the database and check the DB table/view/object used in the form.
    Add a new item on process/page that uses the same query and see if its actually import some kind of question. Or try to recreate the same form again manually in the same page and see if that retrieves data when the other is not, at the same time.

  • Function body PLSQL returning a sql report returns ORA-01403 no data found

    I'm on APEX 3.1.2.00.02 and Oracle 10 g.

    I develop a relationship with the type of SQL query (body of function from PL/SQL returning SQL query). But the performance of the report, I get

    error report:
    ORA-01403: no data found


    Source of the region
    declare
      qry varchar2(32767);
    begin
      --Procedure call
      my_pkg.get_query(qry);
    
      htp.p(qry);
    
      return /*select 1 from dual */ qry;
    end;
    Procedure
    PROCEDURE get_query (V_QRY OUT VARCHAR2)
    IS
      qry varchar2(32767);
    begin
    
      qry := ' select name
         , max(decode(to_char(service_date,''Mon-YY''), ''Jan-09'', value, null)) as "Jan-09"
         , max(decode(to_char(service_date,''Mon-YY''), ''Jan-09'', value, null)) as "Feb-09"
         from MY_TABLE
         group by name ';
      
      V_QRY := qry;
    end;
    The query will be improved later to add more month and year according to the user settings that I am running on this report.

    I want to use specific query column names. I saw this suggestion from Scott in a number of threads to use / * select 1 double * / with the query, but does not not in my case.

    Please can anyone suggest what I can do to make it work?

    Kind regards

    Amir

    First of all, unit you have tested the procedure (namely, in the workshop of SQL, SQL * Plus, SQL Developer, etc, etc) to see if it produces the output in the first place right?

    If you have, and the generated query string is valid, try to assign the output to a page element (allowing you to visualize in the session browser), or even through the procedure output window for debugging (using the wwv_flow.debug function). This might indicate a change of State or session that is causing it not to return. You might find this easier to achieve if you switch from one "procedure and output parameter ' combination 'function returning string' approach."

    If not, try to re-create the report in a new region - sometimes I came across strange bugs with parts of the report which were solved in this way.

  • Change the order of the columns does not cause any data found error report

    Hello. I have a weird problem (and I'm new to APEX). I have a subregion of report that shows the details of a master record based on the ID of the parent area. When I have everything first to change SQL for the query and apply the changes page works fine. When I go back and change the region > attributes report and use the arrows to change the order of the columns the region then returns:

    error report:
    ORA-01403: no data found

    I tried to change the query so that the columns found in the desired order and who has also not returned no data error. If I go back to my original query (which had 2 fewer columns) the page works again. Then I change to the new query (2 addtl columns), and then it works again, until I have change the order of the columns again. Don't know if it would be serious or not, but one of the columns is a 2 columns of the table concat.

    Any ideas would be appreciated, because I'm out of them.

    Thank you!

    use: Apex 4.0
    DB: 10g Exp

    "807428," Hi

    using 4.0 or 4.0.1? Can you reproduce the same problem on apex.oracle.com as well?

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Interactive report: "no data found" when first loading

    Hello

    I use APEX 4.0 with Oracle 10 g r2 under Windows XP Pro SP3.

    I have an interactive report and a menu with a few items to filter the report.

    The problem is that the first time I load the page, the report shows "no data found", when I reboot, it works. If I navigate to another page and then I go back to the page of report, it also works.

    There seems to be a problem with session state, but I can't found how do works, even using an AJAX setItemInSessionState() function.

    The query depends on the values of the elements:
    select
         SPAT_ID, SPAT_ACCL_NAME, SPAT_AREA_NAME, SPAT_CLASS, SPAT_NUMBER, SPAT_PT, SPAT_TYPE, SPAT_STATUS,
         round(SPAT_CUMUL,2) as "SPAT_CUMUL"
    from
         SPATIAL_POINTS
    where
         upper(SPAT_AREA_NAME) LIKE upper(:P3_FILTRE_AREA_NAME)
    AND upper(SPAT_CLASS) LIKE '%'||upper(:P3_SPATIAL_CLASS)||'%'
    AND upper(SPAT_NUMBER) LIKE '%'||upper(:P3_FILTRE_NUMBER)||'%'
    AND instr(upper(:P3_SPATIAL_POINT_VALUES),upper(nvl(SPAT_PT,' '))) > 0
    AND instr(upper(:P3_SPATIAL_TYPE_VALUES),upper(SPAT_TYPE)) > 0
    AND (:P3_FILTRE_ACC_NAME IS NULL AND spat_accl_name IS NULL OR CASE WHEN :P3_FILTRE_ACC_NAME = '%' THEN nvl(spat_accl_name,'_NULL_') ELSE :P3_FILTRE_ACC_NAME END = nvl(spat_accl_name,'_NULL_'))
    I've implemented on apex.oracle.com, if you find the time to take a look: http://apex.oracle.com/pls/apex/f?p=4550:1
    You should get a "no data found" the first time the page loaded.

    Workspace : yb202826
    login : User1
    password : u_s_e_r_1
    application : 20588. Page 1 of the Geode

    Thank you!

    Yann.

    This problem is described here:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:117

    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
    -------------------------------------------------------------------

  • Upgrade to 4.0 shows no data found on tabular forms

    Hello

    After the upgrade from 3.x and 4.0, an application that had many tabular forms does now show "no data found" in their respective regions. A few pages work, while others do not.

    Curiously, if I take the same sql in the source box and create a new page from scratch, the new tabular form displays data correctly. It seems to be a problem with the upgrade. In one case, it's a very simple "select col1, col2 sample_table etc"type of syntax. " Nothing complex here.

    I wanted to see if others have experienced.

    Flipping through the Setup log, I can't find any errors. The validation stage shows also all own compiled objects.

    Thank you!
    Erik

    Erik,

    We have listed this problem on our questions about page:

    http://www.Oracle.com/technology/products/database/application_express/HTML/4.0_known_issues.html

    Search bug 9879227. We are working on this resolution in the APEX 4.0.1.

    Kind regards
    Marc

Maybe you are looking for