Conditionally Display Paper Layout Section

I have a report, that uses the Main Section, and the Trailer Section. The Main Section displays summary data, and the trailer section displays detail data.
I need to use both sections because the paper size for each section is different - the summary data only needs to print out landscape letter, but the detail data needs to print out landscape legal.
I also have a format trigger so that the user can choose to display or not display either section of the report. The problem I have, however, is that when a user chooses to not display a section, that page still prints out, it just prints out as a blank sheet.
Is there a way to conditionally display an entire section of the paper layout? (Header, Main or Trailer)

You are correct using the trigger to suppress the section content. To get rid of blank pages, add BLANKPAGES=NO to the report call string.

Similar Messages

  • Problem in displaying Arabic Character in Paper Layout

    Hi
    I am facing problem while displaying arabic characters.
    In Web layout i am able to get it by changing the character set to ISO-8259-6.
    I had changed the NLS parameters in registry as suggested in the help. But still i am unable to get. Please can anyone send the brief steps to fix this.
    Thanks in Advance
    Ranganath

    Ranganath,
    That means subsetting is not happening. If subsetting had been successful, you would have seen in "Font properties", the type of font as Type 3 and name of the font as Fx, where x could be 0,1 etc.
    The things I suspect are: 1) your report definition has some other font associated which is not Arial.
    2) You are not specifying correctly the subset information in uifont.ali.
    Open your report in builder and check again, what font you are using to display the data. Open the report in paper layout and click on the data field and check in the font box, the font name that is displayed.
    In your uifont.ali, make sure that under [PDF:Subset] section, you specify (if you are using Arial font)
    Arial = "arial.ttf".
    If you have any other entry regarding Arial in other sections of uifont.ali, comment those for the time being by putting # before those.
    Let me know the font properties after these steps.

  • Paper Layout displayed instead of Web Layout

    Hello All,
    I've developed a report in Reports 10g and saved it as a jsp file, having both paper & web layout. I've also designed a form in Oracle forms 10g with a list item displaying the list of all reports available. I've written the following piece of code to run the report selected.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(200);
    rep_status VARCHAR2(20);
    rep_location varchar2(100);
    pl_id paramlist;
    d date;
    DF VARCHAR2(10);
    BEGIN
         IF(:rbg=1) then
              df:='pdf';
         else
              df:='htmlcss';
              end if;
    repid := find_report_object(:REPORT_LIST);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,df);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_devserver');
         IF(:report_list NOT IN ('APTC_ANNUAL_RPT')) THEN      
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=YES P_USER_CONNECT=ADMIN/PINNET@PINNET                         P_SERVER_NAME=rep_devserver P_ACTION=http://pin-150:7778/reports/rwservlet?');
         v_rep := RUN_REPORT_OBJECT(repid);
         ELSE
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=NO P_USER_CONNECT=ADMIN/PINNET@PINNET                         P_SERVER_NAME=rep_devserver P_ACTION=http://pin-150:7778/reports/rwservlet?');
              v_rep := RUN_REPORT_OBJECT(repid);
         END IF;
         rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
         LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
         WEB.SHOW_DOCUMENT('http://pin-150:7778/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_devserver','_blank');
    ELSE
    message('Error when running report');
    END IF;
    END;
    Now after this piece of code gets executed I get to see a JSP report in Paper Layout format. But I want the Web Layout to be displayed. Can anyone please tell me what I've to do to get the desired output in Web Layout.
    Reagards,
    Arun.V

    Hello Francois,
    Thanks for the reply. As per my code "df" actually is a variale which stands for the format of the output, which is determined by the users selection(in this case a radio group) in the form. DF stands for either "pdf" or "htmlcss".
    The following is the code I've used to determine the users preference which can be found within my original posting.
    DECLARE
    df varchar2(10);
    BEGIN
    IF(:rbg=1) then
    df:='pdf';
    ELSE
    df:='htmlcss';
    END IF;
    END;
    Kindly point out to me if there are any errors in the way I've written this code.
    Thanks & Regards,
    Arun.V

  • Landscape Paper Layout - Won't Display on the Web

    I am trying to display a report (paper layout only) on the web using desformat=pdf. To test if the report could be viewed via the web, I created a simple version and could view it in my browser w/ no problem; however, after adding some columns and making some formatting changes, including making the report display as landscape, the report will no longer display in my browser. Instead, the browser window just displays a blank white space w/ the little image icon in the top left corner. (The one that's the little box with the red square, black circle and blue triangle in it.)
    Again, this is not a web layout, but the paper layout of the report, and is meant to open up as a pdf. It is also a must that I display this report as landscape rather than portrait.
    What can I do to make this report display correctly in the user's browser?

    Hi Brice,
    I just tested this with a very simple report in landscape (11" x 8.5"). The report appeared correctly in the browser, and I also printed it to confirm it comes out in landscape. I used Reports 10g.
    So I think there may be some other problem with your report. For testing, you can leave the report as is (formatting, data etc), but change the page dimensions to portrait, and see if that comes out properly in your browser.
    You can also test this - send the landscape report to file (destype=file) instead of displaying it on the browser (destype=cache), and see if the file come out fine.
    What is the Report version you are using?
    Navneet.

  • How to separate report layout sections in one report

    All,
    I'm trying to determine how to separate report layout sections in one report using Report Builder 10g. My requirement is to provide a user the ability to display a report in PDF, excel, RTF formats. How can I assign LayoutA to 'PDF' and 'RTF', LayoutB to 'Spreadsheet'?
    I've attempted to utilize the Header and Main sections in the paper layout, which contain unique layouts of the same report, but during generation, both sections are being displayed.
    Thanks
    Edited by: Jdavis on Apr 10, 2009 10:56 PM

    Hi there,
    How are you running the report? If you are selecting different types of output before calling the report then you could pass a parameter that is checked at runtime in the report and suppresses the layouts you do not want using format triggers.
    Mark

  • How to create summary fields in paper layout

    Hi Oracle report exports,
    I have followinf report to wrire:
    1st part to display as follows:
    person1 task1
    person2 task2
    person1 task3
    2nd part(summary part)
    person1 2(tasks)
    person2 1(task)
    I wrote the following sql for part2
    select user, count(*) no_of_tasks from person_table group by user.
    Could you please advise how I can put part2 in paper layout? Which frame(s) to use?
    Thanks in advance!!
    Michael

    user2709830 wrote:
    Hi Oracle report exports,
    I have followinf report to wrire:
    1st part to display as follows:
    person1 task1
    person2 task2
    person1 task3
    2nd part(summary part)
    person1 2(tasks)
    person2 1(task)
    I wrote the following sql for part2
    select user, count(*) no_of_tasks from person_table group by user.hi Michael
    If above is your layout
    make two different sql query and show them in order in layout.
    But i don't like it.
    Hope this helps

  • How to call the JSP(Web layout) instead of paper layout...

    Hi,
    Iam using Reports 10g. I have created a simple employees report. I have added a listbox in the jsp page by adding small Html and javascript code like below.
    <form action="http://www.wwt.com/reports/rwservlet?10000_reports_listing&p_extranet=p_extranet" name="First" method="post">
    <select name="p_extranet" onChange="First.submit()" >
    <rw:foreach id="RGSOURCE" src="G_SOURCE">
    <rw:getValue id="mysource" src="SOURCE"/>
    <option value=""><%= mysource %>
    </rw:foreach>
    </select>
    </form>
    When I run this report in the report builder as Web layout, Listbox is displayed with values inside.
    But when I move it to Apps server and run it through URL,
    listbox is disappeared. I think report is running the Paper layout instead of weblayout ??????????
    Could you please tell me what is the problem and How to force the Weblayout or JSP to run ?
    Thanks.

    Hi,
    You are running a jsp report through rwservlet. In this case paper layout will be displayed. You have to deploy your jsp as web report to get the web layout. Please refer to the doc below, which describes how to deploy the web report.
    http://download-uk.oracle.com/docs/html/B10314_01/pbr_run.htm#1011901
    To run the jsp report, URL may look like
    http://www.wwt.com/reports/<jsp name>?<parameter list>
    Hope this helps
    Vinayak

  • How to display 2 layouts with 2 different Header and Footer in a template.

    Hi,
    I am using XML Publisher 5.5. I have created one template which is having two layouts. I am using <?Start: Body?> and <?end body?> for displaying Headers and footers. Now my problem is, I need to display first layout with it's associated Header and footer and then second layout with other header and footer. But the two layouts should come in single template file. How is it possible?. Is there any work around? Please help me as this is the urgent requirement to my client.
    Thanks.
    Siva.

    No problem. Select Insert -> Break from the menu bar. Then select a "Section Break" - Next page.
    Header 1
    <?start:body?>
    Page 1
    <?end: body?>
    Footer 1
    ==================Section Break (Next Page)=================
    Header 2
    <?start:body?>
    Page 2
    <?end: body?>
    Footer 2
    Worked like a charm.
    Klaus

  • How to refer a field created at the paper layout?

    Hi,
    I created a field for total pages of a report in the paper layout.
    How do I refer to it in the formattrigger since I don't want to show it if there is only 1 page.
    I tried putting & or : in front of the field name but it is not valid since the field is not created in data model.
    Thanks for any help in advanced.

    You can't reference the total number of pages in any way (an often heard complaint on this forum).
    The workaround is to use srw.get_page_num on a format trigger of a field that you put at the end of the report. Then you know you are at the end of the report. If the page number is 1, you know there is only 1 page. Still a bit tricky how to use this in your case, but you may find a solution.
    I knew I posted something about this before. Here it is:
    Re: Print Condition of a margin object
    Edited by: InoL on Apr 7, 2011 3:23 PM

  • Help with Conditional Display and Validation

    Version 4.1.1.00.23
    Hello,
    I'm having a difficult time with a conditional display and validation I'm hoping someone can help with.
    Requirements:
    When the Start Date (Datepicker) and/or End Date (Datepicker) change then display the Change Reason (Select List) and Change Description (Textbox)
    If the page is saved without entering a Change Reason display a validation error message that the Change Reason cannot be empty (NULL)
    What I've tried
    Create a Dynamic Action on the Start Date
    Event: Change
    Selection Type:Item(s)
    Items(s): P51_START_DATE
    Condition: none
    True Action Section:
    Action: Show
    Fire on Page Load: Checked
    Show all page items on the same line: No
    Affected Items Section:
    Selection Type:Item(s)
    Item(s): P51_CHANGE_REASON,P51_CHANGE_DESC
    I've also created a Dynamic Action with similar settings for the P51_END_DATE.
    I created a Validation for the P51_CHANGE_REASON as Function Returning Error Text:
    DECLARE
        v_start_date    work_items.start_date%TYPE;
        v_end_date      work_items.end_date%TYPE;
    BEGIN
        SELECT start_date
              ,end_date
        INTO   v_start_date
              ,v_end_date
        FROM   work_items
        WHERE  work_items_id = :P51_WORK_ITEMS_ID;
        IF ( (v_start_date != TO_DATE(:P51_START_DATE,'DD-MON-YYYY') OR v_end_date != TO_DATE(:P51_END_DATE,'DD-MON-YYYY') ) AND
              :P51_CHANGE_REASON IS NULL ) THEN
            RETURN 'Change Reason must have a value';
        END IF;
    END;
    The Issue
    I tried to create another Dynamic Action to hide the P51_CHANGE_REASON and P51_CHANGE_DESC fields on page load, but when either of the date fields are changed and the validation is fired the P51_CHANGE_REASON and P51_CHANGE_DESC are hidden again.
    There are two buttons to submit the page: 'SAVE' will submit the page and stay on the page and 'SAVE_CHANGES' will submit the page and branch to the previous page (which is a report with EDIT buttons to edit the record).
    I can't get the page load Dynamic Action to NOT fire when the validation is fired.
    I hope this is clear and if not what information can I provide?
    Thanks,
    Joe

    Phil,
    Thank you for looking at this.
    Yes if the Change Reason is NULL when the edit page is displayed then the Change Reason and Change Description fields are hidden. If the Start Date (Datepicker) and/or End Date (Datepicker) change then display the Change Reason (Select List) and Change Description (Textbox). If the page is saved without entering a Change Reason display a validation error message that the Change Reason cannot be empty (NULL).
    The problem I'm having is that if no Change Reason is entered and the page is saved thereby firing the validation the Change Reason and Change Description fields are hidden again (because of the On-Load Dynamic Action to hide them). So now the user can't put in a Change Reason...unless they change one of the date fields again which isn't going to be accepted.
    Is there a way to determine if a validation error was fired and be able to use that on the On-Load Dynamic Action to hide the two fields? Something like...If the validation fired then don't run?
    Please let me know if I'm still confusing you.
    Thanks,
    Joe

  • Master-Detail Form, Conditional Display of a Column Link

    Hey Guys,
    I've got a little question for you:
    I use a Master Report with a Column Link that i would like to hide when my Column in the Report named "NUMBER" is 0.
    I can't get it to work though. Using the "Conditional Display" stuff doesn't seem to work.
    I have looked at some CASE statements but i cant seem to make them fit!
    Any suggestions?
    Thanks alot,
    max

    sorry for the trouble, i am quite new to this.
    Yes, i took my Master Report and added a [column link]. I understand now how the sql has to look like but where do i put this?
    I cant find any space for a sql code, or does it belong in the conditional display section?
    I changed the Column Attributes to standard column, however, this seemed to have no effect.
    Do i have to chance my sql select query for the Report?
    It looks like this at the moment...
    SELECT
    "CONTENT_LOCALES"."CONTENT_LOCALE_ID" "CONTENT_LOCALE_ID",
    "CONTENT_LOCALES"."CONTENT_ID" "CONTENT_ID",
    "CONTENT_LOCALES"."LOCALE_ID" "LOCALE_ID",
    "CONTENT_LOCALES"."NAME" "NAME",
    "ORIGIN_TEXTS"."ORIGIN_NAME" "ORIGIN_NAME",
    "DESIGNS"."DESIGN_ID" "DESIGN_ID",
    "DESIGNS"."DESIGN_NAME" "DESIGN_NAME",
    "CONTENT_LOCALES"."SEQUENCE" "SEQUENCE"
    FROM
    "CONTENT",
    "DESIGNS",
    "CONTENT_LOCALES",
    "ORIGIN_TEXTS"
    WHERE (("ORIGIN_TEXTS"."GID" =:GID and "CONTENT"."CONTENT_ID" =CONTENT_LOCALES.CONTENT_ID and "CONTENT"."DESIGN_ID" =DESIGNS.DESIGN_ID and >"CONTENT_LOCALES"."CONTENT_LOCALE_ID" =ORIGIN_TEXTS.CONTENT_LOCALE_ID))

  • How to show a parameter value in the paper layout

    Hi,
    I have a paper parameter form. I need to show the value of the parameter at the top of my report as part of the title. Any ideas?
    Thanks,

    It should display the parameter value in the field you created in the paper layout.
    Make sure you selected the source of the field.
    From the property inspector of the created field go to the source property and select the parameter name from the pop-up list.
    Regards
    Mostafa Abolaynain

  • Producing a Paper Layout as output instead of Web Layout

    Hello All,
    I've developed a report in Reports 10g and saved it as a jsp file, having both paper & web layout. I've also designed a form in Oracle forms 10g with a list item displaying the list of all reports available. I've written the following piece of code to run the report selected.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(200);
    rep_status VARCHAR2(20);
    rep_location varchar2(100);
    pl_id paramlist;
    d date;
    DF VARCHAR2(10);
    BEGIN
         IF(:rbg=1) then
              df:='pdf';
         else
              df:='htmlcss';
              end if;
    repid := find_report_object(:REPORT_LIST);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,df);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_devserver');
         IF(:report_list NOT IN ('APTC_ANNUAL_RPT')) THEN      
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=YES P_USER_CONNECT=ADMIN/PINNET@PINNET                         P_SERVER_NAME=rep_devserver P_ACTION=http://pin-150:7778/reports/rwservlet?');
         v_rep := RUN_REPORT_OBJECT(repid);
         ELSE
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=NO P_USER_CONNECT=ADMIN/PINNET@PINNET                         P_SERVER_NAME=rep_devserver P_ACTION=http://pin-150:7778/reports/rwservlet?');
              v_rep := RUN_REPORT_OBJECT(repid);
         END IF;
         rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
         LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
         WEB.SHOW_DOCUMENT('http://pin-150:7778/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_devserver','_blank');
    ELSE
    message('Error when running report');
    END IF;
    END;
    Now after this piece of code gets executed I get to see a JSP report in Paper Layout format. But I want the Web Layout to be displayed. Can anyone please tell me what I've to do to get the desired output in Web Layout.
    Reagards,
    Arun.V

    Hello Francois,
    Thanks for the reply. As per my code "df" actually is a variale which stands for the format of the output, which is determined by the users selection(in this case a radio group) in the form. DF stands for either "pdf" or "htmlcss".
    The following is the code I've used to determine the users preference which can be found within my original posting.
    DECLARE
    df varchar2(10);
    BEGIN
    IF(:rbg=1) then
    df:='pdf';
    ELSE
    df:='htmlcss';
    END IF;
    END;
    Kindly point out to me if there are any errors in the way I've written this code.
    Thanks & Regards,
    Arun.V

  • Conditional display: PL/SQL Function Body Returning a Boolean

    Hi,
    can anyone give me an example how to create a PL/SQL Function Body Returning a Boolean in the Conditional Display Section of a Region?
    I have two Items on the Page and I want the region only be displayed when the two Items are not null....
    Thanks,
    tim

    Also, I have seen some "null"-values of Selectlists being stored as '%null%' instead..
    :P1_ITEM1 IS NOT NULL AND UPPER(:P1_ITEM1) != '%NULL%' AND :P1_ITEM2......
    ..might be helpful?
    Cheers,
    Vidar

  • Conditional display of region with PL/SQL function returning SQL query

    Hello,
    ApEx 2.0.
    I use PL/SQL functions that return SQL queries to display the contents of a region.
    How could I conditionally display such region ? If no data is found, the region shouldn't be shown. I tried with "SQL query returns at least one row" but this doesn't seem to work.
    Thanks,
    Matthias

    Hi Matthias,
    Are the regions in question report regions? So your PL/SQL process is returning a SQL query and then populating a report?
    The EXISTS(SQL Query returns at least one row) condition should work, try running the query you are using in the Expression 1 textarea inside SQL*Plus, or SQL developer using the same parameters, and see what gets returned.
    If you are still stuck, can you post the query you are using inside your Expression 1 textarea of the Conditions section and I can take a look at it for you.
    Hope this helps,
    Cj

Maybe you are looking for