Page Break Help

Hi,
I am trying to display 2 vendors on a page and then have a page break. I'm not having much luck with this. I can page break after each, but that won't work for me. Here is a sample of what I have.
- <TEST>
- <LIST_G_MAIN_SELECT>
- <G_MAIN_SELECT>
<VENDOR_NAME>Ms. A</VENDOR_NAME>
</G_MAIN_SELECT>
- <G_MAIN_SELECT>
<VENDOR_NAME>Mr. B</VENDOR_NAME>
</G_MAIN_SELECT>
- <G_MAIN_SELECT>
<VENDOR_NAME>Ms. C</VENDOR_NAME>
</G_MAIN_SELECT>
</LIST_G_MAIN_SELECT>
</TEST>
I'm not very familiar with setting up variables and using count, so any help would be great!
-CC

Hi,
I will explain what Vetsrini's code is doing here:
<?for-each:TEST/LIST_G_MAIN_SELECT/G_MAIN_SELECT?>
This is creating a loop that will repeat for every occurence of G_MAIN_SELECT in the XML document.
<?position()?>
This will display the position of the G_MAIN_SELECT in the XML document. For example the first occurence will display 1 the second occurence will display 2 and so on..
VENDOR_NAME: <?VENDOR_NAME?>
Shows some boiler plate text and the value of the Vendor Name element within the current occurence of G_MAIN_SELECT
<?if:position() mod 2=0?> <?split-by-page-break:?> <?end if?>
This is testing whether or not the modulus 2 of the position() value is equal to 0 or not. If it is then the page break is insert, if not the page break will not be inserted. This is effectively doing an odd or even test on the value for position().
<?end for-each?>
Closes the for-each loop
I hope this helps you to understand the above code slightly better.
Regards,
Cj

