Show last page in a report

I have made a discussion forum with APEX and I want to have a list of links on the main page that shows the last 5 threads in this forum.
When the users clicks on one of these links they should be taken directly to the last page in that thread. The thread report shows 10 rows per page.
The pagination links for one of these threads looks something like this:
f?p=100:211:2009318822509058:pg_R_4648208133853790:NO&pg_min_row=31&pg_max_rows=10&pg_rows_fetched=10
My link looks like this:
f?p=100:211:2009318822509058::NO:RP:P211_THREAD_ID:6236&cs=3A81ACF09A25F020929B2C59DE8C1ED94
Is it possible to combine these two links so the user is taken to the last page directly?
I have tried something like this but it is not working
f?p=100:211:2009318822509058:pg_R_4648208133853790:NO&pg_min_row=31&pg_max_rows=10&pg_rows_fetched=10
:RP:P211_THREAD_ID:6236&cs=3A81ACF09A25F020929B2C59DE8C1ED94
Regards
Trond

HI Machaan,
thanks To reply me.
i have to created an dumy application .
Application 12289
on page no -6 ,when I click on TREATMENT DETAILS LINK IN REPORT THEN CONTROL MOVE ON PAGE NO -7 .
There are two region firsrt is report region AND second one is html region .There is a button in Add Patient Re Visiting Details region ADD NEW MEDICINE .
WHEN I CLICK ON THAT BUTTON CONTROL MOVE TO PAGE NO - 5 ,AFTER ADDING MEDICINE ,WHEN YOU CLICK ON BACK BUTTON THEN CONTROL MOVE ON PAGE NO 7 ,
BUT NOW THERE IS NO REPORT DISPLAY ,SHOW ONLY NO DATA FOUND IN REPORT REGION .
I WANT THIS REPORT WHEN I CLICK ON BACK BUTTON ON PAGE NO -5 .
THAT IS MY PROBLEM.
MY LOGIN DETAIL :-
Workspace :OFFICE MANAGEMENT SYSTEM
User ID :[email protected]
Password : aashma
HOW CAN I SOLVE THIS.
THANKS

