Need ideas on how to display a footer on last page only on a dynamic document

I have a document that is similar to this...
Dear Customer,
paragraph 1 content dkdk dkd alkfdjaldkjfa d
dlkfajd;lkfja;dlkfj a.
[repeating subform transaction data]
Closing paragraph please contact us using one of the numbers listed below
contact info
The problem I am having is that I want the Contact Info block to appear as a footer on the last page only.  In addition, I want the Closing Paragraph to be on the same page as the contact info block.  The contact info is currently anchored to the bottom in the design view and when the transaction data repeats, it incorrectly pushes the closing paragraph into the contact area.  So basically if the closing paragraph starts to bleed into the contact info block, I want both closing paragraph and contact info to break to a new page.  I don't want to reduce the height of the content area because I want the transaction data to have the ability to display in the full length of the height if needed. 

Every time you add an instance to you subform, you should hide the footer in the previous instance
e.g.
when adding an instance
var intCount = _subform.count;
_subform.addInstance(1);
Reference_syntax.resolveNode("subform[" + intCount.toString() + "].footer").presence = "hidden"
when removing an instance if applicable
_subform.removeInstance(x);
var intCount  = _subform.count - 1;
Reference_syntax.resolveNode("subform[" + intCount.toString() + "].footer").presence = "visible";