Similar Messages

  • Page Break In XML Publisher RTF Templates Are Not Working

    Please refer to the Metalink Doc below:
    Subject:      Page Break In XML Publisher RTF Templates Are Not Working.
    Doc ID:      559111.1      
    Type:      PROBLEM
    Modified Date:      24-MAR-2008      
    Status:      MODERATED
    In this Document
    Symptoms
    Cause
    Solution
    References
    This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
    Applies to:
    Oracle XML Publisher - Version: 5.6.3
    This problem can occur on any platform.
    Symptoms
    Using XML Publisher version 5.6.3 in 11.5.10.
    Find <?split-by-page-break:?> syntax is ignored.
    EXPECTED BEHAVIOR
    Expect page breaks to occur at point set by "split-by-page-break:" code.
    STEPS
    The issue can be reproduced at will with the following steps:
    1. Create a template.
    2. Call split-by-page-break: inside a loop.
    3. Output is not formatted correctly, page break call is ignored,
    Cause
    Unpublished BUG 5011628 SPLIT-BY-PAGE-BREAK NOT WORKING IF ADDED SORT WITHIN DYNAMIC GROUP
    Unpublished BUG 5011628 matches the client issue as it is a call to split-by-page-break inside a loop.
    Fix is in ScalableStringList.java version 115.4.
    This is delivered in <Bug 6165466> XDOFX:CHR(N) FUNCTION FAILING.
    Solution
    To implement the solution, please execute the following steps:
    1. Apply Patch 6165466 when it is released.
    2. Test your report.
    References
    Bug 6165466 - XDOFX:CHR(N) FUNCTION FAILING
    Keywords
    XML~PUBLISHER; LOOP; DYNAMIC~GROUP; PAGE~BREAK;
    Help us improve our service. Please email us your comments for this document. .

    Hi JDev,
    Check this out:
    http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
    Hope this might help.
    Thanks

  • When exporting to epub, only about 1/3 of my chapters are getting the page breaks. Each chapter is in its own doc, and I've tried splitting it apart by doc. and by H1, with no luck. HELP

    All my paragraph styles seem to jive, and no matter what I do, most of my chapters seem to miss their page breaks. I've heard of others having this issue with older versions of Indesign, but I'm on CC2014, and I thought that should be fixed by now. I really don't want to have to learn HTML code and go break open the epub doc to fix it manually, because that doesn't always work across all devices either.  I know others have to of  run into this problem before. What am I doing wrong?

    Make sure the paragraph style applied to the chapter title (if that's the first line of each chapter) is tagged. Open the paragraph style and go to Export Tagging and check Split Document (epub only). Then when you export (assuming you are using reflowable) under General>Split Document check Based on Paragraph Style Export Tags. Try it and let us know if this helps.

  • Help with Page Breaks!

    Hello,
    I am having great difficulty with page breaks.
    I have included a link below to a jpg of a format template I am working on (edited for public release, but it works):
    http://home.swbell.net/grog1/work/pagebreaksample.jpg
    The layout template has many text form fields but I have re-colored them all to grey so that the pagebreak stands out in pink (and default text is the same as the help text for clarity).
    The data format that I am using for this layout template can be found at:
    http://home.swbell.net/grog1/work/testdata.xml
    This data is for sample use only and would (normally) contain many G_ORDERS for multiple G_ORD_TYPES in multiple G_REGIONS.
    My problem is that it does not matter where I place the page break, it simply does not work correctly.
    As you can see from the current placement I WISH the report to break between each and every occurrences of REGION in the group “REGION”. At this placement it does not break at all.
    I ‘can’ get the report to break (incorrectly, but at least it breaks) if I place this exact same syntax into the innermost grouping of data (i.e. the G_ORDER group) but even then the breaking is NOT CONSISTENT at all. In this case I would ‘expect’ it to break before every order…it does not.
    I have also tried the syntax: “ <xsl:if xdofo:ctx="inblock" test="1=1"><xsl:attribute name="break-before">page</xsl:attribute></xsl:if> “ (without the quotes which got from he forum here) as well as the MSWORD pagebreak (which has never worked for me). None of these work correctly.
    Any assistance in or insight into getting my reports to CONSISTENTLY break at the appropriate times would be most appreciated as I have been trying to get this to work for several days now...
    Thank you,
    Scott

    Hello again!
    I have the pagebreak problem working, but I would dearly like some insight as to why/how it is working…
    I have template builder 10.1.3.2.1 for reference and I now have the report breaking at the correct times, i.e. after each region.
    My confusion is that to get it to work I must use the syntax and placement of the pagebreak text field exactly as shown below. No other placement cause the pages to break correctly and the other syntax sample varations I have found on this forum, etc (listed above) do not work at all.
    Please review the link to the (now working format template) jpg and provide feedback/insight.
    http://home.swbell.net/grog1/work/pagebreaksample_working.jpg
    Thanks in advance for feedback,
    Scott

  • Help needed to introduce a page break

    Hi ,
    I have a repeated subform with xml data_instance like this(data.xml) :
              State A
                        Premium Period A
                                  80170
                                  80180
                                  80170
                        Premium Period B
                                  80170
                                  80180
              State B
                        Premium Period A1
                                  80170
                                  80180
                                  80170
                        Premium Period B1
                                  80170
                                  80180
                                  80170
    I have created the subforms structure also and working fine.
    I want whenever the state changes i want to go to the next page .
    I have tried setting all the options like Place and After but the designer geenrates the blank pages either at the top or at the last .
    a. How do i get rid of the extra blank page
        OR
    How do i acheive the page break whenever state changes.
    Please help me asap as i have wasted lot of time int his.
    Many Thanks
    Mohit Gupta

    I believe the new Conditional Break feature in Designer 7.1 can help you solve this problem. It'll let you specify an expression which compares the previous value of the section_name field with the value of the current instance of section_name and, if they're different, insert a page break to the top of the next page.
    Assuming the basic structure inferred by the Data View palette when you drag & drop the options node onto the form, make the page subform Flowed (using the Content property Object palette's Subform tab), make the options subform repeatable (using the Object palette's Binding tab) and then go to the Object palette's Pagination tab on the options subform. There, you'll see a middle section labeled
    Conditional Breaks with an Edit button that'll be enabled. Click on that to set an expression like this (in FormCalc):
    options[-1].section_name ne options.section_name
    where the Break property is set to
    Before and the To property is set to
    Top of Next Page.
    The result will be a form which lists each section on its own page without have a superfluous blank page.
    I've attached a sample form based on your sample data which breaks whenever the state changes.
    Stefan
    Adobe Systems

  • Help with pagination and conditional page breaks

    I have a rather complex form where pages are added based on what the user has entered in a table with repeatable rows.  For most of the pages, conditional page breaks are working fairly well, but I have a group of pages with nested subforms that need page breaks.  The inner subform is breaking as expected, but the parent page break isn't triggering for some reason.
    Is this a bug within Livecycle or is it possible to fix?
    Thanks!

    May be having a look at the form helps..
    If you can send the form and XML data file to [email protected] I can have a look at it..
    Thanks
    Srini

  • Need help understandin section breaks or page breaks

    Hi there, was hoping I can gain a better undersrtanding of how to use section breaks and page breaks.
    I have typed several reports while using apple pages.  I click on the VIEW button on upper left corner and all the pages appear to run continously. I do not want that to continue to happen. How can I make each and every page its own page.  I have done it once years ago and have observed a this fine line below each page under the view option so that I may move or rearragne pages. Can someone please help?
    dee

    Pages 5.1 only lets you delete Sections, you can't drag them into place.
    You can Menu > Insert > Section Break on the bottom of every page or
    Setup > Document > uncheck Document Body which will delete all yout content in teh Document Body
    or Better still use Pages '09 which should still be in your Applications/iWork folder.
    Peter

  • Please Help ... Problems with Page Breaks

    I am rather new to Adobe LifeCyle and am having problems with sections not contining to the next page.
    I have tried to read information on allowing page breaks  and overflow, but I am very confused.
    On my warnings tab I have warnings about page breaks, but do not understand what they are saying or how they should be fixed.
    "Although the object is allowed to break, deselecting the Allow Page Breaks Within Content option of the parent object from breaking between pages."
    Since I can't attach files .. I am not sure how to demonstrate the problem.  If there is work around to sending files, please advise and if someone could help, I could email the file.
    Any help would be greatly appreciated .... I feel like I am going in circles.
    Thanks so much!

    Ah ....send them to [email protected] and I will have a look when I get a chance.
    Paul

  • Help - Page break won't work

    Report in production and my page break isn't working. OM report and should break at every new order. Can anyone review my template?
    I took version where it worked, added some data to report and now it doesn't work.
    Nancy Hoye

    Hi Nancy ,
    <ROOT>
    <DATA>
    <ORDER_NUMMER> </ORDER_NUMMER>
    </DATA>
    <DATA>
    <ORDER_NUMMER> </ORDER_NUMMER>
    </DATA>
    <DATA>
    <ORDER_NUMMER> </ORDER_NUMMER>
    </DATA>
    </ROOT>
    if this was the data , that code would work :)

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • In the new Pages 5.0, what is the page break shortcut key. I cannot find the key as indicated on the drop down menu.

    in the new Pages 5.0, what is the page break shortcut key (it used to be the Fn + enter). I cannot find the (new) key as indicated on the drop down menu. Please help.

    Hi Bruce and fruhulda,
    ok, I found the keyboard viewer, it only shows the traditional symbol 'return'.  something like a sideway u-turn continued with the arrow under.  This is the Canadian or US keyboard. 
    btw thanks for your suggestion.

  • Pages '08 does not import MS Word Page-breaks

    Pages '08 imports MS Word 2004 for Mac documents without the page-breaks.
    I love the Mac interface and really want to stop using MS software. I was hopeful with all the good press about Pages '08. I downloaded the 30-day trial and immediately discovered this glitch.
    I must be able to exchange 300+ page manuscripts with MS Office users. If Pages cannot import the page-breaks in these documents, it's a deal-breaker for me. I'm not going to go through and re-insert 300+ page-breaks everytime I have to edit and return a document.

    I've had the same problem as Jeffrey ... but with Appleworks 6 documents. I can import a small amount of Appleworks pages with hard page breaks (Insert Page Break) but when I try to import the entire 300 pages of my manuscript into Pages '08 the page breaks move up and are not where they should be. Also, many of my large Appleworks text manuscript files (no graphics) will not open in Pages '08. On top of that, the line spacing in Pages is a big headache,. I still am unable to place 11 lines on the first page of each Chapter (as I have done before in Appleworks with no problem). Sometimes it will give me 11, next time it will be 12. Hitting return once often moves two lines of type rather than one. Very frustrating. I have followed instructions and even added styles with my own template. I also used "Exact" spacing of 24 pt with my 12pt type because using double spacing is not even close to what double spacing is in Appleworks using the exact same font (Times New Roman, 12pt w/ 24pt spacing.) Any help will be appreciated (before I go back to Appleworks).

  • Page break in html report

    Hi all,
    I am sending a report to external user e-mail id from SAP. The user is receiving the report in html format.
    The user asks me they need a page break on the report after each customer data. I am wondering is it possible to have a page break in html report? If yes, how it is possible?

    Hi,
    I insist : it is not possible with HTML to insert Page breaks. BUT, Tammie is right! You can use CSS (Cascade Style Sheet) to insert page breaks thanks to few lines of code in your HTML page.
    Follow this link to have a look at a very simple piece of code to illustrate this :
    http://www.codeave.com/css/code.asp?u_log=4016
    Here it the code if you don't have access to this URL :
    <html>
    <head>
    <title>CodeAve.com/CSS - Page Break</title>
    <body bgcolor="#FFFFFF">
    <center>
    Page 1
    <br style="page-break-before:always;">
    Page 2
    <br style="page-break-after:always;">
    Page 3
    <p>
    Use print preview on your browser to see how<br>
    this page would print out to three pages
    </center>
    </body>
    </html>
    Hope it helps.
    Don't forget to close the post if solved (so that search in the forum is easier), and reward points (so that SDN members are happy !) 

  • Page break in between group and subreport

    I have created a report with one group based on the customer order number.   We want the user to be able to run a range of customers orders. For example, print 10 customer orders at one time.  The group pulls the required information for each
    customer order.   After each customer order,  I have a sub-report that is a pallet pick sheet.   We want a page break after each group, so the sub-report prints on a separate page. It goes like this
    customer order 137158 detail - 1st iteration of the group.
    page break
    sub-report pallet pick sheet for 137158 - starts on a new page.
    page break
    customer order 137159 detail starts on a new page. - 2nd iteration of the group.
    page break
    sub-report pallet pick sheet 137159 - starts a new page.  
    I would really appreciate if someone can help solve this issue.  I've spent over half a day reading forums and trying different solutions, and every attempt at adding page breaks seems to be ignored.   I'm working with SSRS 2012. 
    Jeff

    I had the company logo and a title outside of the data tablix.   When I moved these into the list table, the issue with the additional white space was resolved.   At this point, we have resolved the page break and the extra white space
    on the report.   I have one more issue.  
    On the main report, I have two parameters for starting customer order number and ending customer order number.   I created the same parameters on the sub-report.  When I run the report, I enter a range of 139818 to 139824.   The
    main report which is the customer order information prints correctly.   However, instead of getting just the sub-report for the first order which is 139818,  I get a sub report for every order in the range.   Then, the main report
    prints order 139819, and then repeats the sub-report loop for every order.  So, each time the main report prints, I get 7 sub-reports.   How do I link the main report to the sub-report so there is a one to one match so only
    one sub-report is generated per customer order?    
    I really appreciate the help,
    Jeff

  • Page break/empty page issue

    Hi,
    I have big report with 4 data sections.
    This is the structure of the report.
    Main Frame
    --> Repeating Frame
    -->Frame1 - PageBreak After - Yes
    Some Fields
    -->Frame2 - PageBreak After - Yes
    Some Fields
    --> Repeating Frame
    -->Frame3 - PageBreak After - Yes
    Some Fields
    --> Repeating Frame
    -->Frame4 - PageBreak After - Yes
    --> Repeating Frame
    The size of the report with all the fields and frames in designer is coming up to 30 inches.
    When I run the report leaving the Main Section Height property setting to 11 inches,
    I get the following error
         REP-1212: Object 'M_6' is not fully enclosed by its enclosing object 'Body'
    When I changed the Main Section Height property setting to 30 inches then the report runs fine,
    but each page break is taking 30 inches even though there the data is not 30 inches.
    Meaning even though section 1 (frame 1) has only 10 lines section 2 is displayed after 30 inches of section 1.
    Can anyone help me fix this problem?
    I hope I explained the problem clearly.
    Thanks
    Sathish
    Edited by: sathish009 on Aug 6, 2009 11:17 AM
    Edited by: sathish009 on Aug 6, 2009 11:32 AM

    In my report there are four major sections and each section should start on a new page.
    After I add all the fields to all the sections the report height is 30 inches.
    For it to run I had to set the page height property to 30 (Main Section --> Height). I think I am correct here.
    So, when I run the report each section is starting in a new page but each section is taking 30 inches.
    That is the problem.

Maybe you are looking for

  • I want to writte C# code for 503 Service Unavailable error to web application page immediate close connection any page loaded

    Here is a ticket regarding our current client web application (  Image data add, edit , delete in folder with form data in MSSQL Database) that using code c#, web form, ajax, VS2008, MSSQL Server2008 , it appears that there is an error where the HTTP

  • It won't let me open a new tab

    I try pressing the + icon at the right and Firefox will not open a new tab. I also pressed under File-Open New Tab (Control T) and that won't do it either. Help!!

  • Email with PDF As attachment

    Hello SDN,                I am working on a process, which has visual composer UI as iview, The input from the Visual composer Screen should go as a pdf with attachment to the receipient (Email should be send dynamically from the "mail id " field of

  • Burn Files in DVD

    Hello guys, Which APP should I use to burn files in DVD in Lion native ? Thanks

  • HT204476 Photos now displays all Duplicates!

    Hi, OSX: Yosemite 10.10.3 Subject: Photos I upgraded and the new Photos went to work, didn't plan on this but Apple force fed it on my Mac. So everything imported ok, but now I see duplicates of every image. I also see two Libraries now in the Pictur