Want to hide a field in the last page of report

Hi All
I have an issue .. can anyone of the oracle techies give me a solution for this ..? pleeaassee
The issue is that let us say i have a report for 5 pages. I have placed a field on the margin of a report to display CONTINUE.. . Now we dont want this field to be displayed when the report is on the last page. We tried of setting property of the field Print on to All but last page but it is not accepting that
can anybody provide a solution for that ..?
Thanx in advance
Hari

The problem you're hitting is that the margin area is formatted before the body area in the report. Since this is the case, you don't know if you are on the last page since the body has yet to be printed when you print your "continue" column.
There are a several ways to accomplish what you want:
- Guess whether it is the last page and print based on your "guess"
Normally you'd use a running count along with a total count to see if you've printed the last instance of the repeating frame and are hence on the last page. Since your object is in the margin rather than the body, you'd need to estimate how many records will fit on the page and if there are less then these many records left then you shouldn't print the "continue" field.
This can be tricky to do if your frame is variable sized so you don't really know how many instances of the repeating frame will be on each page.
- Place the "continue" field in the body rather than the margin
To do this, you need to create a fixed sized frame that all your normal layout goes into. This should be sized to your typical page size. Then create the "continue" field after the fixed sized frame (you may need to re-size the body area - do this in "margin" mode). Set the print condition to "all pages" against the "continue" field so that it prints on every page. You can then use the running count/total count method to determine if the last repeating frame has been printed when you come to print your "continue" field.

