Dynamic table header/footer on multiple pages stay original

hi experts,
i've got a form with a dynamic table. this means that i have a footerrow with mapped information if it should be visible or not. so the table can have from 1 to 40 columns.
i did some scripting in the table's initialize section:
loop over count of colums and set the headerrow, row1 and footerrow elements for index x to hidden.
everything works out fine BUT if the data spans over multiple pages the headerrow on pages 2 to last is original again. means that the hiding of cells is not effective any more. same with footerrow (but here its fine at last page and original at  page 1 to last -1).
i tried to hide cells again in layout:ready section for the other instances of the headerrow.
cells got hidden, but the still visible cells didnt relocate to the left (if i hide it, there should be no space between staying cells).
can anyone please give me a hint what i am missing here?
does anyone have a simple sample for this task? its all about the header/footer for multiple pages!
thanks a lot!
daapoo

When the footer goes to the 2nd page the page subform is incremented so you will have to reference the page subform as well. I suggest that you add a button (this is for a test only) to the footer subform and add the code app.alert(this.somExpression). Now render the form and make sure the footer stays on one page. Hit the button and take note of the someExpression. Now add enough rows to force the footer to a new page. Hit th ebutton again and take note of the changed somExpression. So to solve your problem you will have to find out which page your footer is on. and then construct your expression to incorporate this chane in expression. Note that the indexes are 0 based but the page numbering is 1 based.
Hope that helps
Paul

