hide the button if no data found in the report

Hello

I use the apex of oracle 10g 3.2
I display a report with the "print" key.
I want it if the report shows not all data that is no data found then I want to hide the "print" key.

How to do this.
Thank you
Olivier

Hi Olivier,.

In the "print" key condition, select the condition type as "EXIST (SQL query returns at least one row) ' copy and paste the SQL report in expression1.

Kind regards
Sagay

Tags: Database

Similar Questions

  • How to hide the report engine

    I'm new in oracle and want to know how to hide report engine when running...

    Can someone help me...

    Thank you

    Fasquel

    The following coding will help you hide the report oracle machine,

    ADD_PARAMETER (IDparam, 'ORACLE_SHUTDOWN', TEXT_PARAMETER, 'YES');

  • 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
    
  • Hide the report 0

    Hello

    How to hide all the zeros in my report?

    I did it

    < script >

    $(' #MYTABLE tr:last').filter(function() {return $(this) () .text == "0" ;}}). CSS("font-size","0%");

    < /script >

    But that doesn't make all the lines?


    Any help please


    Dean

    Postie wrote:

    Hello

    How to hide all the zeros in my report?

    I did it

    But that doesn't make all the lines?

    Your selection is only for the last line:

    $('#MYTABLE tr:last')

    Why do you try to do that in a strange way? For example, have you considered that shrink the text won't hide the zeros for users who cannot see them? This Visual change has no effect on screen readers (or CSV export also). What about the ugly flicker which will lead as the browser redraws the table when it executes this script?

    If you really want without zeros in the report, delete the source of the query:

    select
        nullif(col1, 0) col1
      , ...
    from
        ...
    
  • 10g - hide, the report contains the oracle user-defined function

    Hi, experts,

    of http://obiee101.blogspot.com/2008/07/obiee-cache-management.html

    Reasons why a request is not added to the Cache:



    •The-cacheable SQL element. If a SQL query contains Current_Timestamp, Current_Time, Rand, Populate, or a parameter marker, then it is not added to the cache.

    •The-cacheable table. Physical in the Oracle BI Server repository tables can be marked "cacheable". If a query refers to any non-cacheable table then the results of the query will not be added to the cache.

    •Cache hit. In general, if the query gets a cache hit on a previously cached query, then the results of the current query are not added to the cache. The exception is query that is aggregated at winding hits hits.

    Result set is too large.
    Query is canceled. This can happen by explicit cancellation of Oracle BI Presentation Services or Administration, or implicitly through timeout tool.

    •Oracle BI Server is clustered. Queries coming into family "seeding cache" spread in the whole of the cluster. Other queries continue to be stored locally. Therefore, even if a query may be cached on the Server BI Oracle 1 node, it can not be on the node Server BI Oracle 2.




    I would like to know
    If the application (report on the dashboard) calls a function defined by the user to oracle, the cache can be created and saved for this report?

    Thank you very much!

    Hello stephen,.

    If the application (report on the dashboard) calls a function defined by the user to oracle, the cache can be created and saved for this report?

    Yes, it is cached... function defined in the database is called OBIEE is cached and saved.

    More information and example can be found here http://oraclebizint.wordpress.com/2007/09/10/oracle-bi-ee-10133-support-for-native-database-functions-and-aggregates/

    Hope this helps you. Check answers to any other questions you have posted?

    By,.
    KK

  • No data found on report not based on a collection

    Hi all

    I got a page with this process of ' head after ":
    begin
      if(apex_collection.collection_exists(p_collection_name => 'users')) then
        apex_collection.delete_collection(p_collection_name => 'users');
      end if;
    
      apex_collection.create_collection_from_query(
        p_collection_name => 'users',
        p_query => 'select user_name from demo_users');
    end;
    And then I try to display the data in the collection in a report, as with this SQL query.
    select *
    from apex_collections
    where collection_name='users'
    I haven't had a "no data found" for this report... I have try this very basic example to understand collections, and I don't know what I'm missing...

    Thank you very much

    Dovik

    Hello

    Write the name of the collection to uppercase in the process and query

    BR, Jari

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

  • How to hide the button only break on the toolbar at run time

    Hello

    I had to hide all the buttons as run, run streaming, vi and other abandoned by accessing the properties VI and by unchecking the corresponding options.

    When I run the vi, everything becomes hide except the pause button and I found no option to hide manually as well as programmatically.

    can someone tell me how to hide the pause button. I have an urgent need for same.

    Thank you best regards &,.

    Samriddh Sarbalhi

    Hello

    You need...

    Properties of VI--> execution

    Turn off "enable debugging".

    Rod.

  • Hide the list button dropdown object except when he put there at the point on the field?

    Is there a way to hide the object from the dropdown list of the button (only) when it does not focus on this field drop-down list? If the button is not visible until the user clicks this drop-down list is not visible when the user leaves this field drop-down list. As the functioning of the object date.

    If you set access for the field read-only by default, they can still enter the field to display the button if you put the above script if the entry...

    I hope I understand correctly, this method should work perfectly if your goal is to hide the button from the drop-down list

  • Hide the button Quiz continue until all attempts

    Hello!

    I use 8 Captivate and have a quiz that allows 3 attempts failed. It's game to go to a slide if they pass and another if they fail. These work very well using the button continue.

    There is a cover and continue button.

    However, the shows continue button on the quiz results slide on the first and the second attempt. If the user clicks on this - the quiz is over - no attemtps allowed (no bar reading if it would make a difference).

    The instructions show on the failed attempts, "...". If the back button is displayed, click on it, if not, click on continue. »

    How to hide the continue button on the first 2 failed attempts?

    I was looking for articles and perhaps the answer is here - I'm just not reconstruct the it. I created an if/else statement to access the appropriate slide based on the % of quiz scored, but he then ignores the results of the quiz.

    I know that there is a way!

    Thank you for all the advice!

    Sherry

    SOLVED! I found the "more like this" in the pane right and found my answer - Phew! I think that some people do not put tags in their questions.

    In any case... RodWard had a suggestio nthat genius is so simple! Put on top button recovery button continue. SO the button continue DON'T show when replays are exhausted. Hallelujah!

  • No data found in report csv or pdf on first loading of the page

    No data found in report csv output on the first load of the page. Report appears on the page, but no data is available in csv or pdf output. I still need to send the page and then it shows the data in the downloads. The page contains a form (read-only) with a report that refers to 4 page elements by using something like the following:

    and b.employee_no = v ('P5_EMPLOYEE_NO')
    and c.fisc_year_pk = v ('P5_FISC_YEAR_PK')
    and b.job_class = v ('P5_JOB_CLASS')
    and b.organization = v ('P5_ORGANIZATION')

    Yet once again, report to page appears except there is no data in the downloads. Can someone help me solve this problem? I'm under Oracle APEX 4.2.1 in Oracle database 11 g 2.

    Thank you.

    Sounds like a question of classic session state.

    You must eat the page elements using calculations of page rendering to ensure they are set to session state.

    Or if the download is triggered by a button, you should check that the elements of the page are subject to session state, perhaps via an action of PL/SQL.

    Scott

  • Hide the button until all Conditions are met?

    Please help!  I am creating a forklift safety training module. There are 12 buttons on the first slide (see screenshot 1); However, only 11 are visible at the beginning of the slide.  The 12th button is a "continue" button that appears only after all the content slides (slides 2-12) were considered by the learner.  I used a conditional action to hide the button (something I learned from @Lilybiri) until all the conditions are met.


    The problem:

    The "Continue" button does not always appear once the content slides have been read.  I found I can do appear to ebb in each slide content, show the slides a few seconds more before returning to the main slide- which seems certain conditions which tells Captivate to display the button "continue".  Of course, I don't want the learners to face to the challenge of trying to understand why they cannot continue. I just want to visit the pages relating to each key to all conditions met.


    Screenshot 1: the initial screen (actions related to the change of color of button below)

    forklift_screenshot1.jpg


    Screenshot 2: chronology of the page main interaction

    forklift_screenshot2.png


    Screenshot 3: conditional Action to display the button CONTINUE (created as a decision 2nd out of action of 'Transport').

    My expectation was that OnEnter, slide would be recognized as read and count for the condition that all 11 pages of content would be considered before that appear the continue"" button.  I set the time to s 3.0 (see screenshot above) on all content slides.  No transition, no effect.

    forklift_screenshot3.png


    Screenshot 4: each slide content is returned to the slide main interactivity by an OnSuccess: jump to the command of the slide.  Nothing special here.  I tried to reduce all the content slides to 1.5 s nothing works.

    forklift_screenshot4.png


    Screenshot 5: an example of the page interaction BEFORE all the content slides were read and before 'CONTINUE' button appears (ignore the footer buttons; it was just me to experiment with styles of button).

    forklift_screenshot5.png


    That's a lot, I know.  I wanted to cover the entire base.  I would appreciate your thoughts and your expertise.  Thank you in advance!


    Michael

    How about what is probably very close to what you have already made... (After double checking all of your shares advanced for bugs)

    Each main menu button sets the variable 'consulted' 1, hides the active button, show visited button, then jump to the content. Alternatively, you can put the action on the close button for each slide as you did.

    Then in your main menu, you will have the conditional action on enter that verifies that each variable 'seen' is 1. If it is true, then it will show your button continue.

    I use this method with almost all of the modules that are non-linear. I use it to display a button quiz start, tab summary etc...

    To check your programming that I'm down in a text caption that has all the variables, you will have to look and make sure that they change to 1 as it should. As soon as something does not change probably you have found your problem. Also make sure that none of your actions changed to continue if you have accidentally deleted an object or something similar.

    Also BTW: If you want to increment a variable, you use the action "expression" rather than "assignment." If you keep just assign 1 to a variable, all that you will ever get is 1. example: If the variable = 7 and you assign 1 then now variable = 1.  If you use the variable expression variable = + 1 then you will be able to increment. Also be careful if a user visits an article more than once because it increments the new variable unless you have a control to see if the content has been seen before, and then past increment. Otherwise they could visit the same section 11 times and then have the button continue become visible.

  • 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

  • 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 "submit" button when there is nothing to report

    Hello

    I have a simple command with a 'running total' good quantities ordered at the top of the form, (FormCalc) calculated as follows:

    the sum of $ = (Products.PRODUCT_GROUPS. DATA[*]. PRODUCTS. DATA[*]. Quantity)

    If this amount is zero (that is, nothing has been ordered) so I want to ban the form submitted by e-mail. I thought that the best way to achieve this would be to hide the submit button when this field is zero and show when > 0.

    I tried adding this code for the same event in this field to calculate:

    If ($ > 0) then

    Button1.presence = "visible".

    on the other

    Button1.presence = "hidden".

    endif

    but no go.

    Sorry if it's real simple, but I would appreciate the help!

    Thank you.

    When, in the code window, you will see that it says something about Ctrl + click for the SOM expression. So if in the event code for an item, you can press CTRL, then click on another point and it will insert the correct reference in your code. We must ensure that emphasis is placed in your code when you do and the mouse cursor will turn into a broad V.

    You can do a right click in the code window and select check the syntax of the Script to see if there are problems.

    When you view the form in preview, Ctrl + J opens the JavaScript debugger. It may need a config first in Acrobat. It has been a while since I put that up. Instead of making app.alert, you can do console.println and it will write in the JavaScript console. Occasionally, you may need to debug something dealing with the development and the app.alert itself affect the focus.

    Have you thought about putting your code preSubmit event and displaying a message that nothing has been entered? Also don't xfa.event.cancelAction = true

Maybe you are looking for

  • Can a second hard drive be added to a Satellite A200-298

    HelloI have a Satellite A200-298 which came with a hard drive of 200 GB, I wondered if it was possible for a second hard drive more to be added to help with Itunes that is storage of files and movies. Post edited by: Irishdiver

  • HPDM 4.6 - SQL database Question

    I have the console HPDM installed on my machine and the device management server/gateway running on a server.  The database is a database of SQL2012.  I've set up a new machine with SQL2014, and I want to move the database there.  I'm not moving all

  • Cannot install Windows Easy Transfer for update to Windows 7

    I am running Vista Home Premium 64-bit sp2 and upgrade to Windows 7 Pro. I know I need everything back up, install 7 and then restore my data and programs. When I install Windows Easy Transfer, it downloads very well, then on run I get 'Stand Alone W

  • Update notificatuion for JO 3600

    I use Windows 7 on a Toshiba laptop. I get the update notification window that says: "An update is available. do you want to download and install this update now? » The problem is that there are no dialog boxes to answer Yes or no. How can I answer t

  • Windows 7 How can I print the results of a search of file /dossier? John B.

    I would compare the search results by printing.  How can I do?