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

Similar Messages

  • 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

  • Help Needed with Dynamic RePort PAges

    I've created a link that dynamically will generate a data
    report from my db. I have about 30 reports the client needs to be
    able to run. Do I have to create a separate page for every single
    recordset?? Is there a more efficient way to do this??

    You could make a drop down menu with the name of the report
    in it and then show that report on the redirect page using an if
    statement to determine which sql statement to run. Also you can
    have multiple recordset on a page.
    Are you using php, asp or cfm?

  • Help needed regarding website opening page

    Hello everybody
    I'm kind of lost and I can't find the way to switch from the
    current opening page of my website to a new one already
    To make it short , my website stands in Swedish and English.
    There is more and more traffic on the English version now and I
    would like to switch to it thus replacing the Swedish version
    without cancelling it though.
    The point is to have the visitor see the English version when
    he enters my address on the web.
    I've followed the steps in the help section! but there's no
    way for me to make it effective on the web. The map of the site
    changes on the local files but nothing happens on the web.
    I thank you for considering my message and I hope someone
    will help me out.
    All best
    Frederic

    Generally on the web server there is a default page file
    name, commonly index.html or default.asp. It depends on the web
    server. The default file is served when the web browser doesn't
    indicate a file (e.g.,
    http://www.example.com/ as
    opposed to
    http://www.example.com/myfile.html).
    You want to put your content in the default file, with a link to
    the other version (e.g., index.html links to swedish-index.html).

  • Help needed creating consistency across pages

    My site is here:
    http://www.leaningtowermpls.com/index.php
    The horizontal yellow bar at the top is inconsistent across
    the pages Home, Menu and Locations. I haven't taken the time to
    learn CSS properly yet, and most of the layout is table based. (Not
    that I have mastered anything at this point.) This site needs to
    get out the door, so if anyone can let me know how to solve this
    problem I would really appreciate it.
    -Adam

    On Tue, 16 Oct 2007 00:13:52 +0000 (UTC),
    "adam@blueapplestudio"
    <[email protected]> wrote:
    >My site is here:
    >
    >
    http://www.leaningtowermpls.com/index.php
    >
    > The horizontal yellow bar at the top is inconsistent
    across the pages Home,
    >Menu and Locations. I haven't taken the time to learn CSS
    properly yet, and
    >most of the layout is table based. (Not that I have
    mastered anything at this
    >point.) This site needs to get out the door, so if anyone
    can let me know how
    >to solve this problem I would really appreciate it.
    >
    > -Adam
    As discussed - it would be best to base on a simple template
    - with
    the common items like menu, to yellow bar in the template
    etc.
    Also you have the css in each file, far better to move it out
    to an
    external style sheet - so that all pages will behave the
    same.
    Tidy up some of the code with Dw's
    Commands | Apply source formatting
    ~Malcolm N....
    ~

  • Help needed - about change password page

    I had created a change password page and successfully connected to the access database via jdbc-odbc bridge. But, there are still some errors with the coding.
    The situation is like that: whether the NewPassword==ConfirmPassword or NewPassword!=CofirmPassword or both blank, there will always pop up a message dialog "The confirm password and new password must be same."(which I wrote in JOptionPane) and will not update the database that i had linked. I try to correct it but fail.
    Can somebody help me to correct the code below?
    Thank you!
    ========================================================================void jButton1_actionPerformed(ActionEvent e) {
    String userid = jTextField1.getText(); //UserName
    char[] passwd2 = jPasswordField2.getPassword(); //NewPassword
    char[] passwd3 = jPasswordField3.getPassword(); //ConfirmPassword
    try {
    connection = getDBConnection();
    if( passwd2 != passwd3 ){
    JOptionPane.showMessageDialog(null, "The confirm password and new password must be same.", "Change Password Fail", JOptionPane.INFORMATION_MESSAGE );
    jPasswordField2.setText("");
    jPasswordField3.setText("");
    else {
    String query = "UPDATE UserInfo SET Password = '"+ passwd2 +"' WHERE UserID='" + userid +"'";
    Statement statement = connection.createStatement ();
    ResultSet resultSet = statement.executeQuery( query );
    int result = statement.executeUpdate ( query );
    if ( result == 1 )
    JOptionPane.showMessageDialog ( null," Password successfully changed", "Password changed", JOptionPane.INFORMATION_MESSAGE );
    else {
    jPasswordField2.setText( " " );
    jPasswordField3.setText( " " );
    JOptionPane.showMessageDialog ( null,"Fail to change password.\n Please reenter the new password.","Fail", JOptionPane.INFORMATION_MESSAGE);
    catch (SQLException sqlex ){
    sqlex.printStackTrace();

    yup, i change as the code as u suggested..the change password page run success but got bugs as below. i don't know the reason. please correct me though the coding. thanks!
    ========================================================================
    java.sql.SQLException: No ResultSet was produced
         at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:255)
         at logintry.DataMiningFrame.jButton1_actionPerformed(DataMiningFrame.java:239)
         at logintry.DataMiningFrame$1.actionPerformed(DataMiningFrame.java:77)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
         at java.awt.Component.processMouseEvent(Component.java:3715)
         at java.awt.Component.processEvent(Component.java:3544)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2593)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
         at java.awt.Container.dispatchEventImpl(Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:914)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

  • Actionscript help needed with getting Next Page to work

    I just have a simple question (hopefully).
    Question is:
    I have a web page that displays a flash file that zooms and
    pans, but I cant get the Next Page link to display. (will also want
    1st, last and previous page)
    1. Can the next page work and load the next or previous
    numbered file?
    2. Does it have to have all pages in one file, then it calls
    the next frame?
    Snippet below, or I can e-mail example files.
    Please help, Thank you, Mike
    ============SNIPPET==========
    <!--[if IE]>
    <object id="movie" type="application/x-shockwave-flash"
    width="300" height="500">
    <param name="movie" value="1.swf">
    </object>
    <![endif]--><!--[if !IE]> <-->
    <embed name="movie" type="application/x-shockwave-flash"
    src="1.swf" width="300" height="500">
    </embed>
    <!--> <![endif]-->
    <form name="f" onsubmit="return false;">
    <button name="button" onclick="next()">Next
    Page</button>
    <button onclick="zoom()">Zoom In</button>
    <button onclick="zoom2()">Zoom Out</button>
    <button onclick="pan()">Pan</button>
    <button onclick="setzoomrect()">Rect</button>
    </form>
    function next() {
    var flash = window.movie || document.movie; // Get Flash
    object.
    flash.Zoom(50);

    Use the same method you are currently using. The Zoom and Pan
    methods just happen to be exposed to the ActiveX control and
    Plug-in. So to use the the GotoFrame() method for example, just
    change your code from:
    function next() {
    var flash = window.movie || document.movie; // Get Flash
    object.
    flash.nextpage();
    To this:
    function next() {
    var flash = window.movie || document.movie; // Get Flash
    object.
    flash.GotoFrame(20); // This will jump to frame 19 of your
    main timeline.
    It goes to frame 19 because the method you are using is
    zero-based. Meaning to get to the first frame of your movie you
    would pass the number zero.
    To use the TCallLabel() method it would look like this:
    function next() {
    var flash = window.movie || document.movie; // Get Flash
    object.
    // to target the main timeline, use
    flash.TCallLabel("/", "labelName");
    // to target a movieclip on the main timeline use:
    flash.TCallLabel("/MovieClip", "lableName");
    Also, just so you know. These methods are getting antiquated.
    To keep up with the current versions and methods of communicating
    between JS and Flash you should really look into the
    ExternalInterface class in Flash 8.
    Tim

  • Help needed on a OAF page

    Hi All,
    In PLM module, while creating a new item as copy of item, in the page train, we have a page with two fields,
    “Available Information” and “Selected Information” which is a shuttle region.
    By default, when this page opens, all the attachment categories are available in “Selected Information”(on the right hand side).
    The current requirement is that one of the value from the list should show on “Available” side by default and should not show on the “Selected” side.
    We tried accomplishing this through personalization, but the list items on the page do not have option to do any changes.
    The OAF personalization guide states:
    “The properties of a shuttle region may be personalized at the Admin level but not at the end-user level.”
    Please let us know if anyone has worked on similar requirement before.
    Thanks,
    Kiranmayi.

    {forum:id=210} is where you should be

  • Help Needed - replacing space with non-breaking space on the fly

    Hi,
    I have a text field I'm trying to fiddle the input on. Basically I want to replace all spaces (ascii code 32) with non-breaking spaces (ascii code 160) as they are typed.
    It seemed as though a KeyListener was the way to go, and I've successfully detected whenever a space is sent. I can consume() that KeyEvent, or setKeyChar to change it to another key. But I cannot see how to change it to a non-keyboard character.
    Any suggestions?

    i think you can do smt likeDocument doc = mySwingTextComponent.getDocument();
    doc.setDocumentFilter(new MyDocumentFilter());
    class MyDocumentFilter extends DocumentFilter {
       public void remove(DocumentFilter.FilterBypass fb, int offset, int length) throws BadLocationException {
          fb.remove(offset,length);
       public void insertString(DocumentFilter.FilterBypass fb, int offset, String string, AttributeSet attr) throws BadLocationException {
          replace(fb,offset,0,string,attr);
       public void replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs) throws BadLocationException {
          text.replaceAll("SPACE","NB WHITE SPACE");
    }asjf
    http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/text/DocumentFilter.html

  • Suggestions/help needed creating portal type page

    Let me start by saying I am very new to Java. I'm trying to create a portal - a fairly simple web page where each user who logs in will see only those application links that they are authorized to access. User A will see links to applications X, Y and Z and user B will see links to applications R and Q.
    I'm running a Tomcat 6 server, and will be using Java 6 (jsp pages, servlets, etc). I've done some research on things like tomcat realms, ldap, ad, jaas, etc. but I'm still not sure what direction I should be going in. My 'portal'/web page will consist of about 20 application links - some are links out to external web sites/applications (public web sites outside of our network), some are internal applications housed on various in-house servers on our network, some are home-grown, others are 3rd party applications, eventually some will be home-grown java applications. Each application currently has it's own login and password.
    I know that I can build a table in a relational database, or update an xml file in Tomcat and use Tomcat realms to determine who has access to what. Are there other options? I can certainly build a table, but I don't want to if there are easier ways - can AD tell me what applications a particular user has access to (so I can determine what links to display)? If so, how? (I don't know much about ad (yet)).
    I just don't want to end up building something overly complex, and missing out on something that would make this simpler. Any ideas, suggestions, etc on what I could/should be looking at would be most appreciated.
    Thanks!

    Unless you know what you're doing with absolute positioning, avoid absolute positioning! Absolute positioning actually takes an element out of the normal HTML document flow and positions it absolutely in relationship with it's first parent with a position other than static - for details read the HTML specs at the W3C.
    Ideally you should use the normal HTML document flow. Divs are block level elements meaning that they act like blocks that take up a height (determined by children content) and width (the full width of the page or it's parent container, unless you tell it otherwise).
    For your CSS try this:
    #techlistcontainer {
        width: 75%;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 30;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 30;
    How does that work with your templates?

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

  • How to give a page break in alv grid display after 65 lines are displayed?

    hi all,
    I need to give a page break in alv grid display after 65 lines are displayed on each page...Please help me with this...

    hai
    give this command beging of the report name... u have to diclar the beging of the report ......
    <b>report</b> ( name of the report)  <b>standard page heading line-size 200 line-count 65.</b>
    ex1.:- report name is  rtpm_trl_show_flows 
    report <b>rtpm_trl_show_flows </b> no standard page heading line-size 200
                                                         line-count 65.
    ex:2
    report  <b>zlpur01</b> no standard page heading line-size 200
                                                         line-count 65.
    type-pools: slis.
    tables: bkpf.
    selection-screen begin of block sel with frame title text-001.
    select-options: s_comp for bkpf-bukrs, " Company
                    s_valut for bkpf-budat. " Invoice Date
                   S_MTART FOR MARA-MTART. " Material Type
    selection-screen end of block sel.
    parameters: p_vari like disvariant-variant. " ALV Variant
    constants: formname_top_of_page type slis_formname value 'TOP_OF_PAGE'.
    data:   i_bseg type bseg  occurs 0 with header line.
    data: vatval type p decimals 2 value '0.15'.
    data: xhkont type string value '154000'.
    data COM type c.
    data: begin of invt occurs 100,
            budat like bkpf-budat, " Inv Dat
            bukrs like bkpf-bukrs, " Material
            STCEG like bsak-STCEG, "name of the companycode
            belnr like bkpf-belnr,
            xblnr like bkpf-xblnr, " Inv Reference
            ebeln like rseg-ebeln, " PO number
            lifnr like bseg-lifnr, " Vendor No
            name1 like lfa1-name1, " Supplier Name
            matnr like bseg-matnr,
            maktx like makt-maktx,
            stcd1 like lfa1-stcd1, " Supplier VAT REG NO
            xamt like bseg-dmbtr, " TAX amt
            yamt like bseg-wrbtr,
            wrbtr like bseg-wrbtr, " Base amount
            mwskz like bseg-mwskz,
            dmbtr like bseg-dmbtr, " TAX amt
            gjahr like bkpf-gjahr,
            hkont like bseg-hkont,
            zamt like bseg-dmbtr, " TAX amt
            wamt like bseg-dmbtr,
            shkzg like bseg-shkzg,
            shkzg1 like bseg-shkzg,
          end of invt.
    regard
    nawa

  • Page Break in ALV List display

    Dear Community,
    I have a requirement wherein we have group account number ,under which there are 'n'sub group account numbers.Each sub group account number has credit,debit,cumulative(credit-debit) values.whenever group account number changes automatically a new page should be triggered.Now the problem sub account number is running into pages but same page number is displayed even it runs into several pages.I need to restrict this ,at the end of the page(std is 65 lines/page)page break has to be applied,along with the subtotals of the credit,debit,cumulative respectively and page number has to be displayed and the process should continue with the remaining sub group account number values.
    Please do the needfull.
    Thanks & Regards,
    Ullas

    Hi,
    In order to achieve the Page Breaks, we need to fill in the sort catalog structure, LVC_S_SORT, as follows:
    FS_SORT-SPOS = ‘1’. “ Sort order position
    FS_SORT-FIELDNAME = ‘CARRID’. “ Field name on which page break need to be triggered. Whenever this field changes, page break will trigger
    FS_SORT-GROUP = ‘’. “ This has 2 options. ‘’ for page breaks and ‘U’ for underlines.
    FS_SORT-OBLIGATORY = ‘UL’. “ If you need to retail these page breaks through out, we need to set this as obligatory. Otherwise, if the end user selects any other field and presses SORT, then page breaks would disappear
    Hope this helps you.
    Enjoy SAP.
    Pankaj Singh.

  • 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 handeling when using table type field

    Hello everyone
    I've created an adobe form using tcode SFP.
    A table, "T1", is containing fields where one of it is a TABLE TYPE (Let give the following name "T1-FT1").
    So the structure can look like:
    T1-F1
    T1-F2
    T1-FT1-FTF1
    T1-FT1-FTF2
    basically the structure is like to have documents containing several items where those items have several serial number.
    I need to have page break per documents, per items and serial number where those one have specific header page different than the document itself.
    I need to have a page break per T1 records with specifc header.
    So for each new records of T1, I have to create a new page with it's specific header.
    The table T1-FT1 is starting on the current page, but if I have to many records to stay on the page I need to create another page with it's specific header that is different than the page 1.
    My problem is the page break handling.
    I can have the pagination tab at the Table1 and row1 level but I don't have the pagination tab at the T1-FT1 level.
    Here is what my hierarchy:
    _MasterPage
    __Page1
    __Page2
    _MainSubForm
    __Subform1
    ___Table1
    ____Row1
    _____Subform
    ______Table2
    ________Row2
    Example of Data:
    T1-F1 ___ T1-F2 __ T1-FT1-FTF1 __ T1-FT1_FTF2
    A _______ B _____  1 ___________  1
    A _______ B _____  1 ___________  2
    B _______ C _____  1 ___________  1
    B _______ D _____  1 ___________  2
    B _______ D _____  1 ___________  3
    The final page break layout should look like:
    Page1
    Header1
    A B
    ___ 1 1
    ___ 1 2
    Page2
    Header1
    B C
    ___ 1 1
    ___ 1 2
    Page 3
    Header2
    B C
    ___ 1 3
    Because there is not enough room on page 2 for the last record of the table T1-FT1, a new header is used on page 3.
    Actually several problems occurs. I cannot have the proper page break set to avoid empty pages as first or last page.
    The pagination tab stop to be available after the Row1. So we cannot set page break at the table2 and row2.
    The page break contidion doesn't work. "Well I didn't succeed to make it work".
    Any idea on how to handle those page break at table2 level?
    Is anyone had to create a PDF form where we have the date into several level of structure?
    Regards
    dstj
    Edited by: dstj on Feb 18, 2010 10:59 PM
    Edited by: dstj on Feb 18, 2010 11:00 PM

    I have the exact same issue. Could not find a solution. In my case, there are multiple subforms printed one below the other. If an expandable subform overflows into a new page, the last line overlaps with the text of next subform. I have added blank spaces between the subforms but, that does not solve the issue.
    Finally, I have managed to minimize the occurrence of the issue by doing the following. Only turn on the flag "Allow Page breaks within content" for subforms that can really spread over many pages. All other subforms, turn the flag off. This minimizes the possibility of overlapping.

Maybe you are looking for