Similar Messages

  • Orphan table header at bottom of page when page breaks a table across multiple pages

    Hi all,
    I think similar questions have been asked before but I have not found an answer.
    Here's the scenario:
    I have several dynamic tables in a dynamic form.  The layout is flowed, and everything can grow and shrink as needed.  That all works.
    However, my tables have headers.  Occasionally when one of these tables is large and needs to break across multiple pages, there will be just enough room at the bottom of the previous page to show the next table header, but not enough space to show any of the related table rows.  So it ends up looking silly, with just an orphaned header at the bottom of one page, and then the table continues on the next.
    I have my tables set up so that headers get repeated on subsequent pages, by setting the header row to "repeat row for each data item" on the binding tab.  I would like to keep that functionality, but I just want to find a way to avoid these "orphaned" table headers that sometimes appear.
    I have tried the "keep with next" option.  However, although this does push the rendering of the header to the next page, it seems that according to livecycle the table still officially began on the previous page.  Therefore I get a duplicate header because of the "repeat row for each data item" option.
    I have also tried having two header rows, one that is set to only be displayed on the initial page, and the other that is set to appear only on subsequent pages (pagination tab).  This did not work - I ended up with duplicate table headers.
    Can anyone help me?
    Thanks!

    You shouldn't have "repeat row for each data item" selected for header rows.
    You should have "include header row in initial page" and "include header row in subsequent pages" selected on the Pagination tab.
    Then using a "keep with next" might work ok.

  • Report Formatting with Dynamic Height Header/Footer

    I need to generate a printable report (pdf if possible) with a:
    1) Header - Dynamic Height based on recordset output
    2) Body - Recordset output, may carry over to multiple pages
    3) Footer - Dynamic Height based on recordset out
    In short, the whole page is dynamic- The header and footer need to be on every page and whatever height is left over to fit within the print area goes to the body and the line item output of each record (think invoice).  Then the number of pages will depend on how long it takes to output the body recordset (but the header and footer MUST be on each page).
    I have been trying to get this to work using cfdocument since CF7 and have never had any luck. It has not worked due to the reason that since the header and footer are dynamic height, I do not have any way to set the margins properly on page generation (so it shrinks the header or leaves excess whitespace).
    Anyone recommend the best way to go about this? I have heard about the report builder and am not sure if that will fit these requirements.  I appreciate any assistance!

    When the footer goes to the 2nd page the page subform is incremented so you will have to reference the page subform as well. I suggest that you add a button (this is for a test only) to the footer subform and add the code app.alert(this.somExpression). Now render the form and make sure the footer stays on one page. Hit the button and take note of the someExpression. Now add enough rows to force the footer to a new page. Hit th ebutton again and take note of the changed somExpression. So to solve your problem you will have to find out which page your footer is on. and then construct your expression to incorporate this chane in expression. Note that the indexes are 0 based but the page numbering is 1 based.
    Hope that helps
    Paul

  • Making dynamic table header

    Hi,
    I want to know how to put some value on a table header dynamically.
    Regards
    Hawker

    When the footer goes to the 2nd page the page subform is incremented so you will have to reference the page subform as well. I suggest that you add a button (this is for a test only) to the footer subform and add the code app.alert(this.somExpression). Now render the form and make sure the footer stays on one page. Hit the button and take note of the someExpression. Now add enough rows to force the footer to a new page. Hit th ebutton again and take note of the changed somExpression. So to solve your problem you will have to find out which page your footer is on. and then construct your expression to incorporate this chane in expression. Note that the indexes are 0 based but the page numbering is 1 based.
    Hope that helps
    Paul

  • Table not going across multiple pages

    I have two simple side-by-side tables that I want to stretch across multiple pages when necessary by clicking the Add Another button object.
    I think I've done everything necessary to have the table repeat on multiple pages:
    1. My table is in a subform. 
    2. The subform is set to Flowed.
    3. The table has Allow Page Breaks with Content
    4. The table is not a group table
    5. I have the Rows in Binding to Repeat Row for Each Data Item
    What I do notice is that when I click on either Table and then click the Pagination tab in Object--- Pagination is greyed out
    Can anyone offer any suggestions?
    Thank you.

    Hi,
    first of all thanks for the link to the tutorial
    function(){return A.apply(null,[this].concat($A(arguments)))}
    Niall O'Donovan wrote:
    Example of building dynamic tables here: http://assure.ly/gk8Q7a.
    I have created a header on my master-page (just a Logo-picture). When my dynamic table reaches the end of the page, it creates a new page - any problem yet.
    But on the new page, the table just starts directly on the top (y = 0). In this way the table is placed above my logo.
    Is there any way to solve this problem?
    Anything like "check if there is a header on master page and set new rows on next table under the header"?

  • Continued Header Display in Multiple pages

    Hi All,
    I am working on a print form. The requirement in body of the form is like this...
    Header with 10 columns
    Subsequent Items with 10 columns
    The above Header and Item both are dynamic.  There may be multiple Headers and Multiple Items. I am able to display the multiple headers with multiple Items. But the problem is when the data flows to multiple pages and if the page break occurs then the line items flowed into next page should be followed by its header. I have achieved that. Now the header which is coming in the next page should come with concatenated value page contd.. in the second column of the header... What would be the possible way to achieve the same..
    Regards,
    Mohammed Shukoor.

    Could you please eloborate the question. 
    as per my understanding, you need an extra line to be appended when pagination occurs with the page value and contd...
    Please let me know, if my understanding is right.
    thanks
    Rakesh.

  • Data table header facet with multiple components?

    Hi,
    I have a data table to which I wish to add buttons to change the sort order of the items displayed. However when I add the 'buttons' to the 'header' facet I get strange results - some components are shown, some are not, and the order they appear seems almost random.
    Is the header / footer facet designed only for one component - or can I combine them somehow?
    Code snippet is
    <h:dataTable id="table" rowClasses="oddRow,evenRow" width="80%"
    value="#{ControllerBean.orderedResults}" var="meet">
    <h:column>
    <f:facet name="header">
    <h:commandLink action="#{ControllerBean.setOrder}">
    <h:graphicImage value="/img/up.gif" style="border: 0px" />
    <f:param name="order" value="up-title" />
    </h:commandLink>
    <h:outputText value="#{msgs.title}" />
    <h:commandLink action="#{ControllerBean.setOrder}">
    <h:graphicImage value="/img/down.gif" style="border: 0px" />
    <f:param name="order" value="down-title" />
    </h:commandLink>
    </f:facet>
    <h:outputText id="meetTitle"
    value="#{meet.title}" />
    </h:column>
    etc..
    So to be clear - I want a header that contains two graphic buttons separated by the text. When I run this code as is here, I get just the 'down' button, but by changing the order I can sometimes get the down button and the text......
    Cheers
    Reeling

    Yes, you can place it in a panelGrid or panelGroup component.
    The following is an excerpt from a book:
    TIP: To place multiple components in a table header or footer, you must
    group them in an h:panelGroup tag, or place them in a container component
    with h:panelGrid or h:dataTable. If you place multiple components in a facet, only the
    first component will be displayed.
    Thus you could have something like:
                   <f:facet name="header">
                        <h:panelGrid columns="1">
                             <h:outputText value="#{fields.recordings}" style="font-weight: bolder" />
                             <h:panelGroup>
                                  <h:outputText value="#{fields.type}" style="font-weight: bolder"/>
                                  <h:outputText value="#{fields.date}" style="font-weight: bolder"/>
                                  <h:outputText value="#{fields.time}" style="font-weight: bolder"/>
                             </h:panelGroup>
                        </h:panelGrid>
                   </f:facet>

  • Create sortable dynamic table header

    I have a webpage .ASP that connects to a database by system ODBC connection.  How can I make my dynamic table have clickable header text to sort the column in ascending or descending order?
    Dreamweaver CS3
    Thanks

    If you do it server-side, the page will need to reload every time you
    sort. You could do it client side, with a bit of script, as we've done
    on our updates page (after several suggestions to do so from a customer
    who posts regularly on this forum
    http://www.projectseven.com/support/updatepages/
    Al Sparber - PVII
    http://www.projectseven.com
    The Finest Dreamweaver Menus | Galleries | Widgets
    Since 1998

  • My table header row repeats on page 2, but not thereafter -- why?

    The header row on my dynamic table will repeat when the table overflows onto the second page, but if it flows over to a third or fourth page, the header does not repeat.  Why is that?  I'll be happy to send the form with the troublesome table via email to someone who can help,
    Thanks,
    Jenny

    hi, its weird !!
    pls fwd it to [email protected]
    Abhinav

  • Simple Dynamic Table followed by an empty Page

    Hello,
    I need a dynamic table with 3 Columns + 3 Rows.
    The data provides an xml file.
    Each table must be followed by a blank page (please see the Screenshot below).
    Thanks and regards, Mike
    Please feel free to send me an example via mail to [email protected]

    hello
    mischma
        Can you tell me your problem with detail.I don't understand what you want.
    Regards
    Zarni

  • Table Header Overlap on 2nd Page

    Hi Experts,
    In my adobe forms i need to display a table with header on each page and line items containing data to be displayed in 3 rows.
    I have used Subforms as tables.
    Now to display the table header in all pages, i have set Overflow leader property of Data table to Header.
    Table header is displayed properly on the first pafe , However , on second page the table header  texts are getting overlapped.
    Am i missing a simple trick here?
    Can you please help me identify?
    Regards,
    Ashish Shah

    Solved it by making table header sub form Positioned. And created one sub form in Body table subform. Kept all the body contents in this subform and removed allow page breaks with in content for this new subform.
    Header --> Positioned --> Page break allowed
    |- Item --> Flowed    --> Page break allowed
       |- New Subform --> Flowed --> Page break    not allowed.
    Thanks.

  • Header row on multiple pages

    Hi All,
    Please could someone explain how to conditionally display the Header row on first and subsequent pages, but make it dependent on the body row. That is, if the output flows into the second page and there are line items to display on the second page, only then should the Header appear. If there are no line items for the second / subsequent page then the Header should be suppressed.
    I have had a look at form - F110_AVIS_INT - this form has the functionality mentioned above and doesn't use conditional breaks for the Header row - but I cant decipher how it works. Please advise.
    Kind regards,
    Arijit

    Hi Gaurav,
          I have a table and i want to table header to be repeated in subsequent pages but only till 2 pages the table header is visible from the 3rd page onwards the table header is not repeated.
    I have selected the Header Row in hierarchy and in Pagination tab for the header row i have checked the the check box Insert Header Row in Subsequent Pages.
    After selecting the checkbox also table header is repeated only in 2 pages and not repeated after the second page.
    My table hierarchy in form is :
    TableSubform
       Table
           HeaderRow
           Row1
    In your previous reply you have placed header in a separate subform and you have selected the body subform and in overflow leader you have selected the header subform to be repeated.
    In my scenario i selected the TableSubform and in Overflow Laader i selected HeaderRow and tried but it was not working.
    I am using Designer 8.0 and Acrobat Reader 8.0
    Can you please help me in solving this issue.
    Regards,
    Bala Baskaran.s
    Edited by: Bala Baskaran on Feb 18, 2009 11:11 AM

  • Is it possible to insert a header/footer into a pages A5 size document?

    I'm trying to insert a header and/or a footer in a A5 sizes pages document. In the A4 version it's there automatically, but in this A5 one it's not and it's greyed out in the Insert drop down menu. What am I doing wrong? Thanks

    There is no Menu > Insert > Header/Footer
    You get Headers/Footers in:
    Inspector > Document > Document > Document Margins > check Header/Footer
    Peter

  • Help with header field on multiple pages

    I am trying to print three multiple page documents.  The first document in the dat file has data in a header comment field.  The last two documents in the dat file do not have data for the header comment field. On the form I have defined this comment field as global.  When I print the documents the first document comment is being printed on the last two documents that should not have comments.
    If I remove the global condition for the comment field, then the comment is only printed on the first page of the first multiple page document.  Is it possible to print the comment on each page of the first multiple page document and not print the comment on the documents that should not have a comment?  Thanks for any help.

    Got it. Thank you. I'm having one other problem though. I
    keep getting this bizare message every time i save or try to use
    the template:
    The is an error at line 41 column 7 (absolute position 2486)
    of "~pathandfilename.dwt": Nested editable regions
    The only thing at line 41 is the <body> tag. I took all
    the formating out to try to trim this out... any thoughts about
    this one.
    Thanks G

  • Dynamic Table Header in WebI

    Hi community
    I'm currently facing quite a challange with WebI:
    I have (simplified) the following data structure in my Universe (which ist built upon a BEx Query):
    - Customer
    - Calendar Day
    - Calendar Week
    - Calendar Month
    - Turnover
    Now, the customer want's to a have cross-tab like this one:
    June 2010
    July 2010
    August 2010
    Customer 1
    324'324
    847'342
    543'534
    Customer 2
    567'456
    249'143
    579'134
    The challange is: The customer wants to select the data by a list of customers (that's easy) and one of the three time dimensions (would be easy too). BUT: Depending on the time dimension the user selects, the cross-tab's table header should change to that dimension! So, when the user enters "july 2010 - august 2010" the table's header shows the months like in my example above. When he leaves the month blank in the prompt and restricts calendar week to "03.2010 - 07.2010", the table's header should show the corresponding weeks, not months!
    Has anyone an idea how to accomplish this?
    Restriction: I don't want the user to have to "drag & drop" the dimensions from and into the table. The report should not be editable.
    Thank you trying to help me!
    phil

    Capture the User selection using UserResponse() function.
    Eg: Prompt on Month: Select Month == Jan2010 (User Selected)
    In Table headers: write formula like this:
    |=UserResponse(Select Month) | =UserResponse(Select Month)-1 | =UserResponse(Select Month)-2 etc...,
    Seems you have Prompts for both Month and Week as well, follow the same.
    Hope it helps you.
    Thank You!
    H2H

Maybe you are looking for

  • How to get first emp for each dept?

    Hi, I need to do a query to pick up one employee (the first one based on ename or empno)from each department, but I don't want to use min function (for some reason it didn't work on my real date), rather I like to use something like this: The problem

  • Selecting multiple items in a listbox

    Is it possible to select multiple items in a listbox and insert them into an array. Currently, to get around not knowing if this is possible, I have two listboxes. One has items available and the other has items you want to use. I can either double c

  • Installing of J2EE failed

    I had downloaded the latest version of j2ee sdk 7 and mu pc is containg jk1.7u45 and at the time of installing it says version mismatch of jre need 1.6 or more but i am have 1.7u45 installed. please help me

  • Transferring library from pc; duplicate files and missing playlist

    I know this can't be a new topic but I'm having trouble finding a solution. I am very frustrated as I've been working all morning on this and I suspect there is an easy solution. My new i-mac arrived yesterday. I'm transferring my itunes library from

  • Pass an argument from external jsx to html panel?

    Hi everyone, Can you please tell me if it's possible somehow to listen to event from the external jsx in html panel? What I'm trying to do is to pass an argument from JSX to HTML Panel and to update the panel with it. Many thanks, Sergey