Similar Messages

  • How can I print a label on the last page of the report in the margin

    I would like to display a label on my report but has to appear only on the last page of the report in the margin area or as a footer. I have tried using the solution below that I came across in this forum. This solution only worked if I put the label as a report trailer and not in the margin of the main section of report. The problem of putting the label as a report trailer is that it will only appear at the end of the report on it's own page, i.e. on a new page. I would like the label to appear at the end of the report, on the last page which has the other report details and not to appear on a new page on its own. Could you please help? Thanks.
    1. Create a dummy query, like
    select 1 dummy
    from dual
    2. Create a package spec:
    PACKAGE pkg_globals IS
    totalPages number(3);
    END;
    2. Create a repeating frame and field for this dummy at the end of the report layout.
    3. Create a format trigger for this frame:
    function R_1FormatTrigger return boolean is
    begin
    SRW.GET_PAGE_NUM(pkg_globals.totalPages);
    return (FALSE);
    end;
    4. Create a format trigger for your margin field:
    function F_1FormatTrigger return boolean is
    pagenum number;
    begin
    srw.get_page_num(pagenum);
    if pagenum = pkg_globals.totalPages then
    return (TRUE);
    else
    return (false);
    end if;
    end;

    user8655468 wrote:
    I would like to display a label on my report but has to appear only on the last page of the report in the margin areaCreate a fixed frame at the bottom of margin area and inside the frame put your label.
    set the frame print object on: Last page
    Hope this works..

  • Report Builder - Last page issue and Report Footer issue

    I am using ColdFusion 9 Report Builder, am new to this product and encountering 2 issues.
    Issue 1 - I have a field that I would like to print on the last page of my report.  How can I determine the last page?  I initially tried using a calculated field set to the 'highest' calc.Page_Number.  Then I could compare the current page to the last page in the 'Print When' property.  But calc.Page_Number can not be used in a definition of a calculated field.
    Issue 2 - Depending on the amount of report detail, sometimes my report footer prints alone, without a page header and page footer.  The report includes this page in the total number of pages.  For example, if it is a 2 page report, the page header on page 1 will display Page 1 of 2.  Then the only data on Page 2 is the Report Footer.  No page header or page footer prints. 
    Any assistance on these issues would be most appreciated.  To date, using the Report Builder has not been easy.

    To issue 1: The report contains a report band called report footer. thsi is always at the last page. The report footer band initially is collapsed, so you have to expand it by dragging the last band divider.
    To issue 2: I guess this is a page break calculating error when detail data reaches really near the page footer area.
    Try some experiments with different setting of the following properties/issues:
    - in elements, e.g. calculating fields in the bands between report detail and page footer: In Properties / Print Control / Printing Options: Activate the option "Remove line when blank". This will remove the whole report band area if this field is blank. May save some empty space.
    - try to remove unused empty space between detail rows.
    - try to resize and reposition all detail fields so that they snap to the grid.
    Best regards

  • How do I place a SubReport on the last page of a report?

    Post Author: KPichelman
    CA Forum: Crystal Reports
    I am using CR 9.0 and C# to create a report.  Now I need to place a subreport (a signature box) on the last page of the report and I seem to be having difficulties.  I will not know the number of pages until runtime which I seem to be able to get using:
    int rptLastPageNum;ReportPageRequestContext req = new ReportPageRequestContext();rptLastPageNum = oReport.FormatEngine.GetLastPageNumber(req);
    Now, how do I place a subreport in the lower right corner of page "rptLastPageNum"?  Is it possible to do it in the report itself or is there a way to do it in my C# code?  One solution would be to put it in the footer of the report but unfortunately that doesn't work for us as there is another subreport to the left that will need to be shown next to our subreport, not above it.Thanks!!

    Post Author: heathdallison
    CA Forum: Crystal Reports
    have you tried making a section in your report footer to hold your subreport and then using the section expert to make that supress using something like:{current page number}  < {total page number}

  • How to display grand total only on the last page of my report

    Hello
    I need to display the grand total amount of the invoice only on the last page of every report. If the report has 1 page then the grand total will be displayed on the 1st page. If the report has 2 pages then a subtotal will be displayed on the 1st page adding up all the amounts on page 1 only, and the grand total will be displayed on the 2nd page, adding up all the amounts of page 1 and 2. If the report has 3 pages then the a subtotal will be displayed on page 1 adding up all the amounts of page 1, and another subtotal on page 2 adding up all the amounts of page 2, and the grand total are displayed on page 3 adding up the amounts of every page.
    supplier amount
    xx 100
    yy 100
    subtotal 200
    page 1 of 2 --here i need to display only the total amounts of page 1
    supplier amount
    subtotal brought forward 200 --then i need to bring total of page 1 over to page 2
    qq 300
    zz 300
    total 800 --here i have reached the end of the report and  
    need to display the grand total
    page 2 of 2
    --Currently i am displaying this on my report
    supplier amount
    xx 100
    yy 100
    total 800 --this one gives the problem cause it displays the grand total
    ---------- on page 1 of 2 even before you can see the amounts on the
    next pages
    page 1 of 2
    supplier amount
    qq 300
    zz 300
    total 800

    put the grand total in a frame and set it to print on the last page of the enclosing object.

  • How to Get last page number in report 10g

    I want to get last page number in report but Current page number found from srw.get_page_num(n)
    but i want to get last page number for conditional formating like this
    srw.get_page_num(current_page)=last_page
    pls help me how can get last page number;
    pls help;
    thanks in advanced;

    Hi,
    you can use the Property Print Object On for this.
    Regards
    Rainer

  • Fields only on the last page of a report

    Hello everybody,
    I have a report region1, the report can contain many records thus I will have to paginate it....
    In the same page, I must have another region2 with some fields on it, but theses fields must appear only on the last page of my report,
    I don't succed to find a condition to apply to region2 in order to make it appear only on the last page of the report region1.
    Any help on this ???

    place those fields outside the repeating frame.
    Draw another frame . Place repeating frame inside it. place those fieds in the outside frame at the end and runthe report

  • How to print based on the logic that it is the last page of the report

    HI
    I want to print something on the last page.For example,I have to print a image(signature) file on the last page.How can I have the logic that it is the last page or any counter or variable to find that it is the last page of the report??
    Thanks in advance.

    Is there an example of this posted somewhere that actually works?
    I have used this exact syntax in everyway, every location possible and it either locks my MSWORD window on preview or throws a Java error.
    I am using the most current BIP template builder v10.1.3.2.1
    Thanks,
    Scott
    Sample files below:
    <?start:body?><?for-each:G_TEST?>
    <?TEST1?> <?TEST2?>
    <?TEST3?>
    THIS SHOULD PRINT ON ALL PAGES
    <?start@last-page:body?> PRINT ONLY ON THE LAST PAGE<?end body?>
    <?end for-each?><?end body?>
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <TEST>
    <LIST_G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    </LIST_G_TEST>
    </TEST>

  • Displaying Footer on the Last Page of the report

    Hi Experts,
    We have a requirement to display footer on the last page of the report only.
    Could you please guide how to acheive this.
    Thanks in Advance,
    Cheers,
    Andy.

    Pls see this Blog.It may help you
    http://blogs.oracle.com/xmlpublisher/2007/03/30/
    Thx
    Rahul

  • Items must appear only on the last page of a report region

    Hello everybody,
    I have a report region1, the report can contain many records thus I will have to paginate it....
    In the same page, I must have another region2 with some fields on it, but theses fields must appear only on the last page of my report,
    I don't succed to find a condition to apply to region2 in order to make it appear only on the last page of the report region1.
    Any help on this ???

    Assuming you have other content, you could:
    set the Print Object On property to be last page.
    anchor it to the main content that repeats on every page, so this frame only prints after the other one is done
    Assign a format trigger where you make it display only if current page is equal to total number of pages
    create a trailer and move the frame there

  • How to remove header on last page of the report?

    I am working on a RTF template for PO report. This is the format of the rtf i have.
    <?start:body?>
    <?for-each@section:G_HEADERS?>
    All header fields
    <?for-each:G_LINES?>
    All Line Fields
    <?end for-each?> --Line End
    <?end for-each?> --Header End
    <?end body?>
    Give Section Break <Next Page>
    Terms and Condition should come here on a new page
    When I insert a section break for new page, the header that is on my 1st page of the template is repeating. Is there a way that I can stop the header from repeating on the last page? Please help me out with this issue.
    Thanks,
    Swetha

    Thanks jimr for the response. This solved my problem.
    The steps I followed are:
    Click on section2 header. click on 'Link to previous'button on the headers toolbar so the link between section1 and section2 is removed.
    Remove the header on the new page (section2). The header on the 1st page is retained while the header on the 2nd page is removed.
    Thanks,
    Swetha
    Message was edited by:
    Swetha

  • 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

  • How to show total pages in a report

    Hi Experts,
    I have to show the pages in the formart current page/ Total pages. I am not able to claculate the total pages. Please help me and give the code.
    Thanks a lot.
    Krishan

    The code below shows how to display the total number of pages in a report like "Page 1 of 8."  However, it doesn't work if you execute the program as a background jobs.
    CODE
    " Declare a variable
    DATA L_PAGE_COUNT(5) TYPE C.
    "  Copy this code to the end of program
    "  Page count will be printed on each page here
        WRITE SY-PAGNO TO L_PAGE_COUNT LEFT-JUSTIFIED.
        DO SY-PAGNO TIMES.
            READ LINE 1 OF PAGE SY-INDEX.
            REPLACE '-----' WITH L_PAGE_COUNT INTO SY-LISEL.
            MODIFY CURRENT LINE.
        ENDDO.
    TOP-OF-PAGE.
        WRITE: /(70) 'Heading' CENTERED, 70 SY-PAGNO,'of ', '-----'.
    Refer : http://www.sap-basis-abap.com/sapab007.htm

  • Html report shows blank page if pdf report is also

    HI
    I am facing strange problem
    1. Generate any html report with multiple pages.
    2. The first page of the report will be shown.
    3. Now generate the same report in pdf.
    4. Go to the first report again (html report) and try to go to the next page
    (second page)by clicking on the forward arrow > at the bottom of the report.
    I am invoking java to invoke reports

    Hi Karen,
    I would like to provide the document "Report Design: Best Practices and Guidelines " to you and hope it can provide some help.
    Avoiding Blank Pages
    Sometimes, you will see blank pages when you output reports to a physical page format such as PDF or print. Generally, this will happen when the size of the report body exceeds
    the size of the page. To ensure that all the contents fit on a single page, the body width plus the margins should be less than the defined page width. A textbox or other report item can cause the width of the body to exceed the page width, even when the portion
    of the item that exceeds the width has no visible contents. In addition, report items growing horizontally (matrix data regions and images set to automatically Autosize or Fit) can also cause the body to grow.
    Reference:
    <http://technet.microsoft.com/en-us/library/cc966445.aspx>
    Best Regrads,
    Halin Huang

  • Html report shows blank page if pdf report is also generated

    Steps to reproduce
    1. Generate any html report with multiple pages.
    2. The first page of the report will be shown.
    3. Now generate the same report in pdf.
    4. Go to the first report again (html report) and try to go to the next page
    (second page)by clicking on the forward arrow > at the bottom of the report.
    I am using java to invoke reports

    Hi Karen,
    I would like to provide the document "Report Design: Best Practices and Guidelines " to you and hope it can provide some help.
    Avoiding Blank Pages
    Sometimes, you will see blank pages when you output reports to a physical page format such as PDF or print. Generally, this will happen when the size of the report body exceeds
    the size of the page. To ensure that all the contents fit on a single page, the body width plus the margins should be less than the defined page width. A textbox or other report item can cause the width of the body to exceed the page width, even when the portion
    of the item that exceeds the width has no visible contents. In addition, report items growing horizontally (matrix data regions and images set to automatically Autosize or Fit) can also cause the body to grow.
    Reference:
    <http://technet.microsoft.com/en-us/library/cc966445.aspx>
    Best Regrads,
    Halin Huang

Maybe you are looking for