Similar Messages

  • Add a field to the last page of a document file only

    Hello,
    I currently have a script which will add signature and text fields to the first page of a document.
    The script is required to specify the "last page" of the document and not the page number, as each file will vary with the number of pages.
    The script is in run in batch processing on multiple files which are not open (usually 50 at a time).
    If anyone can please advise how to modify the script I will be most grateful.
    // Create Date field dynamically for employee signature field
    var f = this.addField("Todaydate", "text", 0,
    [60, 54, 135, 75]);
    f.userName = "Today's Date";
    f.value = "Automatic Update";
    f.readonly = true;
    f.fillColor = color.ltGray;
    // Create signature field dynamically for employee
    var f = this.addField("mySignature", "signature", 0,
    [120, 85, 330, 105]);
    f.setAction("OnFocus", "var f = this.getField('Todaydate'); f.value = util.printd('d/mm/yyyy', new Date());");

    Thank you very much for your help, I really appreciate your quick response.
    The script has been modified as you suggested and the fields are now added to the last page of each document and is working perfectly.
    I have included the modified script as follows for reference:
    // Create Date field dynamically for employee signature field, add fields to the last page of every file
    // Determine the last page of this document
    var page = this.numPages - 1;
    var f = this.addField("Todaydate", "text", page,
    [60, 54, 135, 75]);
    f.userName = "Today's Date";
    f.value = "Automatic Update";
    f.readonly = true;
    f.fillColor = color.ltGray;
    // Create signature field dynamically for employee
    var f = this.addField("mySignature", "signature", page,
    [120, 85, 330, 105]);
    f.setAction("OnFocus", "var f = this.getField('Todaydate'); f.value = util.printd('d/mm/yyyy', new Date());");

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

  • How to print text or field (inside a rep fram)on the last page in report 6i

    Hi Everyone,
    I want to print the text on the last page.
    my text is inside a repetating frame.
    as i want to display page no in the filed
    and if it is a last page, display page number appended with Last
    so it will look like
    for 3 pages
    on the first page
    1
    on second page
    2
    and on last page it should display
    3 Last

    You cannot know if you are on the last page or not. See this similar thread: Get value of total pages variable
    Why not put the page number in the margin like this:
    Page 1 of 3
    Page 2 of 3
    Page 3 of 3
    You do that by creating a text field in the margin. Enter this text:
    Page &<PhysicalPageNumber> of &<TotalPhysicalPages>

  • In ALV report.The user wants to hide specfic fields

    Hi
    In ALV report.The user wants to hide specfic fields  but the user must be able to add these fields to the report:
    can any one give the suggestions

    in reuse alv list display or grid
    i_save  = 'A'.
    now user can choose the layout.
    for hiding
    in fieldcat
    wfieldcat-No_out = 'X'.
    regards
    shiba dutta

  • How to hide fields on Repetitive Area Footer on the last page?

    Hello,
    How can I avoid printing some fields on the last page, when this fields
    are on the Repetitive Area Footer, and the Repetitive Area Footer is
    defined to print on all the pages? I was hoping to do this with fileds linked
    to (ContinueNextPage) field, but it doesn't work!
    Regards,
    Júlio Pinho

    hI Júlio Pinho,
    i think, it is not possible in Repetitive Area Footer on PLD.
    but, it is possible in Page Footer on PLD.
    IF you dont need print some Fields in Last Page on printout.
    Try this,
    ->> Open the require PLD.
    ->> Create require Fields in Page Footer.
    for example,
    => Create DocTotal Field in Page Footer on PLD.
    => Link to SystemString (ContinueNextPageNotice) Formual FieldID in DocTotal Filed.
    Save and Run the Print Preview.
    Regards,
    Madhan.

  • How to hide a field on the web ui by codes?

    i want to hide a field on the web ui dynamic in my program? how can i do ?

    Hi,
    You can achieve the hiding of a field very easily using the BSP workbench.
    You can find out the relevant UI component, Enhancement set and View by pressing F2 button on the relevant field for which you wnat to discover the related UI Class.
    Then using the tcode:- BSP_WD_CMPWB you need to enter the BSP Workbench.
    In the workbench, enter the values of the Component and the Enhancement Set and click on display.
    Then in the next screen you will see all the relevant sections for that Component.
    Expand the Views.
    Double click on your view, which you figured out at the very beginning.
    The relevant view opens.
    On the right side click on the tab "Configuration".
    Cick on "Choose Configuration"  to chosse your relevant configuration.
    The configuration window opens, where you can hide the relevant fields.
    Hope this helps.
    rgrds,
    Randhir

  • Can we hide a Field in the IDOC

    Hi,
    I want to hide a Field in the Idoc's. Is this POssible ?
    If so how? Can any body tell me how to proceed ..
    With Regards
    Ranjith Singh

    Hi Eswar,
    Thanx for replying..
    But here the it says "Madatory Fields". As i am doing it for the first time i am not getting it..
    Can u please explain it in Detail.
    Thanx & Regards
    Ranjith Singh

  • Can you delete the last page of a document with a script?

    Hello, I have been building a script over the last week to help me remove formatting and reapply some of that formatting on a large number of files. I am still learning alot about how to build scripts and what the commmands are but I am almost doen with everything I need to put in it. One of the last things that I want to add is to delete the last page from the Indesign file whether it has content or not. Is this possible? Can anyone point me in the right direction? Thanks

    Something like this:
    if (app.activeDocument.pages.length > 1)
         app.activeDocument.pages[-1].remove();
    First check if document contains more than one page, and if does, remove last page.
    Hope that helps.
    Marijan (tomaxxi)
    http://tomaxxi.com

  • How to display PDF in slideshow, without returning to the first page or stall/halt on the last page?

    Hi,
    I want to display PDF's with multiple pages as a slideshow.
    This is possible with a default Adobe Reader and have this working for ONE pdf file.
    But I want do display multiple PDF's as a slideshow, the one after the other.
    In Adobe Reader you can define to return to the first page again or it automatically 'stalls/halts' at the last page.
    But I want Adobe Reader to close after the last page is displayed so it continues (in a simple DOS-script) with a second, third, etc. PDF to be displayed.
    Is this possible?
    What kind of simple DOS-script kan be used or an other reader/utility?
    Thanks in advance!
    Gunther

    Hi Bernd,
    I was looking for ways to script this kind of solution.
    But do not have good results.  There are tools to combine pdf's into one large pdf - but mostly to be selected by hand.
    We need it in a scriptable way to automate.
    Additionally, we want to be able to combine different types of documents to rotate as a slide show (so not only PDF's but also pictures or other output).
    If you or someone else have such scripts, it will be highly appreciated.
    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

  • Suppress a field in the page footer unless it's the last page of the group

    Hi,
    I have a report set up where one can pull invoice information.  There is a page footer used for every page which contains a field that I only want visible when it is the last page of the group.
    For example, one might pull several invoices, each invoice being its own group.  A field would be suppressed in the footer unless it is the last page of that particular invoice.
    Is this something that can be done in Crystal Reports XI?
    Thank you.

    Hi,
    Alright, it's a bit rusty but here's how you can do it:
    1) Create this formula and place it in the Report Header:
    whileprintingrecords;
    numbervar n1 := groupnumber;
    2) Create this formula and place it in the Group Footer:
    whileprintingrecords;
    numbervar n := groupnumber;
    3) Create this formula and place it on the Page Footer:
    whileprintingrecords;
    numbervar n;
    4) Right-click the above formula (Formula on the Page Footer) and select Format Field > Common tab > click the formula button beside 'Suppress' and use this formula:
    numbervar n1;
    numbervar x;
    if currentfieldvalue <> n1 then
      x := 1;
      true;
    else
      x := 0;
      true;
    5) Right-click the field that you wish to always suppress except on the last page and select Format Field > Common tab > click the formula button beside 'Suppress' and use this formula:
    numbervar x;
    if x = 1 then true;
    Let me know how this goes!
    -Abhilash

  • I want to display the Terms of my Order Purchase only at the last page

    I 'm new in xml publisher and i'm doing a template (order purchase). I want to print a terms only in the last page, in the end of each order number.
    I have this example:
    group G_CABECALHO by NRO_OC
    NR_OR: NRO_OC PAGE: <?fo:page-number?> / <?fo:page-number-citation:xdofo:lastpage-joinseq?>
    ITEM DESCRIPTION UNIT PRICE QUANT
    F NRO_LINHA_OC ....TAXABLE_FLAG E
    section break
    <?start@last-page-first:body?>
    TERMS AND CONDITIONS
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    <?end body?>
    page break end G_CABECALHO by NRO_OC

    Hi. The layout is not correct, i generate another order purchase with a lot of lines. The first order the layout is ok, but the second you will see the TERMS in the same page. What i need is to have the TERMS in every end of the orders and to have a fix line border of the layout.
    LAYOUT PAGE 1
    | ORDER 1 |
    | ITEM |
    | 1 |
    | 2 |
    LAYOUT PAGE 2
    | TERMS |
    | XXXXXXXXXXXXXXXXXXXXXX |
    | XXXXXXXXXXXXXXXXXXXXXX |
    |XXXXXXXXXXXXXXXXXXXXXX |
    LAYOUT PAGE 3
    | ORDER 2 |
    | ITEM |
    | 1 |
    | 2 |
    LAYOUT PAGE 4
    | TERMS |
    | XXXXXXXXXXXXXXXXXXXXXX |
    | XXXXXXXXXXXXXXXXXXXXXX |
    |XXXXXXXXXXXXXXXXXXXXXX |
    tks,
    Elene

  • I want to hide certain pictures in the "Gallery"so only I can see when I want.  How can I do this?

    I want to hide certain pictures in the "Gallery"so only I can see when I want.  How can I do this?

    Sometimes depending on the SD card (you set the sd card to be where photos are sent) and then place a security code on the files and photos. I know this can be done on a computer not 100% sure about a cell phone.
    Another option is to have the photos sent to Picassa (going to be Google+ shortly) or Photo bucket or other web spots for photos or even Drop Box etc. this way your photos are away from the phone, and only the ones on the phone you don't care about remain on the cell
    So I hope it works out ok for you.

