Page Breaks for Grouping

Hi,
I have created a sql report and used page breaks for displaying department wise employee info with salary sum at the end of column. Everything is going well showing employees in departments and sum salary except one problem which is on some pages at the end where space left it shows heading for next department and on next page under next department's heading it starts with previous department's last column ie sum of salary and then shows next department's data.
Database 11G
APex Version 3.0.1
Thanks
Sajjad
Edited by: Sajjad on Feb 24, 2012 1:47 AM

Sajjad wrote:
Hi,
I have created a sql report and used page breaks for displaying department wise employee info with salary sum at the end of column. Everything is going well showing employees in departments and sum salary except one problem which is on some pages at the end where space left it shows heading for next department and on next page under next department's heading it starts with previous department's last column ie sum of salary and then shows next department's data.
Database 11G
APex Version 3.0.1Suggest you try reproducing this on apex.oracle.com so we can see the exact nature of the problem.

Similar Messages

  • Page break for a category group of a chart - SSRS 2008 R2

    Hi,
    I need to add a page break for one of two category groups of a my chart. Is it possible, please?
    I need to create a chart for this category group to mantain readable the report.
    Thanks

    Hi There
    You can create two graphs and put them inside two separate rectangles and add page break
     after first rectangle and add a filter to your chart for first category group for first chart and second category group for second chart.
    This is best you can do
    If you have any question please let me know.
    Many Thanks
    Syed Qazafi Anjum
    Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.

  • Page break for a group and sub group based on page length

    Hi
    I have a requirement where in I need to develop a report which has the following requirement. I am attaching the sample xml and rtf files for reference:
    1) There are 3 groups in the Data Model. G1, G2 and G3. G1 contains G2 and G2 contains G3. I need to display that data in that order in the rtf template. Pretty straight forward.
    2) The tricky part, however, is that the report needs to have a page break on the following conditions:
        a) When the value of col1 changes which is in G1
        b) On col3 (in G2), but only when there is not enough space on the page to accommodate the values present in G3, ie col5 and col6 alongwith the values in G2. This means when the value of col3, which is present in G2, changes and if there is not enough space to accommodate G2 and G3 on the same page, it should break and start on a new page. The table which should come together is marked in grey color in the RTF template.
    What I have done till now to achieve this?
    I have created a parent table with two rows. In the second row I have made sure that the row doesn't break across pages. This is true for all the subsequent tables in the report. Now, in that second row, I have col1 in a nested table within a repeating group G1. Inside G1 there is a nested table for G2 and within G2 I have another table for the group G3. The row is not breaking across pages for all the tables that have been created.
    I have tried all the permutations and combinations of nested tables, keeping G1, G2 and G3 in the same table but different rows, having G1 in one table and nesting G2 and G3 in another, keeping G2 and G3 in a separate table altogether, Keeping G1, G2 and G3 all of them in the separate table. All of them are apparently not working.
    Is there anyway where we can either get hold of the current position of the cursor and the total number of rows on that page? Or any other solution that is possible? Or if I can have to make changes in the data model?
    Thanks a lot in advance
    Sid

    Hello Sid,
    I have checked your report and XML Sample and you haven't linked the fields from XML Sample to your .rtf report.
    You can use <?for-each?> syntax for your groups to print the content.
    I recommend you to review our "Creating RTF templates" manual:
    http://docs.oracle.com/cd/E28280_01/bi.1111/e22254/create_rtf_tmpl.htm#BIPRD2354
    Regards,
    Liviu

  • Page break for Smartform with multiple main window on pages

    Hi Experts,
    I have a requirement for printing 3 pages. The difference among the 3 pages is the main window part.
    The main window contains not only internal table, also complicated texts like payment instructions etc.
    The requirement is in each page, the data in internal table should be changed, also payment instruction should be changed accordingly.
    e.g:
    Main Window of Page 1
    Part 1 for Internal table
    VAT on ITEM ------- 4O-------60,00------0.00%-------EUR
    Part 2 for Payment Instructions
    Texts for Page 1
    Main Window of Page 2
    Part 1 for Internal table
    VAT on ITEM ------- 5O-------60,00------0.00%-------EUR
    Part 2 for Payment Instructions
    Texts for Page 2
    Main Window of Page 3
    Part 1 for Internal table
    VAT on ITEM ------- 6O-------60,00------0.00%-------EUR
    Part 2 for Payment Instructions
    Texts for Page 3
    At first, I was using only one page 'Page1' with a variable page_no = 1 as default value, and use program line page_no = page_no + 1 as counter. when page_no = 2, use command for force page break to 'Page1', then under the command, change the internal table and payment instruction texts. when page_no = 3, ...
    But I encountered an error saying:
    Runtime Errors         GEN_BRANCHOFFSET_LIMIT_REACHED
    Short text
         Jump distance is too large and cannot be generated.
    So I created 3 pages, with different main window M_window1, M_window2, M_window3 for each page. In page1, after printing the M_window1, page_no = 2, use command to go to page2, but page2 is never printed. I think this is because only one main window can exist in a smartform? but why smartform allows creating individual main window for different pages? what's the use of such main window?
    By the way, what's the use of command for force page break? only work for one main window in a smartform?
    Getting back to my requirement, I think I should still use one page and command for page break. I am trying to solve this.
    Thanks.
    Li Jun Da.

    Now I am using 3 pages: Page 1, Page 2, Page 3.
    Page 2, Page 3 are copies of Page 1 with main window renamed as second window: mw 2, mw 3.
    I also created 2 command nodes in main window of page 1: cmd 2, cmd 3.
    cmd 2 is for page break to Page 2, cmd 3 is for page break to Page 3.
    The second window mw 2, mw 3 in Page 2, Page 3 can be displayed.
    Even though, I still can't understand how main window of pages (not 1st page) can work.

  • How to remove the page break for CSV report

    Hi,
    I'm working on a rdf report and have an issue with page break.
    As usual there exits a page break in the report output. how do I remove it.
    work around: set Page break before/after : NO
    worked on margin re-size, how ever could not resolve the issue.
    Can any one help me on this.
    Thanks in advance.
    Thanks,
    Santhosh

    There are two ways to do this:
    1) If you want to remove and individual dimension from a presentation, you can hide the dimension. This can be performed directly from within QueryBuilder. Within the first section of Query Builder that shows the selected measures selected and associated dimensions, simply remove the required dimensions from the right dialog panel.
    2) To hide all page items within a presentation, simply add the following the property, pagingControlVisible="False", to the presentation tag in your JSP. For example:
    <orabi:Presentation location="Local Computer Sales/Products/KPI Sales Prior Period and Prior Year" id="BIProductKPIs_pres2" pagingControlVisible="False"/>
    Hope this helps
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • Check box for activating Page break for each subform in Binding is inactive

    Hi,
    I am designing a PO layout copying MEDRUCK_PO to a custom form.
    I am facing a problem here, as the checkbox for "REPEAT SUBFORM FOR EACH DATA ITEM" in Binding Tab is inactive(display only mode). Also in Subform tab, checkbox for "ALLOW PAGE BREAKS WITHIN CONTENT" is in inactive mode.
    I can see the same checkboxes are active in the standard Adobe form on my system.
    Can you please help me understanding the issue with it?
    Thanks,
    Divya

    Dear Friends,
    I have got the solution from my technical lead for the below issue, I like to share this resolution with you all.
    Best Regards,
    Ravishekar.Thallapally
    *&      Form  after_line_output
          After line output event is handled via this form
          L_V_LINE : Capturing line value for page break.
    FORM sub_after_line_output1 USING l_v_line TYPE slis_lineinfo."#EC CALLED
       DATA: l_v_int  TYPE int1.
       IF l_v_line-sumindex IS NOT INITIAL .
         l_v_int = l_v_line-sumindex MOD 2 .
         IF l_v_line-subtot = 'X' AND l_v_int = 0.
         Write:/ sy-uline.
            NEW-PAGE.
           CLEAR:l_v_int.
         ENDIF.
       ENDIF.
    ENDFORM.                    " after_line_output

  • Page-Breaks for Expanding Subforms

    Hello,
    I've got a new Training Rquest Form that I'm designing. I'm having a bit of trouble though as I was hoping that I would be able to get the expanding parts of my form to go over to the next page. I've created the form to be dynamic so that you can click a button which uses the instance manager to create another subform. So, you would have something like : "Add Teacher" which adds a new line in which you can input the information about the teacher.
    I've also got it set up so that by pressing a button, an entirely new section will appear to enter more information. The problem comes when I try and create another of these and it goes off of the page. It SHOULD be going to the next page but I can't figure out why it isn't. I've checked all of the options and as far as I can see, everything allows page breaks, the subforms seem to be working and really at this point I just need someone else to take a look at it.
    I could make the form so that it makes a new page visible that I've already made but I would much rather do this the correct way rather than the lazy way of just copy-pasting.
    If anyone is interested in helping me out, let me know and I'll email the form to you since I guess you can't add files here and the section I need looking at is several hundred lines of XML so that's no good either. (using LC version 8.2 by the way)
    On an unrelated note, I've noticed that I'm getting repeated lines in my forms in the XML. This issue has actually caused some of my forms to be so bloated that I can no longer open the XML tab because LC crashes. I realize that this is a problem with version 8.2 that they've fixed for 9 but I don't have version 9 and I'm not about to buy it just for this problem. So if anyone knows what exactly causes this copying of the XML lines, please let me know so I can try to avoid that.
    The lines that I see copied most often look like this:
    <?templateDesigner StyleID aped3?>
    They're always template files. I think it might be somehow related to copy-pasting from my testing? Anyway, any help would be appreciated on either problem. Thanks everyone!

    Yes that worked! That was very helpful.
    As for the other issue, I was hoping more for an explaination of why it happens so that I can avoid it in the future. It's not really ideal for my co-workers to have to send their forms to Adobe all of the time and it's wasting your time.
    If I can stop the problem before it happens, that would be better and we'll be able to just avoid the problem for the most part.
    I'd also like to ask about a script that I've been trying to get work (I know I've got a lot of questions but I figure since I'm here anyway...) I'm basically trying to keep track of the number of Sessions, Dates, Intructors, etc. that the user has on the document (by them clicking the expand buttons). I've been trying to do this by using a hidden text field and changing the value. This works with things that have specific responses because I'll know what number it is, I can just say something like Textfield1 = 1
    I can't seem to add onto it though. I'm not sure what the problem is, here's the script (in Javascript):
    HiddenValueInst.rawValue = HiddenValueInst.rawValue +1;
    This ends up simply adding a "1" to whatever is in my hidden Value field. Is there a different syntax that I can use for this? Should it maybe be a text-only field? I haven't been able to figure out how to access the instance number from the Instance Manager but if you know how to do that, it would be helpful as well.
    Thanks for the help so far.
    Edit- Nevermind, it looks like switching it to a numeric field fixed the problem. I don't know why I didn't think of that before.

  • Page Breaks for Customer Open Balance Letter when printing

    Hi All,
    We are running 'Customer Open Balance Letter' report and printing the output(View Output). Which is printed irrespective of page breaks.
    I mean print is like in a single page two letters got printed, which in not expected.
    Are we missing any thing in print setup or the way of printing.
    Please let me know the possibilites of printing a letter per page or different letters printed in different pages without customization of that report.
    thanks in advance.
    Edited by: 834095 on Jun 1, 2011 2:34 AM
    Edited by: 834095 on Jun 1, 2011 2:34 AM

    What is your application release?
    What is the type of the report (text, postscript)?
    Is the issue with this specific report only? Can you reproduce the issue if you print to another printer?
    What if you download the output file to your desktop and print it, can you reproduce the issue then or it is when you print directly from the application only?
    Please post the details of the printer setup/style/driver.
    Thanks,
    Hussein

  • How to set page break for Narrative view???

    Hi All,
    I have created a report in Narrative view using HTML code. I am stuck how to set page break based on a column in Narrative view. If anybody is aware of the issue pls let me know how to overcome this situation. Or if this can be done using HTML code itself pls let me know how to do it.
    Thanks & Regards
    Thenmozhi

    Hi Honey,
    I am not sure on ur requirement but you can achieve page break with a column using pivot view by dragging that column into section area and editing section properties to Insert Page break option.

  • How to trigger a page break for a template for a given condition...

    Hello Experts,
    In my MAIN window in smartforms, I have defined a template that has 10 line items. Now, what I want
    is that if my line items exceeds 10 line items, it will trigger again the same page. Below is the hierarchy
    of MAIN window:
    -MAIN WINDOW
              -TEMPLATE(HAS 10 ROWS/LINES)
                   -LOOP COMMAND
                        -PROGRAM LINE(This has a counter that is being incremented for every loop)
                        -LINE1(HOLDS 10 TEXT) - only prints if counter = 1
                        -LINE2(HOLDS 10 TEXT) - only prints if counter = 2
                        -LINE3(HOLDS 10 TEXT) - only prints if counter = 3
                        -LINE4(HOLDS 10 TEXT) - only prints if counter = 4
                        -LINE5(HOLDS 10 TEXT) - only prints if counter = 5
                        -LINE6(HOLDS 10 TEXT) - only prints if counter = 6
                        -LINE7(HOLDS 10 TEXT) - only prints if counter = 7
                        -LINE8(HOLDS 10 TEXT) - only prints if counter = 8
                        -LINE9(HOLDS 10 TEXT) - only prints if counter = 9
                        -LINE10(HOLDS 10 TEXT) - only prints if counter = 10
    What I want to achieve is that if current loop exceeds 11, then call again MAIN window to serve
    the remaining line items. I cannot use a TABLE here since there are frames/boxes that needs to be considered.
    I hope you cna help me guys. Thank you and take care!

    Hi Viraylab,
    In the main window
    Declare the variable name in the global definitions..
    After the loop.
    Create the command node
    General attribute : go to new page i.e page 1.
    Conditions : s.no = 6 .
    Create the text node for the line items to be displayed.
    Create the program lines :
    serial = serial + 1.
    if serial = 6.
    serial = 1.
    next_page = next_page + 1.
    endif.               " if serial = 6.
    Regards,
    Sravanthi

  • How can i use page break for every 5 records in sap scripts

    on every 5 lines of records i have go for a new page so what is procedure to do this .if possible send me with coding .

    Hi John..
    this is the way..
    IN THE PRINT PROGRAM...
    DATA : V_MOD TYPE I.
    loop at Itab.
       V_MOD  = SY-TABIX / 5.
       IF V_MOD  = 0.
           CALL FUNCTION 'CONTROL_FORM'
           EXPORTING'
              COMMAND = 'NEW-PAGE' .
      ENDIF.
             CALL FUNCTION 'WRITE_FORM'
    ENDLOOP.
    <b>reward if Helpful.</b>

  • Issue With Page Break When Sorting is also applied on group

    Hi
    I am facing an issue with Page break only when I have sorting applied on the grouping that I have in the template.
    The following is the sample XML
    <ROWSET>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Accounts</ORGANIZATION>
    <FULL_NAME>test1,</FULL_NAME>
    <ELEMENT_NAME>TEST BONUS</ELEMENT_NAME>
    <CLASSIFICATION>Supplemental Earnings</CLASSIFICATION>
    <RUN_VALUE>250</RUN_VALUE>
    <MONTH_VALUE>500</MONTH_VALUE>
    <QUARTER_VALUE>500</QUARTER_VALUE>
    <YEAR_VALUE>500</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test2</FULL_NAME>
    <ELEMENT_NAME>VOLUNTARY AD AND D</ELEMENT_NAME>
    <CLASSIFICATION>Voluntary Deductions</CLASSIFICATION>
    <RUN_VALUE>5.19</RUN_VALUE>
    <MONTH_VALUE>10.38</MONTH_VALUE>
    <QUARTER_VALUE>10.38</QUARTER_VALUE>
    <YEAR_VALUE>10.38</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test3</FULL_NAME>
    <ELEMENT_NAME>HMO MEDICAL</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>19.67</RUN_VALUE>
    <MONTH_VALUE>39.34</MONTH_VALUE>
    <QUARTER_VALUE>39.34</QUARTER_VALUE>
    <YEAR_VALUE>39.34</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test4</FULL_NAME>
    <ELEMENT_NAME>PENSION NR DC</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>0</RUN_VALUE>
    <MONTH_VALUE>360</MONTH_VALUE>
    <QUARTER_VALUE>360</QUARTER_VALUE>
    <YEAR_VALUE>360</YEAR_VALUE>
    </ROW>
    </ROWSET>
    In the template I group the data based on CLASSIFICATION and then sort on the same column CLASSIFICATION. I have a page-break applied for every group.
    When I generate the PDF, I am not getting the page-breaks for every group. Instead some of them are displayed in the same page.
    But when I remove the sorting that I had in the template on the column CLASSIFICATION, I am getting the output in the desired way but not in a sorted order.
    kumar

    Hi All,
    I am using MS-WORD 2007 and BI Publisher desktop 10.1.3.3.3.
    When I use split-by-page-break, splitting is performed for every line .. but not for group of lines.
    Can anybody throw some light on this?
    FYI...
    I am using this code:
    ?if: position() mod 6= 0?
    ?split-by-page-break:?
    ?end if?
    (Of course with in tags)
    in G_LINES loop.
    Can anybody help me out :-(
    --Saritha                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to put a solid bottom border for table at page break - XML Publisher

    Hi There,
    In XML Publisher Invoice report template, I have table with hidden lines. It repeat for each invoice item.
    However I need to close the table with a solid line at the page break, when the table is extended to multiple pages.
    How can we know if its a page break. I think we can use an if condition if we know the tag for page break( for example like this <?if:@page-break="true"?> ).
    Thanks in Advance.
    Vishnu.

    You can declare two variables, to hold the previous and current LOCATION values and break the page when it differs.
    Or just before your end-for-each, have this code.
    <?if:position()!=1 and position()!=last() and LOCATION!=following::LOCATION[1]?><xsl:attribute name="break-before">page</xsl:attribute><?end if?>
    Ensure that its placed in a form field.
    This will have a page break when LOCATION changes.

  • Pivot Table, "Insert Page Break After Each Item" Setting Only Works for the First Item Change

    I have a flattened pivot table generated from Powerpivot and I would like to insert a page break for each change in the row item.
    When I use the pivot table Field Settings>Insert Page Break After Each Item, Excel inserts the first page break then returns to normal pagination for the rest of the output.
    Is there another setting required to maintain the page breaks after the item change?
    Thanks.

    We are experiencing the same problem. Did you ever find a solution?

  • How to code subtotal of itemlines for page-break in SmartForms in 4.6C?

    Hi,
    There's no functionality in SmartForm 4.6C in order to make a subtotal at a page-break.
    Can you please tell me how to code in the SmartForm to catch the page-break and put the subtotal?
    Please help me its very urgent! Points assured!!
    Tarick.

    Hi,
    in the events tab of table u can find the event at page break for both header and footer.
    i think u can  try with this.
    reward points if useful.
    Regards,
    Pavani.

Maybe you are looking for