How to Suprass a report layout when there is no data

Hi Community,
I have a Sql Query which Gives me the list of pre-treatments which doesn't have the corresponding post treatment
This query sometimes doesn't not return any rows
At that time is there a way that i can suprass the the whole layout from printing on the report
i am using oracle 6i Reports
Please help me out!!!!

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.

Similar Messages

  • How Do I - Display a group when there is no data for the group?

    I have a report where I'm grouping on a numeric county number. Currently, if there are no records for that county, that report group doesn't display. My users want each county printed even if it has no data.
    The numeric values for county range from 1 - 85. I'm using CR 11.5 and pulling data from a Teradata database.

    Hi. I had already thought of doing an outer join on the county column of the county look up table. The problem is that this transfers the selecting and counting of the targeted data from the SQL statement to the report, specifically most of the formula fields itself. And given that the report is parameter driven, it would make maintenance of the report not so much fun. The solution ( I think, still have to code it) is to take my original inner join query and UNION it to a query selecting only the county column from the county look up table. I just add null valued columns to match the number of columns in the original query. This way I get at least one county record to satisfy the display of each group and only minimally increase the actual number of records the report has to process.

  • Header Fields are not displayed when there is no data in the report

    Hi,
    I am having this strange situation in my webi report.
    When I refresh my report and when there is no data, column names are not being displayed in my report. All it is showing is two empty rows. When I have data, then report is displaying data along with column headings.
    Please suggest me where I am going wrong.
    Thanks,
    VenMen

    Thanks for the update.
    Can you try this.
    Run the report first time for some data.
    When the report is rendered select the table that is displayed.
    On the left pane side properties tab.
    Expand display and check all the options
    Show rows with empty measures
    show rows with empty dimensions
    Show when empty
    Hope this will help
    Regards
    Kultar

  • How to avoid printing a blank page when there is 'no data' in the report.

    how to avoid printing a blank page when there is 'no data' in the report.

    try like this
    if@section:IND=1
    this template
    end ifsectionbreak
    if@section:IND=2
    this template
    end if

  • How to change the default JRE when there are several version of JRE in Sys

    How to change the default JRE when there are several version of JRE in System?
    i have installed j2sdk1.5.0 then installed j2ee1.4,then installed Weblogic6.1 which use jdk1.3
    Now the JRE is jdk1.3\bin
    When run class that was compiled with jdk1.5,throw:
    java.lang.UnsupportedClassVersionError
    How can i change the jre to 1.5?

    There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
    Excerpts from sun docs:
    However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    Details are here
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
    My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
    Will update if i find more information

  • How to block a sales order when there is a free good item .

    Hello Gurus ,
    How to block a sales order when there is a  free good item  , only the authorised person should have authorisation to release those blocked Sales orders.
    Reason - They want to have a track of free goods given to customer & to avoid the misusing things
    Looking  for your inputs
    Thanks in advance
    Regards
    Venkat

    Hi
    I think you can try with Status Profile in BS02 define and assign for item category TANN.
    In status profile you can block the delivery and also billing unless some changes the object status as released.
    Just try and explore
    regards
    Prashanth

  • How do I find offending photo when there is a problem uploading photos to order prints?

    How do I find offending photo when there is a problem uploading photos to order prints?

    What is the problem? What version of iPhoto? Of the OS? Try safe mode
    LN

  • How do I delete a photo when there is not a trash bin at the bottom of the screen

    How do I delete a photo when there is no trash bin on the bottom of the screen?

    If there is no Trash icon for that photo, the photo was most likely copied to your iPhone by syncing with your computer. To delete the photo you need to do another sync.
    1. If you want to remove a complete album, deselect that album in iTunes on your computer. Then when you click on Sync or Apply that album will be removed from your iPhone but it will remain on your computer.
    2. If you want to remove only certain photos from albums you must delete the photo from the album on your computer or move it to a different album or folder.  Then when you click on Sync or Apply the photo(s) will be removed from your iPhone.

  • How do I make a backup when there are 4 users on my mac

    How do I make a backup when there are 4 users on my mac?

    Welcome to the Apple Support Communities
    If you have more than one user, the backup is just the same as if you have one user. All users are backed up and there isn't any difference between a backup made on a Mac with one user and on a Mac with multiple users. Then, if you want to restore that backup in the future, you will be able to select which users you want to restore

  • Just given my first iMac. How does one use cd's when there is no slot?

    Just given my first iMac. How does one use CD's when there is no slot?

    Oaxaca36 wrote:
    How does one use CD's when there is no slot?
    http://store.apple.com/us/product/MD564ZM/A/apple-usb-superdrive

  • How to avoid InfoPackage hang when there is no data

    Hi,
    My infoPackage hang which block the process chain when there is no data.  I have set the Timeout time to a small value.  But, it did not work.
    Thanks,
    Frank

    Hi Frank,
    In the data load monitor > Menu Settings > Evaluation of requests (traffic lights) > what option is selected for "If no data is available in the system"...

  • Display 'No Data Found' when there is inv data but still there is xml data

    Hi,
    I am converting an rdf to BI publisher. The issue is when there is no detail (inv) but still there is still xml data , due to which the report is getting printed with the skeleton template and blank details(inv).
    I need to avoid printing the report out if there is not inv detail even though there is xml data. or atleast show 'NO DATA FOUND' msg. and print the report output only when there is inv data.
    Any help is greatly appreciated.
    sample XLM generated when there is inv data:
    - <ARXCBI>
    - <LIST_G_SETUP>
    - <G_SETUP>
    <COMPANY_NAME>GL SOB</COMPANY_NAME>
    <FUNCTIONAL_CURRENCY>USD</FUNCTIONAL_CURRENCY>
    <COA_ID>23456</COA_ID>
    <SET_OF_BOOKS_ID>1</SET_OF_BOOKS_ID>
    <LIST_G_SITES />
    <REPORT_NAME>Billing Invoice</REPORT_NAME>
    <SUB_TITLE />
    </G_SETUP>
    </LIST_G_SETUP>
    <RP_COMPANY_NAME>GL SOB</RP_COMPANY_NAME>
    <RP_REPORT_NAME>Billing Invoices</RP_REPORT_NAME>
    <RP_DATA_FOUND />
    <RP_SUB_TITLE />
    <R_DEFAULT_COUNTRY>US</R_DEFAULT_COUNTRY>
    <R_DEFAULT_COUNTRY_DESC>United States</R_DEFAULT_COUNTRY_DESC>
    <T_REPORT_TOTAL />
    <RP_COUNTER />
    <INV>Invoice</INV>
    <CM>Credit Memo</CM>
    <ADJ>Adjustment</ADJ>
    <XREV>Reverse Cross Site Credit Memo</XREV>
    <XAPP>Apply Cross Site Credit Memo</XAPP>
    </ARXCBI>
    Thanks!

    Hi Srini,
    Now I am running into another problem. When there is no detail data it displays 'No data found' as expected in the report output. But is there any way to restrict the print option (avoid wasting the paper) to just display 'No data found' in the output but not to print the output only in this case.
    I really appreciate any help!

  • Stacked bar chart showing zeros when there is no data

    Hi,
    I am developing a stacked bar chart which plots month vs sales of 3 different products.
    I am showing data points and the total sales on chart.  Every thing looks good except the zeros displayed on the chart if there are no sales for a product for a particular month... how to get rid of these zeros ? i mean how to display the value only if there is some data ?
    Thanks

    Sounds like you have a left outer join from your product table to the sales data. Thus product is listed even when no data present.
    Try changing join to Equal
    Ian

  • HFM: How to restrict user to generate reports when there is a data load process going on?

    Hi Experts,
    I want to get some idea on how we can restrict one user of generating report when another user is loading the data for the same entity, assuming both the users were at different location and there is no communication between them.
    i am dealing same kind of problem in HFM. we have many users created, some users will be loading the data using FDMEE while some users will be generating the reports. the problem arises when one user is loading the data for a particular entity and at the same time another generates the report for the same entity. this shows wrong data in the reports as the data's were not updated.
    please suggest how we can come out of this problem.
    Thanks in advance for your valuable suggestions.

    I thought for a while that I could solve the problem creating a parameter in the main report and casting the first argument of my subreportprocesssing event handler to LocalReport and setting the parameter using the SetParameters method of the LocalReport
    object indicating when there was data to show or not. But this doesn't worked , the parameter value remains the same when I use it in expressions to change the visibility property of my subreports.
    Codelines

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

