How to write a subform @ bottom of last page without reserving space for it

Hello gurus,
I have a small challenge for you guys :-):
Iu2019m developing an adobe print form for an invoice and have to write a subform at the bottom of the page but only if it is the last page. Said like this the requirement doesnu2019t seem so special at all which I agree with you but, if add to the problem that I must not reserve a place (on master page) to it so I can minimize the paper loss and use the maximum space of the page for the invoice items/taxes etc (for the container) and only write the subform at bottom if it is available space left it turns the problem a little bit more complex, isnu2019t? If case there isnu2019t available space in the u201Ccurrentu201D last page to write it I should provoke a page-break to write it at bottom of the u201Crealu201D last page.
Iu2019ve tried to put the subform on the master pages (FIRST and NEXT) overlapping the end of the correspondent containers and hide it for all the pages that werenu2019t the last one but in some cases the subform content is overlapping the invoice items.
Do you have any suggestions how to achieve this?
Thanks in advance.
Regards,
Alexandre

I don´t have a working demo of that two master pages approach. Was just an idea and I wanted to know if it works.
But I have one more, less experimental idea, which I have implemented some time back and am sure, it works.
Follow me:
- fill the data into the table (done automatically, of course, but a must for the event to work = pick event after you got the data into the table...) (not a real work)
- count the number of lines (easy, piece of cake)
- get the height of one row (easy, piece of cake)
- compute how many pages are occupied by the table lines
- compute how many lines are present on the last page
- compute how many lines are needed to make the last page "full"
- use the last number to compute a height of a blank subform (no content but has size), set the height, which will make the "footer" (the one we are talking about here) go to the bottom of the page
Every needed reference is here:
http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
Especially the last chapter of the JS reference.
Regards Otto

