Jdev9i;JSP;Scroll a page at the end programatically?

Hi,
How can i scroll the the page to the end?
More info: I have a JSP page that shows a database table. In
some condition I'd like to show the last row in the visible area
when page is loaded, so if the table is large i should scroll
the page programatically at loading time. How could i do that?

.focus() in javascript is a good candidate for this.

Similar Messages

  • How to avoid printing a balnk page at the end in the Adobe form output

    Hello Experts,
        Can anyone please let me know as how to avoid/delete the blank page at the end of adobe form output.
    I have a master page with header n footer and a body page seperate.
    For ex.. I have 3 line items and i want each line item to be displayed in the new page. I am able to get this functionality . I have set the settings in the paginationb tab of the subform as
    "after " Go to Next content Area" " but an extra page is getting printed at the end. 3 + 1 extra pages total. I want to avoid this blank page. I have checked the Allow page break with in content box but it is still not working.
    Can someone guide me as how to solve this problem.
    Any help is appreciated. Thanks in advance.
    Regards,
    Mahesh

    hey mahesh,
    this normally happens because of triggering a new page manually, what u would have done is that you would be checking for the new line item and when this condition is satisfied , you are triggering a new page , the reason for the last blank page is that the condition gets satisfied ( beacuse the line item number changes from the last line item no to  initial or space).
    This can be handled by doing the following
    By knowing the number of line items by the following stmt.
    describe table itab lines v_lines.
    Now you have the value in v_lines.
    use a counter in ur form and keep it increasing it by 1  ( say v_sno ) ie v_sno = v_sno + 1 in the loop of ur internal table.
    ONLY WHEN V_LINES IS LESS THAN OR EQUAL TO V_SNO , TRIGGER THE NEW PAGE
    this should be along with the condition which u have already put, ie when ever line item no changes
    when both these conditions are satisfied , then only the new page will be triggered.
    Hope it helps,
    Reward if useful,
    Regards,
    KP.

  • Implementing multiple page size requirement - extra blank page at the end

    My XMLP report requirement is as follows.
    - The report is printing a bunch of lines.
    - Based on data and layout requirement, lines are grouped into page where they belong (due to complex logic for determining which page a line should go to...this is done in PL/SQL package that is called in the beginning of the RDF trigger)
    - The first page needs to be printed on Legal size paper
    - Subsequent pages (IF NEEDED) need to be printed on Letter size paper
    So some report will have a 1-page output (legal size), and some will have multiple pages (1st page should be legal size, subsequent on letter size).
    Here is a sample XML data:
    <REPORT>
    <LIST_G_PAGE_NUMBER>
    <G_PAGE_NUMBER>
    <PAGE_NUMBER>1</PAGE_NUMBER>
    <LIST_G_LINE>
         <G_LINE>...</G_LINE>
         <G_LINE>...</G_LINE>
    </LIST_G_LINE>
    </G_PAGE_NUMBER>
    <G_PAGE_NUMBER>
    <PAGE_NUMBER>2</PAGE_NUMBER>
    <LIST_G_LINE>
         <G_LINE>...</G_LINE>
         <G_LINE>...</G_LINE>
    </LIST_G_LINE>
    </G_PAGE_NUMBER>
    <G_PAGE_NUMBER>
    <PAGE_NUMBER>3</PAGE_NUMBER>
    <LIST_G_LINE>
         <G_LINE>...</G_LINE>
         <G_LINE>...</G_LINE>
    </LIST_G_LINE>
    </G_PAGE_NUMBER>
    </LIST_G_PAGE_NUMBER>
    </REPORT>
    For this, I created 2-pages RTF template and using the Word Page Setup feature:
    1. First page setup is legal size (go to Page Setup, Paper tab, choose Letter and choose Apply to "Whole Document").
    The first page has the following XMLP tag:
    <?for-each: G_PAGE_NUMBER?>
    <?if: PAGE_NUMBER=1?><?call:body?><?end if?>
    <?end for-each?>
    <?template:body?>
    for-each loop that prints lines in a tabular format
    <?end template?>
    2. Second page setup is letter size (go to Page Setup, Paper, choose Letter and choose Apply to "This point forward").
    <?for-each: G_PAGE_NUMBER?>
    <?if: PAGE_NUMBER>1?><?call:body?><-- Ctrl-Break to insert a page break here --> <?end if?>
    <?end for-each?>
    It almost worked, except there is a blank page printed at the end. How do I remove the blank page? I have tried to use <?split-by-page-break:?> instead of the Ctrl-Break, but it did not seem to work (there is no page break happening at all).
    I think the extra page is due to the multiple page nature of the RTF template. Is there a way to control the page size through XMLP tag (or XSL-FO). With that, I can try having a single page template and put the page size control within the XMLP / XSL-FO tag and hope that the extra blank page at the end will go away. Can someone please help?
    Thank you!

    Sorry for the typo in my previous post... I meant Ctrl-Enter (not Ctrl-Break).

  • How to avoid printing an additional blank page at the end of the report

    I have a report which has 3 panels in the main section of the report, about 3 pages in size. 1st & 2nd panels are enclosed in a repeating frame, and 3rd panel in a different repeating frame.
    The vertical panels per page in the property inspector of the main section of the report is kept as 2. And thus, when I am printing the report I am getting an additional blank page at the end. Also I tried to make the vertical panels per page to 1 in the property inspector for main section but the following error is being returned:
    REP-0801: Layout canvas must remain large enough to fit all layout objects
    Can anyone tell me how to handle this?

    Hi,
    I too faced similar prob.
    But when i made the After Page Value property of the report as blank it removed the blank page for me .
    Try this and let me know whether it has helped you.
    Regards
    Srinivas Pusa

  • Not able to print T&C page at the end

    Hi Friends,
    I am working on a PO form. I need to print Terms & Conditions (Content of 2 pages) at the end of my printing.
    As of now I have two pages :
    FIRST
    NEXT  -  Copy of First
    After the MAIN window I am printing Digital Signature which is in a Secondary window.
    For my issue   I created a new page with one Secondary Window which reads the Standard Text to populate T&C.
    But this page is not at all triggering.
    Next Page attribute:
    FIRST   -   NEXT
    NEXT    -  TNC
    TNC      -    this is blank as we can not assign a page without MAIN window.
    Also checked in the debugging mode also    but  its not calling this page.
    Can anyone please help  me solvig this issue?
    Let me know if I am not clear anywhere.
    Thanks,
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Feb 19, 2010 8:52 AM

    Hi  ,
    Next Page attribute:
    FIRST - NEXT
    NEXT - TNC
    these are your next pag attributes
    try this ..
    Next Page attribute:
    FIRST - NEXT
    NEXT - NEXT
    TNC - blank
    in the NEXT page u have  your terms and condition page  forcibly because your terms and condition page is not having main window.
    for this u have to create command node and (nextpage will be TNC) after the main window of the NEXT page 
    Hope u solve your problem
    Let me know if any concerns ........

  • Blank Page at the end of report(html output)

    Hi,
    I have created a paper layout report using report 10g.
    DESFORMAT for the report is html.
    when i take a print out of the report from internet explorer its printing a blank page at the end.
    I tried with BLANKPAGES=NO it didn't help me and even unchecked the Blank Pages property in Report Builder tool.
    Please help me in resolving this issue.
    Regards
    Srinivas.

    Many thanks. That works

  • Problem with a blank page at the end.

    Hi,
    I have a report. That comes up with a blank page at the end of the report when the report generates the output in the report builder. Also in pdf file.
    It was created by somebody earlier... and i need to fix this bug.
    Any solutions..?
    Thanks in advance.
    KK
    Message was edited by:
    KK28

    Hi
    there are a number of hits on Metalink for this...
    Subject:      Extra Page Shown At The End Of A Web Report
         Doc ID:      Note:172426.1      Type:      PROBLEM
         Last Revision Date:      04-JAN-2005      Status:      ARCHIVED
    * fact: Oracle Reports Developer 6.0.5
    * fact: Solaris Operating System (SPARC)
    * fact: Microsoft Internet Explorer
    * fact: Adobe Acrobat
    * fact: OAS
    * symptom: Extra Page Displayed At The End Of A Report Viewed on the Web
    * symptom: Only happens on one report
    * symptom: Using Times New Roman
    * symptom: Client/Server configuration works successfully
    * change: Report originally created for client/server application was moved to a web application without making any coding changes in the report.
    * cause: Bug 1386820 : HTML GENERATED ON NT AND UNIX IS DIFFERENT. ADDITIONAL BLANK LINES ON UNIX
    fix:
    Use the Report Builder on Unix to make fine adjustments in the layout to
    improve the HTML output.
    -----x------------------
    Subject:      How to set the number of rows per page dynamically in a report
         Doc ID:      Note:122714.1      Type:      SCRIPT
         Last Revision Date:      07-NOV-2000      Status:      PUBLISHED
    PURPOSE
    This article shows how to set the number of rows per page dynamically according
    to the user parameter specified.
    INSTRUCTIONS
    Follow these steps:
    1. In the Object Navigator under Data Model-->User Parameters, create an user
    parameter P_1 -- this parameter specifies the number of rows you want to
    print per page
    datatype: number.
    2. In the Data Model Editor, create the query and the layout according to your
    requirements.
    Let's assume that we have the following:
    Q_1: Select empno, deptno ename from emp
    order by deptno, ename
    G_1 has the columns empno, deptno, ename
    3. In the Data Model Editor, create the following summary columns:
    CS_numrow will be numbering the rows within the detail group
    (created within G_1).
    Set the following parameters:
    Name: CS_numrow
    Function: count
    Source: <any column that does not accept nulls> for instance, empno
    Reset at: Report
    CS_total_rows will calculate the total of rows retrieved
    (created at the report level)
    Set the following parameters:
    Name: CS_total_rows
    Function: count
    Source: <any column that does not accept nulls> for instance, empno
    Reset at: Report
    4. In the Layout Model Editor, create a Group Frame M_1 within the repeating
    frame, below the fields empno, deptno, and ename. You may have to stretch
    the existing frames to be able to fit this in.
    F_enmpno F_deptno F_ename
    --------------------------------------------- <<<< create the group
    frame here
    5. Set the properties for the Group Frame M_1 as follows:
    Print condition: First
    Object: Enclosing Object
    Sizing:
    Vertical: variable
    Horizontal: fixed
    Check the box "Page Break before".
    6. Create a Format trigger for this frame M_1 as follows:
    function M_1FormatTrigger return boolean is
    /* prints until a row number is product of P_1 */
    /* if row number is 5 and P_1 = 5, MOD is 0 */
    /* then it prints the frame, doing a page break */
    begin
    if :CS_total_rows <> :CS_numrow then -- avoiding blank page at the end
    if mod(:CS_numrow,:P_1) = 0 then
    return (TRUE);
    else
    return(false);
    end if;
    else
    return (false);
    end if;
    end;
    NOTE: This assumes that the report is tabular. If you have a break group, this
    logic can be applied for the detail group.
    REFERENCES
    Information in this article was taken from Oracle Sample Code @ Repository
    Entry #956. In order to request the binary (rdf file or .sql script), please
    log a TAR via Metalink requesting Oracle Sample Code #956
    CAUTION
    The sample program in this article is provided for educational purposes only
    and is NOT supported by Oracle Support Services. It has been tested
    internally, however, and works as documented. We do not guarantee that it
    will work for you, so be sure to test it in your environment before relying
    on it.
    -------x-------------
    the list goes on...
    Hope this helps

  • Scrolling an image at the end of a ticker

    hi,
    I am koushik from India. I am working in j2me(cldc-midp), for last six months.
    I have successfully scrolled a ticker and also worked with image.Now I want to scroll an image at the end of a ticker.So, at first I want to scroll an image independently, then I'll go for that. I want to do it not using Timer or I don't want it as a keyEvent,it should scroll like a ticker horizontally at the top of the emulator.Is it possible using Canvas,repaint()......
    if it possible , can anybody help me giving a sample code.

    Hi,
    Because it's an assignment that you've got to make we won't just post complete source code that can be pasted into your Canvas code. As a matter of fact, I don't have source code that accomplishes something similar, so I can't post any code.
    I will try to give some hints etc...
    Okay, you're not using the Ticker class. That's okay and the scenario is clear.
    You probably have got a Canvas screen in which you've made a sort of rectangle at the top of the screen. This rectangle (probably a filled rectangle) represents your titlebar. In this rectangle you will draw parts of a text during each run of the thread (timer).
    There are some interesting challenges: the process should be very smooth to let your ticker animate very realistic. The text will be drawn using a dynamic x coordinate. However, you will need to draw text first, then drawing a filled rectangle or something at the left or the text and at the right of the text to simulate that characters are visualised for only a certain part (like how the ticker does that).
    A fast thread (that sleeps for limited milliseconds) will obviously cause flickering on the screen that might be prevented with double buffering stuff. However this might be complicated on the mobile (the implementation should support double buffering to be able to use it), so then try to increase the delay between the (re)paint actions.
    The paint method should be clean and simple. Do not use any impressive calculations there. Try to find a balance in using class member variables and local calculations (in the paint method). Try to prevent the usage of local member variables in the paint method, to reduce processor load and heap usage.

  • Blank Page at the end of generated PDF Document

    Hi,
    my problem is that ADS is generating a blank page at the end of my report.
    I fill the ADS with a template and an XML stream.
    The XML stream contains multiple orders. Each order has several detail data. It is a requirement that every order object has to appear at a new page.
    XML structure:
    - Order
    -- Group1
    --- fields of Group1
    -- Group2
    --- Fields of Group2
    My template looks like this:
    - body page subform: Order  (Default binding: $record.Order[*]; Repeat Subform for Each Data Item: yes; After: Go To Next Page)
    -- subform1
    --- fields of subform1
    -- subform2
    --- fields of subform2
    Because of the "Go To Next Page" at the Order subform a new page is rendered each time an order ends. This leads to the blank page after the last order is processed.
    Does anyone know how I can suppress the blank page at the end of the document?

    You may use a forum for xsl fo.

  • Is it possible to INSERT a blank page Between existing pages?  Everytime I try it inserts the page at the END of the document.

    Everytime I try it inserts the page at the END of the document.  The HELP is no help, and I can't find any other documentation on being able to do this.  Appreciate the feedback.  Thanks!  - ph

    AP,
    As Fruhulda notes, a Section Break is an Inline character that will move all text below it to the next page. With a combination of graphics and text, and with the graphics having the property of Object Causes Wrap turned on, you will get these apparently odd behaviors. This is why I often favor the Page Layout mode myself. As many experienced users will say, you can do anything in a WP doc that you can do in a PL doc, but in my opinion the WP features often get in the way of simple operation when graphics are involved.
    Glad you are on track now.
    Jerry

  • How to I add more "scroll" or page to the bottom of the page.

    While working on an iweb page, I started with a blank page and started building upon it.
    After adding some photos to it some of the photos exist partially below the end of the scroll or page break. Other pages in my webpage seem to have more scroll room, but I cannot seem to figure out how to get the page to scroll more.
    The pictures added do not seem to automatically make iweb add more room at the bottom of the page.

    Some wording is still a little confusing in iWeb. The blog and podcast templates increase to accommodate entries automatically.

  • How do I produce a duplicate page, without having spare pages at the end?

    I am a basic user, who is currently trialing the adobe acrobat and Livecycle Design programs...
    I am practising the preparation of a report which could have an individuals personal details in "page 1" and the report in pages 2-8 for example...
    If I wanted to include, lets say, 5 individuals on the same report, is there a way in which I can have a drop down box, which could ask "how many individuals are in this report" and I could select "5" from a drop down box, causing adobe to add additional pages and duplicate page 1 five times.
    Or, at the end of page 1, could I have a tick box or any other type of button which could state "If you have another individual, please "tick box/add/etc". Also adding a new page with the blank page 1 format.
    At the moment, I have added blank copies of page 1 at the end of the report. The option described would stop me having to print every report I completed with several blank copies of "page 1" when they may not be required.
    It also prevents me from completing the report then printing it, reseting the form and printing page 1 for each individual (5 times in my example)
    Hope that made sense...
    The end user will be using Adobe Reader Only.

    >I am a basic user, who is currently trialing the adobe acrobat and Livecycle Design programs...
    I recommend you post questions about Acrobat in the Acrobat Windows or
    Acrobat Macintosh forum, or specific LiveCycle Designer questions in
    the LiveCycle Designer forum.
    Create PDF Online is a subscription service on Adobe's web site which
    only makes PDF files, nothing else, so it won't help you.
    Good luck,
    Aandi Inston

  • I need to learn how to add a page at the end of my video to put credits?

    I am editing for the first time EVER and need to know how to add credits to the end of a video

    There are different ways to add credits. Did you have anything particular in mind?
    You may find some ideas here:
    How to Create Scrolling Movie Credits in Adobe Premiere Pro - YouTube
    https://helpx.adobe.com/premiere-pro/using/rolling-crawling-titles.html
    Creating and Editing Titles

  • Adobe Form - Print page at the end for every record of a Z table with Text

    Hello friends, I am facing a challenging here and I need to develop the following below. Mind you, I don't have much exposure/experience with Adobe Forms
    Scenario: Standard REAL ESTATE Contract Form
    I have a Z table containing RENTAL OBJECTS, in my case 3 records and I want, at the end of the form print one page like below to each record that i have in my Z table.
    "Dear Z-field1 one, regarding your contract for Z-field2, Address Z-field3, blah blah blah"
    In essence, print a page for each one of them at the end, with the text above using the fields from the z table.
    I searched the forum and couldn't find any thing like it.
    If someone can help it would be much appreciated.
    Thanks, Marco

    Hi Marco,
    You must be having the ztable fields in the context or in the data heirarchy of the adobe form.
    Assume that your main form is on the page1.
    Create a table bound to ztable with 3 rows in it and make it invisible on the form.
    Below the form create 3 pages page2, page3 and page4.
    Create a ISR text display and on the initialise event write the code such as:
    this.rawValue = data.page1.Table2.Row1.Cell1.rawValue;
    Create as many ISR texts as you want and initialize it using the above method.
    Page1
    form
    Page2
    Row1 values
    Page3
    Row2 Values
    Page4
    Row3 Values
    Hope this helps.

  • Blank Page at the end of the report

    Hi
    In my report i did not have any pagebreak or section break.
    But some times i am getting extra blank page at the bottom of the report .
    How to avoid this ..
    Thanks in Advance
    Have a Nice day.

    Hi,
    It is very probable that you are have unncessary space somewhere before the end of your template.
    Use Ctrl+Shift+* to show the end of line markers and remove the unnecessary spaces in your
    template then run again the view report.
    cheers
    Jorge
    p.s If your question was answered then please grant the points and close the thread

Maybe you are looking for