Maybe you are looking for

  • How to use multiple data controls in a single JSF page

    Hi, I am using Essbase Data Control to in my project to get Essbase Cube data into ADF table/Pivot Table. Suppose if [Item] dimension has this hierarchy [category] -> [Segment] -> [Brand] -> - [Item] I need to display Category in one column and Segme

  • Placing Table in a Header or Footer

    I am working on XSL version 1.1 to generate word doc for some text. I need to place a table in the Header and Footer of this document but I'm not able to achieve this by placing <fo:table> inside <fo:static-content flow-name="xsl-region-after"> of th

  • BT Infinity Package installation a joke. 6 weeks ...

    Anyone reading this deciding if you should go with BT, SKY or Virgin, I strongly recommend after my experience NOT to choose BT. So, I placed my order online, 6 weeks ago, like all good con men, the front end to extract the cash was very efficient.  

  • Remove People from Backgrounds and Replace with Solid Grey Backgrd

    I have several photos of people with poor backgrounds that I want to replace with a solid medium grey background. How do I get or make the background. I assume I use the Quick Selection tool to select the person but I don't have an image with a solid

  • Price in PO to be taken manually not by Inforecord.

    Dear All, We want price in PO should enter manually from today.But as the "Info Update" indicator is set default for previous PO,System always takes price from previous PO(i.e. last purchasing document) even if we remove "Info Update (PO material dat