Similar Messages

  • 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 to get to the bottom of a page fast on the iPad Air"

    how to get to the bottom of a page fast on the iPad Air"

    thank you!  I am admiring my three dots and considering which cat's picture I should upload as my avatar.
    yes, the scrolling down in sections I have managed.  I thought you were saying one set of double taps would go straight to the bottom.
    here's another question for you:  on my iMac by holding the command key down I can make a link open in a new tab.  Do you know if there is a way to do that on the iPad?

  • Itunes is copying/converting 500gb of music from .wma to .m4a files that are on an external drive onto my laptop which doesnt have enough room. how do i reroute these newly converted files somewhere with enough space for them?

    itunes is copying/converting 500gb of music from .wma to .m4a files that are on an external drive onto my laptop which doesnt have enough room. how do i reroute these newly converted files somewhere with enough space for them?
    new to itunes, used windows media player before that and always ripped music directly to an external hardrive and accessed it through the player. now that i downloaded itunes it is taking from the external hardrive and copying a second file for each song onto my lap top hard drive which does not have the capacity for all my music. as itunes converts music files i want them saved back onto my external drive or another location i have space for rather than the lap top. how do i change the setting to move the itunes media folder to another location. assuming that hitting copy and past and dropping it in a random location will cause a few errors.

    When I have done this, all I did was network the two machines and copy the contents of the iTunes folder to the other machine, and that's it.
    My understanding (which may not be 100% correct) is that the one file that is absolutely necessary is iTunes Library, and that the XML file is actually a copy auto-generated from the iTunes Library, appearing in a different format only for non-iTunes apps that take advantage of the iTunes Library data.
    As far as I know, if you simply have the Library (database) file and all your original music files, iTunes on that computer should operate as it did on your old computer. I believe that the Album Artwork, Genius Data, and XML files can be regenerated from the Library file. Not sure about the Extras file.

  • How do I change the default setting from Pages to MS Word for Mac?

    How do I change the default setting from Pages to MS Word for Mac?

    https://discussions.apple.com/message/13008817#13008817

  • How can I copy tables from Numbers to Pages without formula?

    hi everyone
    i need help
    How can I copy tables from Numbers to Pages without formula in the cells?

    Ok... I see your problem... when pasting into Pages, the formulas from Numbers are included. Perhaps this is really more of a Pages question (in which case I'm far from expert). A couple of ideas:
    • In Pages, try "Edit"/"Paste and Match Style", which may insert tab delimited cell values (no formulas). Then, if you want the table format back, select these newly pasted tabbed values and use Page's "Format"/"Table"/"Convert Text to Table"/
    • In Numbers, before copying, make a temporary table of the plain values first, then copy and paste that into Pages. To do this, select the range of cells you desire in the Numbers and "Edit"/"Copy". Then "Edit"/"Deselect All" and "Edit"/"Paste Values" and "Edit"/"Cut". Now just a table of values is on the clipboard and you can head over to Pages to paste.

  • How do I synch when my ipod doesn't have enough space for all my imusic?

    How do I synch when my Ipod doesn't have enough space for all my imusic?

    Create one or more playlists containing a selection of music you want on the device and sync those rather than the entire library.
    tt2

  • Place a subform at the bottom of Last page

    Dear all,
    I want a subform to come at the extreme bottom of the last page.Suppose in last page fields are upto middle of the page but the required subform should only come at extreme bottom of the page not to adjacent to the end of the fields.How can I do it?If any body can please help me.
    Thanks in Advance
    Rakesh

    Hi Rakesh,
    I am not quite sure what you are attempting to do. But here is something to think about:
    I think what you have is a flow subform and what happens here is all fields within will push up against each other. What you want to do is to enclose your subforms and fields within a position subform.
    In the hierarchy tab, you should see:
    Page (position content)
    flowSubForm (flow content)
    < some fields >
    positionSubForm (position content)
    < some fields >
    You should be able to position the 'positionSubForm' to the bottom of the page as long as the bounds of the 'Page' subform extends to the bottom of the page.
    John

  • How to print a label in the last page of the report

    Hi, I have a report af bottom page I trid to put a label, the label is in the margin, but when I change the print condition send me a error, illegal print condition, how can I print this label only in the last page at the botton of the page
    Thanks

    Herbe,
    You can do this using format trigger
    Please see the building reports manual / Tutorial for details
    at http://otn.oracle.com/docs/products/reports/content.html
    Thanks
    The Oracle Reports team

  • Printing report footer at bottom of last page

    I have a problem with a report I am trying to rebuild - the report is the AR invoice, and requires a footer to be printed at the bottom of the last page. I can get it to come out on the last page, but not anchored to the bottom of it.
    The previous version worked by using a format trigger on the footer and running the report twice, first time poplating a table with page numbers and then second time printing on the last page. This is horribly inefficient and time consuming.
    Is there any way to get this to work in a single pass of the report?

    Hello,
    If you have access to metalink, you can use the example in the note :
    Note.253881.1 How to Create a Report with a Frame Only on the Last Page at a Fixed Position:
    Regards

  • How to remove item header on the last page

    Hi,
    We have an adobe form where, on the last page a BIG footer gets displayed.
    Now if the number of line items are not enough, they wont go till the last page, but the last would still be printed with no line items, just to accomodate the huge footer that we want to be displayed only on the last page.
    Now in doing this, we want that if there are no line items on the last page, the item header should not be displayed. We are not sure how do we do this.
    The same is accomplished in SAP Script, and there they are using WRITE_FORM with type DELETE. So anything that prints after that even on a new page, the item header wont get printed.
    Please suggest how do we do this in Adobe Forms.
    Thanks,
    Tirth

    Hi Mate,
    there is a contradiction then.
    in table header rows definition, we specify show header in subsequent pages, then the header appears only if there are items displayed on that page. in your case the table header shouldn't be displayed then please check why its comming out there...?
    well in any case if you want the script it would be like below on layout ready event of the header row.
    // run the below script in last page
    if(xfa.layout.page(this) == xfa.layout.pageCount()){
    var pageSFList = xfa.layout.pageContent(xfa.layout.page(this) - 1, "subform", false);
    var pageTotal = 0;
    // for each subform named <Item>, which is the data row of the table
    for (var i = 0; i < pageSFList.length; i++)
         var sf = pageSFList.item(i);
            if(sf.name == "headerrow"){ // if header row is found then chec is data row is visible and set its presence accordingly
               if(sf.parent.item.presence == "hidden"){
                   sf.presence = "hidden";
         if (sf.name == "Item") // if data row itself is found set its presence accordingly
           sf.parent.headerrow.presence = "visible";
    you might need to tweak the code according to your element names.
    hope this helps,
    Cheers,
    Sai

  • How to print a field on the last page of Smartform?

    HI FRIENDS,
    I NEED TO PRINT ONLY ONE FIELD IN LAST PAGE OF FORM SMARTFORM
    HOW DO I CHECK last page. I tried WITH THE FIELDS OF TABLE
    SYSF BUT NOT worked.
    Thank you.
    ROGERIO VAZ

    Hi,
    Goto the conditions tab of that window and enable the check box for Only after the end of main window.
    This will surely print your field in the last page.
    try this and get back to me if any issues.
    Regards,
    Anand.

  • How to print a field on the last page of Smartform with more  of 2 pages?

    HI FRIENDS,
    I NEED TO PRINT ONLY ONE FIELD IN LAST PAGE OF FORM SMARTFORM
    HOW DO I CHECK last page. I tried WITH THE FIELDS OF TABLE
    SFSY BUT NOT worked.      
    The form has  more of  2 pages.
    Thank you.
    ROGERIO VAZ

    Hi ,
    You dont have to hard code anything to achieve this functionality,
    just create a window and in that window define a text element to print
    that variable.In the conditions tab of that window check the check box
    "only after end of main window".i think you might have used a main window,
    so irrespective of the no of pages the smartform prints,it always displays that
    field in the last page of the smartform.
    regards,
    srikanth.

  • 2 websites are open simultaneously. How can I close one of the websites to have more space for the otheer websites

    Each time I use Firefox to open a news website A, another news website B appear on the left of A. How can I close A in order to have the full screen for B.

    Do a malware check with some malware scan programs. You need to scan with all programs because each program detects different malware. Make sure that you update each program to get the latest version of the database before doing a scan.
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and Searches are redirected to another site

  • How do I remove content from my web page without deleting it?

    Hi,
    I previously created a webpage using iWeb on the domain name that came with dot.mac (now Mobile Me). I want to remove it from the online page without deleting it (I may want to use the content later). I've used other software at work (Morello) and there you would "archive" it. Can anyone please advise how I do it on my Mac?
    Thanks v much,
    Tony

    Tony:
    You can cause an entire page to not show in the site by using the Inspector/Page/Page pane to remove its link in the navbar. That would preserve that page until you decide to reintroduce it into the site.
    As for part of a page, the only way I could think of doing that is duplicating the page and remove the duplicate from the navbar. Then edit the original page to remove the content you want gone.
    OT

Maybe you are looking for