How to put a page break when a value changes

Hi there, I am very new to BI Publisher. I realize this is a really SIMPLE question, but I can't seem to find a CLEAR answer.
I have a set of data that I have a repeating group for in my RTF template and it works great. But I want to have a page break each time one of the values changes and I cannot figure out how.
here is the xml
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Generated by Oracle Reports version 6.0.8.28.0 -->
<PIR05>
<LIST_G_ITEM_NO>
<G_ITEM_NO>
<PAGE_NO>0</PAGE_NO>
<ITEM_NO>4242301</ITEM_NO>
<ITEM_DESC1>13MM Aries Cell Assembly</ITEM_DESC1>
<LOT_NO>123</LOT_NO>
<LOT_DESC>4242301</LOT_DESC>
<SUBLOT_NO />
<LOCATION>2IRE</LOCATION>
<GRADE_CODE>NONE</GRADE_CODE>
<ITEM_UM>Each</ITEM_UM>
<ITEM_UM2 />
<LINE_NO>614</LINE_NO>
<COUNT_NO>614</COUNT_NO>
<P_ITEMUM2LABEL />
<P_ITEMUM2DASH />
<F_ITEMUM2>1</F_ITEMUM2>
<P_CSITEMUM2_LABEL />
<P_CSITEMUM2_DASH />
</G_ITEM_NO>
- <G_ITEM_NO>
<PAGE_NO>0</PAGE_NO>
<ITEM_NO>4242301</ITEM_NO>
<ITEM_DESC1>13MM Aries Cell Assembly</ITEM_DESC1>
<LOT_NO>1232</LOT_NO>
<LOT_DESC>4242301</LOT_DESC>
<SUBLOT_NO />
<LOCATION>2IRE</LOCATION>
<GRADE_CODE>NONE</GRADE_CODE>
<ITEM_UM>Each</ITEM_UM>
<ITEM_UM2 />
<LINE_NO>615</LINE_NO>
<COUNT_NO>615</COUNT_NO>
<P_ITEMUM2LABEL />
<P_ITEMUM2DASH />
<F_ITEMUM2>1</F_ITEMUM2>
<P_CSITEMUM2_LABEL />
<P_CSITEMUM2_DASH />
</G_ITEM_NO>
<G_ITEM_NO>
<PAGE_NO>0</PAGE_NO>
<ITEM_NO>4242301</ITEM_NO>
<ITEM_DESC1>13MM Aries Cell Assembly</ITEM_DESC1>
<LOT_NO>562354</LOT_NO>
<LOT_DESC>4242301</LOT_DESC>
<SUBLOT_NO />
<LOCATION>WOR RECV</LOCATION>
<GRADE_CODE>NONE</GRADE_CODE>
<ITEM_UM>Each</ITEM_UM>
<ITEM_UM2 />
<LINE_NO>603</LINE_NO>
<COUNT_NO>603</COUNT_NO>
<P_ITEMUM2LABEL />
<P_ITEMUM2DASH />
<F_ITEMUM2>1</F_ITEMUM2>
<P_CSITEMUM2_LABEL />
<P_CSITEMUM2_DASH />
</G_ITEM_NO>
</LIST_G_ITEM_NO>
<WHSE_DESC>OPM INVENTORY ORG</WHSE_DESC>
<CS_NODATA>617</CS_NODATA>
<CYCLE_NO>000000014</CYCLE_NO>
</PIR05>
I want the g_item_no (repeating group) to have a page break each time LOCATION changes.

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.