Similar Messages

  • Over flow issue while printing footer in last page in PDF forms

    Hi,
    Could any one let me how to display footer in last page only at end of page reserving 5cm of space.
    I have designed my form with two pages:First Page and Next Page in Master Page
    Body Page contains table details and some texts after the table lines.
    First and Next Pages has footer(5cm) at the bottom.
    If Page <> Last Page,footer is not displayed.
    If page = Last Page, footer should be displayed at the very end of the page
    I have a table with multiple line items. If the line items end in First page the footer should be displayed at the bottom of the page. If the line items flow to the next pages footer should be displayed in the last page only. Next pages should be using the footer space at the end of each page if it is not the last page.
    If the positions are wrong can anyone suggest the position of the footer space and how to stop overflow of the line items onto the footer

    You have to place the footers in 2 main windows.
    write script to hide the footer if the current page is not last page. Use below script to find the total number of pages and current page in layout:ready event.
    Var no_of_pages   =   $layout.pageCount (  )
    Var curpage = $layout.page  (  ref  (  $  )  )

  • Have a gap in detail of first page and not display group footer on each pag

    Please help me about Memo field in SubReport in CrystalReportXI. I have a SubReport that need to display pageheader, detail, page footer, and  in detail of subreport contains memo field and set the property of this text box to "Can Grow" = Yes .However, CrystalReportX does not support to display  pageheader, pagefooter in SubReport. So. I have created a formular FakePageHeader that has code  as
    "WhileReadingRecords;
    true"
    and group in this field and checked option repeat group header on each page and right click Section Expert->check print at Bottom of page for Group Footer.
    This problem is when I preview Subreport. It display text in group header and a gap in detail of first page and view next page, the subreport display right data of memo field. But the report still not display group footer on each page.
    How do I can remove a gap in first page and display group footer on each page?
    Thanks

    in subreport in format for the memo field uncheck keep object together.
    You can not force group footers to repeat on each page.
    I have not tried this but you might be able to capture the data you want to show in SR page footer and display in main report page footer, using shared variables.
    Ian

  • Want to display footer in last page

    Hi Experts,
    I developed a classical report for service order print.
    The pages increases,  if there are more line items .
    My requirement is to display the footer in the last page only, not all the pages.
    So please help me regarding this.
    Thanks in advance.
    Regards
    Pavan

    Ok So this is a classical report and you need to set the footer only at the last page .
    In ur code use the control break
    LOOP AT ITAB.
    AT LAST.
    write:/ 'Footer text'.  "<---
    ENDAT.
    ENDLOOP.
    I hope you are discussing this about a report only .
    I hope this is not a  script requirement.
    if it is so then
    /: IF &NEXTPAGE& EQ 0 
          whatever footer you want. 
    /: ENDIF 
    Vijay

  • How to display flash file in adf pages

    how to display flash file in adf pages need help

    Thanks all,
    It is resolved.
    the code i am using to display a flash is below.
    <f:verbatim>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version
    =10,0,0,0" width="300" height="300" id="11gR1_aniH_grey" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="wmode" value="transparent" />
    <param name="movie" value="mx2004demo.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#4d5c64" />     
    <embed src="../Images/mx2004demo.swf" quality="high" width="300" height="300" name="mx2004demo.swf" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false"
    type="application/x-shockwave-flash" wmode="transparent"
    pluginspage="http://www.adobe.com/go/getflashplayer" />
         </object>
    </f:verbatim>

  • How to display all data on one page in web app

    Hello.
    So I have web app JSF (IceFaces framework) + JBoss all Crystal Report working perfectly. So I have page with Crystal Report tags (e.g.
    <bocrv:reportPageViewer reportSource="#{crystalReport.reportPath}" ...
    in this report I have table with some data (data from DB) and I want to display this data on one page. Unfortunately now this data are moving to the next page and unfortunately I even donu2019t know how switch to the next page (I see only info e.g. 1with 2).
    So how to display this data on one page if its impossible how to torn on pagination.

    So I canu2019t do this, I canu2019t display all data on one page (until Iu2019m using JSF tags)?
    In JSF tags Iu2019m setting only path to file. In my bean Iu2019m using u201CReportClientDocumentu201D object itu2019s easy way to load report file (u201Copenu201D method) and set parameters (u201CgetDataDefController().getParameterFieldController()u201D method) and also connect to data base (u201Clogonu201D method) but I havenu2019t this property u201CsetSeparatePages(boolean)u201D.
    Maybe Iu2019m doing this wrong and there is a simpler way maybe I can use somehow u201CCrystalReportVieweru201D please give my any advice.

  • How to display query result in seperated page.

    How to display query result in seperated page, if the results are very big (more than 5000 records) and there are so many concurrent users (about 500 - 1000 users).
    Are there any solutions or frameworks?
    Plese help me .........
    thanks,
    --bhasin

    Hi,
    How to display query result in seperated page?I think RowSet will be the better technology to use in this
    situation.For more information on this please visit http://developer.java.sun.com/developer/Books/JDBCTutorial/chapter5.html
    which explains in detail about RowSets.
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support/

  • Any suggestions how to display iframe of sharepoint 2013 page in 2010 page?

    Any suggestions how to display iframe of sharepoint 2013 page in 2010 page?
    keren tsur

    SharePoint by default includes the HTML header X-Frame-Options:SAMEORIGIN which only allows content within iFrames from the same page host.
    You can add
    <WebPartPages:AllowFraming runat="server"
    />
    to the SharePoint 2013 page to allow it to be used in an iFrame.
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • How to print header in first and last  page only in SAPSCRIPT

    Hi!
    How to print header in first and last  page only in SAPSCRIPT,
    in between pages,  I need to print all line items in MAIN window only .
    Thanks in anticipation!
    Aki.

    Hi All,
    Thanks for your early update...but my requirement here is
    I have two pages (FIRST , NEXT ) First is having Header, Main and Footer
    NEXT is having Main and Footer ..I am printing PO here..let us think that my PO is having 20lines items , let us assume that it takes five pages...
    Now how application is printing is ..first set of data is printing in FIRST page and remainiang data distributed to 4 pages printing in NEXT page ..but what my requirement is , I need fifth page print on FIRST page, instead of NEXT page... Ultimately I need last set of data always print in FIRST ie out of 5 pages 1st print on FIRST 2nd 3rd 4th print on NEXT and 5th print again on FIRST .
    hope you this will clear you.
    Thanks!

  • How do I convert [100's of] Pages '08 [3.0.3] documents to Pages 5.0.5 in my new computer running Mavericks?

    How do I convert [100's of] Pages '08 [3.0.3] documents to Pages 5.0.5 in my new computer running Mavericks?

    There is no Pages 5.05 and you will regret converting your old files to the new format.
    Pages 5.2.2 can not open Pages '08 files, you will need to Export the Pages '08 files to Word .doc/x.
    Peter

  • I want to display one field in first page only

    Hi All
    I have a tipical question. I am working on invoice report in which i need to display one field which should display in the first page only. For a second invoice that field should not get displayed. In the first page only it should get display. Is there any workarround for this.
    It would be greate help if anybody suggest the solution for this.
    Thanks in Advance
    Sudheer

    Hi
    Sorry. My Question is:
    I am generating the invoices. If particular invoice lines data extend to next page then invoice header should get repeted in the second page except one field. For each invoice, that filed should get display only first page of invoice and should not come in subsequent pages. For each invoice it should be like this. I am using @section loop to refresh the page numbers for each invoice.
    Is there any work arround to display the partiuclar filed in first page of invoice?
    Any suggestions highly appriciated?
    Thanks
    sudheer

  • Footer for last page

    How to provide footer for last page in areport.

    See the sample program :
    footer will print last page by using at last event.
    *& Report  ZTEST_IEVENTS
    REPORT  ZTEST_IEVENTS no standard page heading
                          line-count 40(2).
    tables : vbap.
    data : begin of i_vbap occurs 0,
           vbeln like vbap-vbeln,
           posnr like vbap-posnr,
           matnr like vbap-matnr,
           kwmeng like vbap-kwmeng,
           netpr like vbap-netpr,
           end of i_vbap.
    data wa_vbap like line of  i_vbap.
    data v_flag type c.
    select-options s_vbeln for vbap-vbeln obligatory.
    start-of-selection.
    select vbeln
           posnr
           matnr
           kwmeng
           netpr from vbap
           into table i_vbap
           where vbeln in s_vbeln.
    sort i_vbap by vbeln posnr.
    end-of-selection.
    loop at i_vbap.
    move i_vbap to wa_vbap.
    at first.
    write:/2 'Order #',15 'Item #',28 'Material #',50 'Qty', 70 'Net value'.
    skip 1.
    endat.
    at new vbeln.
    write:/2 wa_vbap-vbeln,15 wa_vbap-posnr,28 wa_vbap-matnr,
            47 wa_vbap-kwmeng,65 wa_vbap-netpr.
    v_flag = 'X'.
    endat.
    if v_flag ne 'X'.
    write:/15 wa_vbap-posnr,28 wa_vbap-matnr,
            47 wa_vbap-kwmeng,65 wa_vbap-netpr.
    endif.
    at end of vbeln.
    sum.
    skip 1.
    write:/5 'Sub totals', 47 i_vbap-kwmeng,65 i_vbap-netpr.
    skip 1.
    endat.
    at last .
    skip 1.
    sum.
    write:/5 'Grand Totals',47 i_vbap-kwmeng,65 i_vbap-netpr.
    skip 1.
    write:/ 'end of page', 'Footer'.
    endat.
    clear v_flag.
    endloop.

  • How to report header and footers on first and last page only

    Hi
    We are trying to create a report that has a one data header on the first page and another header on subsequent pages then the data body then a footer section on the last page only. If we only have one page of data it works fine but when we move to multiple pages the data body section does not expand to fill the gap and we are left with second header but then a gap before the data.
    We have tried to use anchors but are realy stuck. Any help would be greatly appreciated
    Ian

    Something like:
    LOOP AT t_output1.
      WRITE:/1 vline,
      2 t_output1-ktokd,
      17 vline,
      18 t_output1-kunnr,
      29 vline,
      30 t_output1-name1,
      70 vline,
      71 t_output1-katr1,
      87 vline,
      88 t_output1-land1,
      96 vline,
      97 t_output1-vkorg,
      107 vline,
      108 t_output1-kvgr1,
      118 vline,
    * DV4K934131-Start.
    * 119 T_OUTPUT1-TTEXT,
      120 t_output1-v_text,
    * 150 VLINE.
      255 vline.
    * DV4K934131-End.
    ENDLOOP.
    WRITE:/1 sy-uline(255).
    TOP-OF-PAGE.
      IF p_upda = 'X'.
        v_linsz = 255.
        FORMAT COLOR COL_HEADING INTENSIFIED ON.
        WRITE:/1 vline,
        2 text-h01, "'Sold to/Ship to'
        17 vline,
        18 text-h02, "'Customer#'
        29 vline,
        30 text-h03, "'Customer Name'
        70 vline,
        71 text-h04, "'Customer Status'
        87 vline,
        88 text-h05, "'Country'
        96 vline,
        97 text-h06, "'Sales Org.'
        107 vline,
        108 text-h07, "'EST Status',
        118 vline,
        119 text-h08, "'Change History',
    * 150 VLINE.
        255 vline.
        FORMAT RESET.
        WRITE:/1 sy-uline(255).
      ENDIF.
    Rob

  • Need idea on how to replicate muti/multi choice form

    I am working on trying to "computerize" a set of NCR forms we use for Home inspections.
    So far, so good.  I have check boxes, radio buttons, and more....
    BUT...
    I have a lot of lines that are multiple/multiple choice entries that work fine on paper, but I can't figure out how to present them on a electronic form...
    Example:
    Oven/Cooktop
    [ ] Deterioration/Damage/Not Functional/Unsafe/Near End of Lifespan*
    [ ] Not Inspected (power/gas off) [ ] Upper/lower Element-burner - not functional [ ] Heavy Corrosion/Wear
    [ ] Recommend anti-tipping device (2) [ ] Gas shutoff valve not visible / none (2)(4)
    On paper, I could select (check) the initial box, then circle "Damage " and  "Near end of Lifespan"
    Without creating a checkbox for EVER option, does anyone have an idea about how to present these type multi-option options.
    I have 16 pages PACKED with choices like this.  Pull downs don't help me much, as then the user can't see all the options.
    We will use Pull downs for some of the canned comments, and other field type for simple (short) lists...
    PS...thanks to this forum I figured out how to have text fields appear & disappear based on check boxes. Anytime there is a *,2 or 4 I need a comment to appear on the summary page...now if only I can figure out how to make the summary page look nice with missing fields....

    One possible option is to use a button that trigger a pop-up menu to open,
    where the user sees all the options at once and can select one of them.
    This would require a bit of scripting, though, and the only advantage over
    a drop-down menu is that all the options are visible in a single window, as
    opposed to a scrollable list.

  • Need idea on how to do question and answer program

    I want to create a troubleshooting program where it asks the user questions until its drilled down to an appropriate answer.
    I've done this with a web server before but I can't seem to figure out how to do it in a program without involving many many forms. Any ideas on how to do the UI?
    Thanks!

    Building an expert system is not a trivial process so for a commercial app you'll need to do some research. For an internal app you should probably use a database. For a school project you can get away with storing the data in a file that is loaded into
    memory (or simply building the data in memory directly).  In any case you'll need to define a table of questions.  If you support questions with fixed answers then you'll need a separate table for the answers associated with the questions. 
    If questions can be different types (as mentioned previously) then you'll also need to track the question type with the question.  For the relationship between questions you can go different ways depending upon your requirements. If question 1 with answer
    A goes to question 2 but answer B goes to question 3 then you can create a simple reference table that indicates what the next question is given the current question and answer, basically a state machine.  If a single answer opens a whole series of questions
    then you might do better to group the questions together and manage the transition between groups of questions.  It really depends upon your requirements. You'll want to research state machines to implement this though.
    On the UI side you really don't need to dynamically create anything.  The only thing that changes between questions is the text and possibly the answer format (if you support multiple questions). As I mentioned earlier you can create a separate container
    (Panel) for each question type and then show or hide the container based upon the type of question (from your database data).  This eliminates the need to dynamically create the UI.

Maybe you are looking for