Reel only when data found

Hello I have a select statement and I want the coil only when data is found.
DB is 9i

Thank you

Why not use UNIX itself to check? WC-l to count the lines and if it is up to the threshold of your limit then mailx.

Tags: Database

Similar Questions

  • How to hide the buttons when no data found!

    Hi all

    I created two regions

    1 Serach region
    2 results region.

    Initially during the loading of the page with the help of hidden drive I'm Basel to hide 'areas of results' once that they clik this serach button I display area with teo translated region more buttons as buttons 'export' and 'print '.

    It shows very well when there is data in the region of Reulst.
    But when there is no return I displays the message "No data found" but at the same time it displays 'export' and buutons 'print '.
    This button should show only when data are available in the results area.

    Thank you
    David...

    abhishek8299 wrote:
    Use SQL statements (Exists) in the State and write an sql statement it.

    Use this

    SELECT
    1
    FROM form1 MF,bench1 BM,
    participant1 PP,key1 KT
    WHERE MF.ENGAGEMENT_ID=BM.ENGAGEMENT_ID
    AND BM.ENGAGEMENT_ID =PP.ENGAGEMENT_ID
    AND PP.ENGAGEMENT_ID =KT.ENGAGEMENT_ID
    
  • 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

  • Process page not throwing no data found error when you remove the item in a table

    Hi guys,.

    I'm trying to run a process page just before the process of MRU in tabular form and it is throwing an error no data found . Here is my code:
    BEGIN
         
         for i in 1..apex_application.g_f02.count LOOP     
              
              IF apex_application.g_f01(i) is not null THEN
                   
                   UPDATE STOCK
                        SET PRODUCT_QUANTITY = PRODUCT_QUANTITY+apex_application.g_f08(i)
                   WHERE site_id = :P21_SITE_ID and product_id = apex_application.g_f02(i);
                   COMMIT;
                   
              END IF;
         END LOOP;
    END;
    F01 here is the checkbox column and the if statement is the cause of the problem because if I get rid of the update statement (leaving just the commit) then it still throws the error.

    When I click on a checkbox, and hit the Remove button what fires off times this process and then the MRU, I get the error not found data .

    Would appreciate it if someone could shed some light on this. Thank you very much.

    Published by: taepodong on July 1, 2012 07:54

    Hello

    >
    I'm trying to run a process page just before the process of MRU in tabular form and he throws no data were found error. Here is my code:

    BEGIN
    
         for i in 1..apex_application.g_f02.count LOOP     
    
              IF apex_application.g_f01(i) is not null THEN
    
                   UPDATE STOCK
                        SET PRODUCT_QUANTITY = PRODUCT_QUANTITY+apex_application.g_f08(i)
                   WHERE site_id = :P21_SITE_ID and product_id = apex_application.g_f02(i);
                   COMMIT;
    
              END IF;
         END LOOP;
    END;
    

    Here f01 is the column of the box and the if statement is causing the problem because if I get rid of the update statement (leaving just the commit) then it still throws the error.

    When I click on a checkbox and click on Remove button that triggers both this process and then MRU, I get the no found error of data.
    >

    You iterate over the f02 and seeking f01 not null. It's the misuse of the checkbox element. Please see these links. in particular the examples of process OnSubmit.
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21676/apex_item.htm#CHDDCHAF
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21676/apex_app.htm#AEAPI215

    Kind regards

    PS: That's what you need to understand
    >
    Note that the boxes displayed by using APEX_ITEM. CHECK box will only contain values in the APEX_APPLICATION tables for those lines that are checked. Unlike other elements (TEXT, TEXTAREA, and DATE_POPUP) that can contain an entry in the corresponding table of APEX_APPLICATION for all submitted ranks, a checkbox will be an entry in the APEX_APPLICATION table if this option is selected.
    >

    Published by: Dominique July 2, 2012 09:44

  • Hide the "No data found" msg in the region to report when you 1st click Search page

    Hello

    (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 have the search button

    2 - I have a region (PL/SQL source) report, which sometimes does not return any data, giving a message 'No Data Found.'.


    When I click on the search page for the 1st time (on my navigation bar), I like to HIDE the region report so that I do not have the message "no data found".

    Only once we click the search button and there is no result, I want to have the message "no data found".

    How can I achieve this?

    Thank you

    Roseline

    1. create an item hidden on your page (P1_HIDDEN_ELEMENT)

    2. place your message no data found in a span tag

    No Data Found
    

    3 create a load calculation to set your P1_HIDDEN_ELEMENT to 'no_data_found' if it is NULL and put it to ' ' if it is NOT NULL - body of the type PL/SQL function

    BEGIN
       IF :p1_hidden_element IS NULL
       THEN
          RETURN '';
       ELSIF :p1_hidden_element IS NOT NULL
       THEN
          RETURN ' ';
       END IF;
    END;
    

    4 put this in the footer:

    &P1_HIDDEN_ELEMENT.
    

    The alternative would be to create a display area – pure HTML and display only the first. Once the search has begun this region would remain hidden and only the report themselves.

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

  • My macpro is backup in the capsule of time even when I was at work, which means that the time capsule is consumed my data plan. Can anyone suggest a way I can have it the backup only when my mac pro and time capsule is in the same local wifi

    my mac pro is backup in the capsule of time even when I was at work, which means that the time capsule is consumed my data plan. Can anyone suggest a way I can have it the backup only when my mac pro and time capsule is in the same local wifi

    If the Time Capsule and MacBook Pros are not on the same network, the MacBook is not backup in the time Capsule. You probably see what snapshots leaving MacBook on the local disk, until the two are reconnected. If you don't want that to happen, disable Time Machine on a different network.

    Good day.

  • Phone to download a lot of data via WiFi only when the charger is plugged - iPhone iOS 9.3.1 6s

    Hello

    Just today, I noticed that my iPhone 6s was download continuously at the speed of the network via WiFi only when is plugged in the wall charger or the USB loader on the computer. As soon as I stop charging the phone, the download stops. I have no idea what download and I'm a little frustrated because my connection high speed/wireless home is capped.

    Sync to iTunes on WiFi and iCloud backups are disabled. I had subscribed to 9.3.2 iOS beta on the registration by registering with my Apple ID last week, but I haven't added the certificate so that it can download OTA or via iTunes. I have no update available on my Apple store as well.

    I noticed the slowdown on my cause of internet connection of desktop computers that my phone of summer download something on wifi while he is in charge and I also saw the use of the network by using "System Monitor" app on the App store.

    Kindly help me to solve this problem.

    Thank you

    I did a factory reset on by phone by "Erase all content and data" and chose to set up as a "new iPhone" after reset done. There are now only apple applications on the phone, I connected to wifi with the charger plugged and the problem persists. I wonder if it was to be an apple iOS update, I am on iOS 9.3.1 and 9.3.2 is still in beta, I'm not sure if there is an apple update going on in the background.

    Kindly help.

  • When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    You use listener EA3 ADR?

  • Is there an easy way to create "the mouse on the text, to display the image" without coding it? I want an image to appear only when you move to a line of text. I found the code for it but I want to find an easier way. Thank you!

    Is there an easy way to create "the mouse on the text, to display the image" without coding it? I want an image to appear only when you move to a line of text. I found the code for it but I want to find an easier way. I'm creating a home page with a list of text links. I want to design as well as in the overview of one of the text links, a corresponding image is displayed to the right of the page. I also need a default image to rest all the time unless one of the other links text is hovered over. Thank you!

    Try to use a Widget for Composition in the Adobe Muse Widgets Panel.

    I would like to start with a blank publication.

    Place your text in the button area.

    Place your image in the display area.

  • Display the field calculated only when there is data

    Hello

    Is there a way to display my value only when the data entry field is used. For example, if I have several fields aligned vertically, I don't want to display a bunch of zeros if their data fields are not used.

    Thank you!!!

    You must write the script in the event of Field2 Calculate.

    The value of the FormCalclanguage.

    if(numPeople.RawValue ne null) then

    numPeople * 12

    endif

    My previous answer shows 2 ways to write the same script. A FormCalc and other JavaScript...

    Thank you

    Srini

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

  • When the research report I get the message "no data found".

    When I run a search on one of the fields of research, I get the message "no data found". Anyone can help me to understand what it is that I don't hurt or not done? Thank you

    Deanna

    http://Apex.Oracle.com/pls/OTN/f?p=4550:1:4031563210204584

    Workspace: DEANNA2
    Username: DDOVE@KHP. KS.GOV
    Password: Dclipse03

    Page 21

    No, I added a calculation to the page to see what is the sql code that is returned by the function... Now, I could add in another column and see what happens...

    That's why I suggested moving it to a function outside the page... You can test this in the sql command window and the prefect what you are after... Have done reports a little like this... Or even more fun, with a function in the pipeline...

    Thank you

    Tony Miller
    Webster, TX

  • exception: when no data found

    Hello
    I want to assign a variable var1 leave a select query
    Select attr1 in var1 from table1 where (condition)
    So I want to 0 when no data found in this application, without throwing an exception, the attr1 value so without stopping the program
    someone has an idea?

    Thank you
    concerning
    ELYES

    Hope this helps:

    DECLARE
    v_count PLS_INTEGER;
    BEGIN
    SELECT COUNT(1) INTO v_count FROM TABLE1 WHERE (CONDITION);
    
    IF v_count = 0 THEN
    DBMS_OUTPUT.PUT_LINE('NO DATA FOUND');
    ELSE
    DBMS_OUTPUT.PUT_LINE('DATA AVAILABLE');
    END IF;
    
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('OTHER EXCEPTION');
    END;
    
  • 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

  • Displaying the time in the Date fields only when it is available

    Is it possible to display the component "hour" of a field of date only when the component "hour" is available? I know that the default behavior of not showing the component "hour" of the date fields can be changed by setting the date format NLS in the preferences to include the time as well. However, what causes the fields without component to appear with zeros. (For example: If nls date format is DD-MON-RRRR HH24:MI:SS, a date with no field component "time" will appear as * 1 January 2008 00:00:00 *). It is a configurable option in Quest SQL Navigator, with 3 options available, that says "(afficher l'heure dans les champs date: a) (never, (b) when available or c) always, who miss me dearly in SQL Developer."

    Thanks in advance for your suggestions,
    KLS.

    No, but you can vote on the feature to http://htmldb.oracle.com/pls/otn/f?p=42626:39:4403831115154402:NO:P39_ID:16221 request to add weight to implementations in a future version.

    Kind regards
    K.

Maybe you are looking for

  • A few Questions on the Qosmio G35-AV650 series

    I have some questions that I would ask to my Qosmio G35-AV650. 1: I've updated the BIOS to v1.4 (2005), to v3.3 (2007), to install Vista.Vista does not work so I removed it - I guess that I need to update the drivers again.In any case, I got my PC to

  • Equium A210 will not pick up external audio

    Hello When I right click on the volume icon in the taskbar and goto devices on readingIf I open the recording tab, my laptop completely freezes, don't know why.Should have asked months ago but has not used this has many, but needs sorting. Also, I no

  • Of the Bard's story and Windows 7

    I'm playing "of the Bard's tale" on Windows 7. I have the problem where I can not install it or do anything. Help, please.

  • Update causing code 19 CD player problem

    When the last update came my Microsoft CD drive stopped working.Device Manager tells me that there is an error code 19.When I search for an updated driver, I said that I have the last.I can't reinstall it with recovery because I am n ot sure that one

  • Inspiron 518 does not illuminate

    First of all, I'm not tech savvy and don't know all the names, please bear with me.  The green power light is on the back and the yellow light is on in the tower. I tested the power supply using a paper clip. The 12v, 5v and 3.3V DC output lines were