Similar Messages

  • How to create a page break in PDF output

    Hi there
    Does anyone know how to create a page break in the PDF output when using the EXPORT TO PDF command?
    I can create a page break using the page-break-after/before HTML stylesheet command, but this is not "interpreted" when the PDF is generated, and I am required to print each table in my web template on a new page.
    Please ... been searching for ages for a solution to this and can't find anything.
    Cheers,
    Andrew

    Try posting in the iWorks forum.
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • How to make a page break in numbers

    The only way I found to make a new page in Numbers was to make new rows down to where the page would break, but it's only letting me add a few new rows to the new page.  I'd like to know how to make a page break without just adding rows.

    Hi Yellowbox,
    Still I'm not convinced, it gives you indeed some advantages but this page break is a great fault.
    All the company is working on Apple, we try even to keep Microsoft away but what when you make a quote of several pages and have to make your lay out at the end, it is a pain in your xxx to make it well.
    We cannot make different tables for each page nor I want to make it in Pages with a Numbers table.
    Secondly, what do you do when you get a Excell offer that you want to bring to Numbers.
    It opens well but again, you need to make all the page lay out afterwards!
    Thanks for yoru reply.
    It won't change my mind about Apple and Microsoft but for timing earning I won't changes all Excel offers to Numbers anymore. Even if I do not want, it would take me less time to work it out in Excel.
    Our own offers will remain in Numbers ...
    It is a pity but time is so important nowadays!
    Nice week-end.

  • How to force print  page breaks (line feeds) in printed documents

    setup:
    Illustrator CS4
    Windows 7
    I've created a longish document of various pieces of text in 2 diffeent fonts.  No graphics.
    Can I insert linefeeds into the document where I want page breaks when it is printed? If so, what is the technique.
    I come from linux/unix background where one can insert a Ctrl+L (line feed) to cause the printer to start a new page
    at that point.
    I got many hits on a search of this forum on `line feed' but those I browsed didn't really get to the question I'm asking.
    Its a little confusing too because it appears from some of the hits that a line feed is different on windows and even does
    something different.
    Or if that isn't the right approach, how can I make the long document print out in some sensible way?
    I'm using a common inkjet printer (epson R800)

    Can I insert linefeeds into the documentwhere I want page breaks when it is printed? If so, what is the technique.
    This is why I mentioned art boards. A new line or line feed is created when you hit the enter or return key. (I mention both keys as i do not know whether you have a mac or PC though I am leaning to pc since you mention linux/unix.
    You should find the folowing link will tell you everything you need to know about artboards.
    http://help.adobe.com/en_US/Illustrator/14.0/WS0939CFEE-49EF-4c6f-B337-8897EC89DF89.html

  • How can you insert "Page Break" in a pdf file so you will specify the pages

    How can you insert "Page Break" in a pdf file so you will specify the pages

    How / from what was the PDF originally created?  It would be easiest to insert page breaks into the original document, then recreate the PDF.

  • How to insert a Page Break Programatically ?

    Hello,
    How to insert a Page Break Programatically ? Please Help..
    Regards,
    Aanta
    Message was edited by:
    user526601

    Hi Praveen,
    Thanks for the reply...
    I think <?split-by-page-break?> syntax is used in a loop. In my case i need to check the condition.. if its true i need to insert Page break.
    I have requirement Like as follows
    - In the Invoice Print Report I need to display “Invoice Appendix” On the Last Page of an Invoice.
    - If I am running for multiple Invoices then Invoice Appendix should print on last page of each Invoice.
    As I'm using XMLP 5.6.1, i'm unable to use <?start@last-page:body?> syntax. So i'm trying to achive this as i'm explaing below.
    Invoice Header
    Invoice Lines
    end Of Lines
    If Invoice_Appendix_flag = 'Yes'
    ---------------<Page Break>------------------
    New Page(Or Last Page)
    Start Of Invoice Appendix
    End Of Invoice Appendix
    End Of Header

  • How to achieve dynamic page break in Smart form

    Hi
              1.How to achieve dynamic page breaks in Smart forms.
               2.What are the various table types in Smart forms.
    Regards

    <i>Dynamic page break : </i>
    create a node of type COMMAND and in its attributes check "Go to new page".
    <i>There are Tables and Templates in smart forms :</i>
    Use node type <i>Template</i> to display a table whose layout and size (number of lines and columns) is determined before the runtime of the print program else use <i>Table</i>.
    Take a look at <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf">SAP Smart Forms (BC-SRV-SCR)</a>
    Regards

  • I have read the manual, but as I can see there is nowhere where it tells me how to put my Pages document in iCloud storage, could someone tell me?iDocbackup

    I have read the manual, but as I can see there is nowhere where it tells me how to put my Pages document in iCloud storage, could someone tell me?

    Here is some information on how to get a document from your iDevice to iCloud (which means you need to have the iOS version of Pages installed on your iPad or iPhone:
    http://www.apple.com/support/icloud/documents/
    And here is a slew of other help articles:
    http://support.apple.com/kb/index?page=search&src=support_site.psp.more&locale=e n_US&q=Documents%20in%20the%20Cloud
    And, icloud is not really "storage" - it is meant to "push" a document you create on one iDevice to another.
    FWIW, I assume you are on Lion? Please change your profile - it still shows 10.5.8...

  • Could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

    could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

    could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

  • How is the resolution variable or when would we change the resolution of an image and why?

    How is the resolution variable or when would we change the resolution of an image
    and why?

    It all depends on the output:
    * for viewing on screen 90 -120 ppi
    * for printing on a laser printer 180  -300 ppi
    * for printing on a desktop printer 240 - 300 ppi
    Some people claim 360 ppi is optimum but I don't see any difference compaired to 300 ppi at least not with the naked eye...

  • How to deal with the situation when the database change into ms-sqlserver ?

    Hi,dear all,
    How to deal with the situation when the database change into ms-sqlserver or other database?
    Now, i want to build a j2ee project with ORACLE ADF bc,but this project may be used in several diffrent databases for example oracle db,ms db,mysql and so on.however,if i have developer this project in jdeveloper and this project connection was config as a oracle database,and then,can this project be reused for other databases espasially including the model codes? if yes,how should i do?
    all who know how to resolve this,tell me pls,thanks.
    bruce Li,
    China
    Message was edited by:
    user526724

    Hi Paulbin,
    Do you want to supply a function-pointer to a DLL so it can call[back] your VI?  Here's how it can be done with .NET, though, that solution requires a C compiler.   A single "VI_to_function-reference" utility could handle all cases where the callback passes no parameters.  Maybe someday somebody will share that dll.
    Did you know that LabVIEW can use Events for some COM-signals change?  See pic.  (Note: DTR is not listed - - )
    Another question is another function's prototype is WORD SetTestType(WORD comHandle, bool type1, bool type2, bool type3),   I tried to use a boolean control and a Boolean to (0,1) node in labVIEW to pass parameters to CLF, I config the bool input value as U8(according to C++ bool type) and U32(according to WIN32 BOOL type), it dose not help, when I execute the VI, LabVIEW will be disappeare, it seems to be closed, I must start it again.
    Could someone has similar experience on this points?
    It's easy to crash LabVIEW misusing CLF - maybe there's another reason for the crash besides bool mis-match(?)  Do you know which "Calling convention" is required?  What type is comHandle? (where does comHandle come from?) 
    Cheers!
    Message Edited by tbd on 03-23-2007 09:34 PM
    Message Edited by tbd on 03-23-2007 09:35 PM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    evt.jpg ‏7 KB

  • How can I terminate my sequence when DI signal changed?

    Hello, I have a problem that  I want to stop my sequence by DI signal changed.
    How can I terminate my sequence when DI signal changed?
    Thanks
    Solved!
    Go to Solution.

    Hi, you can test the DI signal in vi using a while structure in another thread while main sequence is running. Then you can make use of an if statement to determine whether to get on running the sequence by the value of the vi.

  • How can I execute a vi when a switch changes

    I have a switch which controls the input to a VI (it is slightly more complicated than that, but that's the basic idea).
    The VI is a "set" function.  So it really should only execute when the value changes. 
    Is there some way to set the switch so that there is only data available on the output when the switch is switched, thus executing the VI once?
    If not, what is the best way to do this?
    Thank you.
    B.

    BPerlman wrote:
    Thank you.
    An event structure sounds like just what I need.  I am not going to get into the design patterns you mentioned here .... this is a demo program and there is a switch on the front panel that demos a feature in our library, turning it on and off.  I just want to call a library function to turn the feature on or off at user request....the rest of the demo works (right now, I call the VI to turn on/off the feature every time through my main loop -- this is ugly and causes us timing problems... but everything else is finished)
    I tried to add an event structure but don't seem to have it in my edition of LabVIEW....
    What I just added now is a shift register to save the value of the switch between loop iterations, and I compare it to the current value, then feed it into a true/false case structure, only calling my "set" VI when the two values are different...
    Is there a better way, or is that all I can do unless my company buys a fancier LabVIEW version?
    Thanks.
    B.
    Shameless plug for an idea in the idea exchange. Since this would have helped you resolve your issue you might want to consider giving a kudo to this idea.
    The way you are doing it now with the shift register is pretty much the only way you can do this without using an event structure.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How does Adobe Forms Central base their automated page breaks when distributing to a PDF form?

    OR
    How can I define those page breaks before Adobe Forms Central created the PDF. I have attempted to "insert" a page break within the form; however, when distributing this form to be created as a PDF, the PDF is still placing the auto-generated page break wherever it wants.
    Is it possible to move these auto generated breaks once the PDF form is created?
    Thank you!

    Did you add the page breaks while in Web View or Page View? FormsCentral uses "web view" as the default, but uses the "page view" to show where the PDF will have page breaks. Go to the menu bar on the top right, select "view," and then select "page view." You  should be able to see page breaks here, and move them where you'd like them. It won't affect what people see on the web, just in the PDF.

  • How do I get a section break/page break when the item is greyed out?

    I've created an A4 document in word processing mode, with four identical A6 text boxes covering the entire page. Then I've created a second page with four more A6 text boxes so I can print a postcard on both sides of the card. Trouble is, Pages has made two extra text pages that I don't want, the first is linked to Pages 1 and 2, and the second is separate. I can't create a section break or page break because the command is greyed out, so I can't delete page 3. When I try and delete page 4, which is a stand alone page, it also deletes pages 2,3 and 4, leaving me with just page 1!
    I don't have any problem with page breaks or section breaks in an ordinary A4 document with just one text box on a page, but I often want to create multiple text boxes and when I do I have always had this problem, ever since Pages was first introduced. Can anyone tell me what I'm doing wrong, please?

    Thank you, Yvan, but I've tried that. Firstly, I unchecked the headers and footers tick box in the Inspector because I want the postcards to be exactly A6 size, that is, one quarter of A4. I've tried making the lower two text boxes slightly smaller (which I don't really want to do, because I want them A6 size) but I still can't get the insertion point to appear below the text box – it stays resolutely in the next page and won't go back up to the previous page. Any further ideas? Thank you.

Maybe you are looking for