Maybe you are looking for

  • MacBook Pro mid 2014

    Received my new 2.8 GHz MacBook Pro (mid 2014).  Had a 2.3 GHz (early 2011) MBPro. Note: both have 16 GB RAM running OS X Mavericks 10.9.4.  Nothing drastic in the looks department until you look close.  This post, isn't about esthetics (which are gr

  • Linking Lifeblog to Contacts on the N70

    Hi I am running Lifeblog 1.7 on my N70. I have been sending and receiving texts and taking pictures on it since before Xmas, so the database has built up to a reasonable size. But I only very recently got round to synching my Contacts onto the phone.

  • Configuration related PP order closing.

    Hello all SAP Controlling Expert, I would like to know, is there some configuration of CO module that related to PP order completion status process? Such as  if PP order status is ...... CO Process can be continued or can not continued. Thanks in adv

  • Error when checking package - SMLT

    Hi im trying to oimport new languanges into the system currently it only have en, de, i wan ti import addtional vi , zf, zh.. rscpinst is done, and profile parameter is updated. Languange files are inside EPS/in folder, bot ecc languange  and ehp4 la

  • Restart -- Magic Mouse does not auto-reconnect

    After I updated OS from 10.6.4 to 10.6.5 with the combo updater, upon restart my Magic Mouse no longer auto-reconnect via Bluetooth. I even applied the combo updater for the second time. But, every time I restart my Mac, I have to use a USB mouse to