Next page previous page using JDBC in JSP

Hello,
I wanted to know how the previous page and next page is developed when an user serches for a particular string in a web site.They are restricting the database to display only 10-25 rec per page and giving an option like next, when an user clicks next the next 10-25 rec are shown how is this done.
Please e-mail me the source code if availabale to [email protected]
Thanks in advance
Anu
null

Hi Anu,
visit technet.oracle.com site, go to sample section, in that choose JDBC section, here you will find example similar to your problem which you have describe below -
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Anu:
Hello,
I wanted to know how the previous page and next page is developed when an user serches for a particular string in a web site.They are restricting the database to display only 10-25 rec per page and giving an option like next, when an user clicks next the next 10-25 rec are shown how is this done.
Please e-mail me the source code if availabale to [email protected]
Thanks in advance
Anu
<HR></BLOCKQUOTE>
null

Similar Messages

  • How to done Next and Previous operations using(struts or jsp and servlets).

    I have some problem with Next and Previous Operations in my application. I solve that problem by my own. But I need some more information to solve that problem.
    In order to solve this problem, 1st i moved all the Dara Base records into one collection.And I set that collection Object in Session scope in Servlet file.And i dispatch the request to one jsp(Show.jsp) . The code of that is given bellow.
    <%@page language="java"%>
    <%@page import="java.util.*"%>
    <%@page import="home.servlet.beans.*"%>
    <%!
         public static int no=0;
    %>
    <html>
         <body>          
                   <%
                        String s=request.getParameter("nam");
                        if(s==null)
                             s="some";
                        ArrayList a=(ArrayList)session.getAttribute("tv");
                        if(!s.equals("pre"))
                             int i=no;
                             %>
                             <table border=1>
                   <tr>
                        <th>DEPTNO</th>
                        <th>DNAME</th>
                        <th>LOC</th>
                   </tr>
                   <%
                        if((no+1)<a.size())
                        for(i=no;i<(no+2);i++)
                             SelectBean sb=(SelectBean)a.get(i);
                             %>
                             <tr>
                                  <td><%=sb.getDeptno()%></td>
                                  <td><%=sb.getDname()%></td>
                                  <td><%=sb.getLoc()%></td>
                             </tr>
                             <%
                             no=no+2;
                        else
                             if(i<a.size())
                             for(i=no;i<a.size();i++)
                             SelectBean sb=(SelectBean)a.get(i);
                             %>
                             <tr>
                                  <td><%=sb.getDeptno()%></td>
                                  <td><%=sb.getDname()%></td>
                                  <td><%=sb.getLoc()%></td>
                             </tr>
                             <%
                             else
                                  out.println("<tr><td colspan='3'>There is no records to display</td></tr>");
                        else
                             %>
                             <table border=1>
                   <tr>
                        <th>DEPTNO</th>
                        <th>DNAME</th>
                        <th>LOC</th>
                   </tr>
                   <%
                             if(no==a.size())
                                  no=no-1;
                             int i=no;
                             for(i=no;i>(no-2);i--)
                                  if(i==-1)
                                       break;
                                  SelectBean sb=(SelectBean)a.get(i);
                             %>
                             <tr>
                                  <td><%=sb.getDeptno()%></td>
                                  <td><%=sb.getDname()%></td>
                                  <td><%=sb.getLoc()%></td>
                             </tr>
                             <%                               
                             no=no-2;
                             if(no<0)
                                  no=0;
                   %>
                   </table>
                   <br>
                   next
                   previous
         </body>
    </html>
    If u have any other idea please reply to me. Please copy the above code and work with your application.

    It's a classic paging feature.
    And since it's a classic feature, you have most of the work already done for you, like JSP paging tags.
    You just need to Google for "jsp tag paging" or something to that effect to get several useful links.

  • Connecting to MSAcess database using JDBC in JSP

    Hi,
    I have created an Aceess database file (C:\db1.mdb) and created a DSN=db1.
    I could able to connect to the database and retrieve the information from the tables using Sun's JDBC OdBc bridge drivers.
    DriverManager.getConnection("jdbc:odbc:db1").
    It was working Fine in my Standalone java program.
    But,when I used the database connection statements in my JSP page,it is not displaying any error message and not selecting rows from the Select statement i used in my JSP page.(The same worked in my standalone Java program).
    I executed the two programs on same machine.Database is also on the same machine.
    Can anyone tell me what shall i do to connect to the database(C:\db1.mdb) through JSP.
    Thanks in Advance
    Rao...

    in your code do you have any things that is suppressing your exception?? i.e. something lik
    try
    // do your stuff
    catch(Exception e)
    // do nothing??
    }if so you vont get to know of any problem that happened....
    also if there is an un handled exception the jsp page will sometimes come up as blank, because your print streem will be terminated abrubtly....
    this will probably happen if you dont have a try - catch block at all, or if you are not handling the exception that is being thrown.... try inclosing your code in a try catch block and doing ex.priintStackTrace() in the catch block to get the exception trace on the server console....
    also can you post some code for both your java client and jsp??

  • In an alv report how to get data in next and previous pages.

    in my alv report i require the output such that
    when i will press the next button in the application tool bar the alv report will be displayed for the next inventory document number in the next page. like wise previous
    would anybody please help me out.
    thanks and regards
    papps

    In your servlet you could set the arraylist into the HttpRequest object so that it is visible in the JSP you are forwarding to.
    RegistrationDAO rdao=new RegistrationDAO();
    ArrayList arr1=rdao.getsearchresults(af);
    request.setAttribute("someArrayList",arr1);Then in the JSP you could use JSTL 1.1 and jsp:useBean tag to access the ArrayList like this
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <jsp:useBean id="someArrayList" class="java.util.ArrayList" scope="request"/>
      <c:forEach var="currentRecord" items="${someArrayList}">
        Some property of the AddressForm object: ${currentRecord.propertyName} <br/>
        Another property of the AddessForm object : ${currentRecord.someOtherPropertyName} <br/>
        <hr/> 
      </c:forEach>I guess you are using struts, so instead of JSTL there might be some struts tags that do the same as above JSTL tags. You can research further on that.
    If you can't use struts tags or JSTL tags then you could write it with JSP scriptlets (highly discouraged option).

  • How to get next and previous page  in a Train Flow .

    Hi,
    For creating record I am using multi-step flow (train).
    I have three page and I want to navigate the page via multi-step flow (train).
    I followed the steps given in the Toolbox Tutorial of create purchase order and
    Locator Element: Page/Record Navigation in developer's guide.
    page1=/uttara/oracle/apps/uttaraimc/createcitizen/webui/PropertyCreatePG
    page2=/uttara/oracle/apps/uttaraimc/createcitizen/webui/HouseDetailsCreatePG"
    page3=/uttara/oracle/apps/uttaraimc/createcitizen/webui/EducationCreatePG"
    The page1 is navigated via 'Create' button in CitizenSearchPG
    Now on this Page1, when I clicks on the 'Next' button (to navigate to the next page in the same multi-step flow) I am getting following exception and its not navigating to page2.
    Error: Cannot Display Page
    You cannot complete this task because one of the following events caused a loss of page data:
    * You accessed this page using the browser's navigation buttons (the browser Back button, for example).
    * Your login session has expired.
    * A system failure has occurred.
    To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.
    Here is the code for CreateFooterCO,
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OANavigationBarBean navBean =
    (OANavigationBarBean)webBean.findChildRecursive("NavBar");
    if (navBean == null)
    MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "NavBar") };
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
    // Determine which page we're on so we can set the selected value. Each
    // time we navigate to and within the flow, the URL includes a parameter
    // telling us what page we're on.
    int step = Integer.parseInt(pageContext.getParameter("ccStep"));
    navBean.setValue(step);
    // Figure out whether the "Submit" button should be rendered or not;
    // this should appear only on the final page (Step 3).
    OASubmitButtonBean submitButton =
    (OASubmitButtonBean)webBean.findIndexedChildRecursive("Submit");
    if (submitButton == null)
    MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "Submit") };
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
    if (step != 3)
    submitButton.setRendered(false);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    int currentStep = Integer.parseInt(pageContext.getParameter("ccStep"));
    // This button should only be displayed on the final page...
    if (pageContext.getParameter("Submit") != null)
    // Simply telling the transaction to commit will cause all the Entity Object validation
         // to fire.
    // Note that you must commit before asking WF for the next page, because
    // asking for the next page at this point will transition the WF to a
    // completed state, which means you won't be able to navigate back
    // if there are errors during the commit processing.
    am.invokeMethod("apply");
    TransactionUnitHelper.endTransactionUnit(pageContext, "citizenCreateTxn");
    // Don't forget to call this even on the last page so the activity associated with
    // this page completes and the Workflow transitions appropriately.
    String nextPage = OANavigation.getNextPage(pageContext);
    // For the final page, Workflow should be returning null -- and the user
    // can select the "Submit" button only on the last page. Something's
    // wrong.
    if (nextPage != null)
    throw new OAException("AK", "FWK_TBX_T_WF_UNEXPECTED_TRANS");
    else // we've just completed the flow
    // Assuming the "commit" succeeds, we'll display a Confirmation dialog that takes
         // the user back to the main "Purchase Orders".
    /* String poNumber = (String)pageContext.getTransactionValue("PO_NUMBER");
    MessageToken[] tokens = { new MessageToken("PO_NUMBER", poNumber),
    new MessageToken("PO_APPROVER", pageContext.getUserName()) };
    OAException confirmMessage = new OAException("AK", "FWK_TBX_T_PO_CREATE_CONFIRM", tokens);
    OADialogPage dialogPage = new OADialogPage(OAException.CONFIRMATION,
    confirmMessage,
    null,
    pageContext.getApplicationJSP() + "?OAFunc=FWK_TOOLBOX_PO_SUMMARY_CR&retainAM=Y",
    null);
    pageContext.redirectToDialogPage(dialogPage);
    else if ("goto".equals(pageContext.getParameter(EVENT_PARAM)) &&
    "NavBar".equals(pageContext.getParameter(SOURCE_PARAM)))
    // Note that the OANavigationBean publishes a "goto" event paremeter when
    // either the Back or Next button is pressed. You need to determine which way to
    // go based on the related "value" parameter.
    // Also note the check of "source" above to ensure we're dealing with the
    // page-level navigation here and not table-level navigation which is
    // implemented with the same Bean configured differently.
    int target = Integer.parseInt(pageContext.getParameter("value"));
    String workflowResult;
    if (target < currentStep)
    workflowResult = "PREVIOUS";
    else
    workflowResult = "NEXT";
    String nextPage = OANavigation.getNextPage(pageContext, workflowResult);
    if (nextPage != null)
    HashMap params = new HashMap(1);
    params.put("ccStep", IntegerUtils.getInteger(target));
    pageContext.setForwardURL(pageContext.getApplicationJSP() + "?" + nextPage, // target page
    null,
    KEEP_MENU_CONTEXT,
    "", // No need to specify since we're keeping menu context
    params, // Page parameters
    true, // Be sure to retain the AM!
    ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
    OAException.ERROR); // Do not forward w/ errors
    else
    throw new OAException("AK", "FWK_TBX_T_WF_NO_NEXT_PAGE");
    else if (pageContext.getParameter("Cancel") != null)
    am.invokeMethod("rollbackCitizenInfo");
    // Remove the "in transaction" indicator
    TransactionUnitHelper.endTransactionUnit(pageContext, "citizenCreateTxn");
    pageContext.forwardImmediately("OA.jsp?page=/uttara/oracle/apps/uttaraimc/createcitizen/webui/CreateCitizenSearchPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    How to resolve this issue?
    please suggest.
    Thanks & Regards,
    Sagarika

    Sagarika,
    Please go thru the dev guide which explains the train flow in the multistep update exercise. Compare the steps with ur implementation.
    - Senthil

  • Combobox in the report forms, next page, other page, previous page...apex 3

    Hi,
    Is there a possibility to add a new option to that combo to "jump" not only to a page relative number, to a first letter of an word from a chosen field in the report ?
    You need to "jump" to some range of records in a specific page and the relative number, doesn't tell you where are those specific records.
    Best regards,
    Victor

    Hi, i'll try to be more clearly, thanks for trying to help me.
    Let's say that i have a site with a form as "report and form", the records in the screen are about peoples, a very long list of first_name & last_name and other fields of course, some of them with a similar last_name let's say for example, my wish is to "jump" to a page very directly to a specific range of names, therefor i need to see some part of a field (..that i'll choose) in the 'next / previous' combo displayed automatically in the report page.
    Thanks a lot,
    Victor

  • Problem when using JDBC with JSP

    Hi,
    I am trying to display results after a database query on a JSP page, and then provide the options delete or update one of these records or to add a new one.
    What I did was to pass the ResultSet object to the webpage, and then display the result. When the buttons are pressed, I pass this ResultSet to another jsp page where I provide the required functionality. This is then forwarded back to the previous JSP, where the new data is displayed.
    However, when the first page is re-displayed, it creates a new connection and i was wondering if there is a way to close the previous connection through the ResultSet?
    Also, I wanted to put the ResultSet in a bean, but I think it is causing an error in the web server, saying something like it is not Serializable. Is there any other way to pass the ResultSet around?
    Any suggestions on better ways to manage databases though web interfaces would be welcome, or if someone could point me to a good tutorial on this topic!
    cheers
    Ankur

    Bad idea to be passing ResultSets around. Those are database cursors, a scarce resource.
    You should load that data into a data structure, close the ResultSet immediately, and then pass the data structure around in session if you must.
    Better yet, have a central servlet that deals with all database calls. Let the JSPs just do display, as they were meant to. - MOD

  • Using JDBC with JSP

    I have a standalone application using Swing. Im converting it to a web / JSP/Servlets application.
    Can my JSP acess my database using the same classes it used to or should I configure in my Tomcat a data source and call my database using the jndi name ?
    thx in advance,
    Giselle

    Agreed - JSPs are best for presentation.
    I have a front controller servlet that delegates to POJOs to do database interactions and then forwards results to JSPs for display. No scriptlet code in my pages, no database interactions, just looping through collections and displaying the results. - MOD

  • How to call BULK COLLECT using JDBC in JSP?

    Hi
    I am using BULK COLLECT instead of CURSOR in my Stored Procedure.
    How to use these stuff in JDBC.
    If i am using CURSOR means
    cs.registerOutParameter(1,oracle.jdbc.driver.OracleTypes.CURSOR);
    is used.
    Which types i have to use?
    I am retriving morethan one record using FOR. LOOP in SP and before that
    BULK COLLECT is used in SELECT query..
    Can you give jsp code for this?
    Thanks

    you may find related sample jdbc code on otn - http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html
    Best regards.

  • CF Set form.variable for query and Next/Previous pages error

    I have a CF form with a select that posts to a CF "action" page.
    On the action page I: CFSET ItemNumber=#form.ItemNumber#
    I CFOUTPUT the 'ItemNumber' into the CFQUERY (which is an Inner Join dependant on the '#ItemNumber#')...
    All of the above works just fine and displays the database fields in color alternating rows, per the rest of the code.
    Here's the problem:
    I'm displaying 40 rows on a page per "Next and Previous" code. (CFPARAM name="start" default="1" and CFPARAM name="disp" default="40" along with the rest of the NextN code in the header and body). This does display 40 rows on the page and puts a link at the bottom of the page "Next 40 Rows", etc.
    Note: I'm only querying the database once and using the query (query name="data") to populate the table rows And the NextN code (CFOUTPUT name="data") And (CFIF start + disp GREATER THAN data.RecordCount, etc)...
    The problem happens when you click the "Next 40 Rows" link to display the 2nd page of rows. Since (I'm assuming) this NextN code is 're-reading' the same page from top to bottom, an error is thrown when the code tries to read the CFSET ItemNumber=#form.ItemNumber# at the top of the page.
    With the #form.ItemNumber# on this action page Originally coming from the previous posting of the form to this action page, when the "Next 40 Rows" link is clicked and the NextN code re-reads this action page - the CFSET ItemNumber (#form.ItemNumber) is not getting populated and throws the error...
    I hope I've not made this sound confusing.
    I can get the NextN code to work when I'm just querying the database without "flying in" a form variable. But when I CFSET a variable (#form.ItemNumber#) that is inserted into the query, the second page of the NextN throws an error and doesn't display.
    I would include the page code here but it would be fairly lengthy and, as well, the NextN code is a 'standard' CF code -- I've narrowed the problem down to the above "Element is undefined" (when the page tries to reload from the "Next 40 Rows" link) and am hoping there's a simple fix or another way to display the records in Next and Previous pages.
    Thanks to anyone in advance for shedding light on this.
    - e

    Thank you for the reply, Owain.
    Yes - The Next/Previous at the bottom of the page are hyperlinks.
    <a href="ThisPage.cfm?start=#Evaluate("start + disp")#">
    The following is at the top of the page (and is the variable from the form that I CFOUTPUT in the query):
    <cfparam name="ItemNumberDropdown01" default="">
    <cfset ItemNumber = #form.ItemNumberDropdown01#>
    The error report showed that the "Next Page" hyperlink was reading an undefined variable... although when the "action page" first opens from the form posting to it, it populates the CFSET just fine (per the cfparam and cfset above)... As you mention, the hyperlink clearing the form scope is what causes the error in trying to display the next set of records...
    The form page and the 'action page' are both secure pages with an application page setting the session, etc. Am I at risk in using an URL scope?
    Where would this URL scope be put? (The href is shown above - would the URL scope go in this? - How would this be written?)
    The CFPARAM and CFSET would still exist at the top of the 'action page' and still throw an error wouldn't it or would this be replaced with something else to read the form.variable for this 'first' action page to be displayed?
    Thanks again for the 'education' on this...
    - ed

  • Navigating page to page while "registering" pages one another

    Okay,
    this may sound a little weird, but bear with me.
    Lets assume we are navigating a two pages PDF. The pages are same size and nearly same content except for some small details.
    If one fit the page into the window (CTRL+0), then pressing "pg-Up" and "pg-down" (or "up" and "down", or even "left" and "right") will make Acrobat navigate to the next page (or previous), while the fit to windows zoom level will remain unchanged.
    This provides the nice effect that you can basically "animate" between pages and the small differences will "jump" off the page much more easily.
    In other words, the pages register with one another, and becasue nowdays computers are fast enough to seamlessly swap pages on the screen, you can see an "animation" between one page to the next.
    Now, this nice registering of pages with one another appears to be possible only using CTRL+0, fit to window.
    The question is:
    If you zoom in a page, is there a keystroke that allows you to swap to the next or previous page while leaving the zoom level and the region being zoome unchanged?
    If I zoom into a page and press "pgeup/down" acrobat will scroll the view up/down in the same sheet, or page.
    If I zoom into a page and press "CTRL+pg-up/down" Acrobat will yes navigate to teh next/previous page, but it will always move the view crop to align with the top of the page...
    Anyone knows if there is a way to swap pages while keeping zoom level and view crop location with respoect to the pages?
    thank you (I hope I have been clear enough...)
    Regards
    gio

    What may be overlooked in Pages v5 is the notion of combining Text Boxes via the Menu > View > Show Arrange Tools. When you select two Text Boxes, an extra panel unfolds at the bottom of the Arrange Tools window. Uncheck one Text Box and this panel abruptly disappears.
    One can achieve text flow effects between Text Boxes differently based on how one positions the Text Box overlap, and choice of effect above. Though not the accustomed flow found in Pages ’09 v4.3, flow does occur. Consider the possibilities of combining a Shape and a Text box to cut an irregular Text box.
    If I create two Text Boxes and position them side by side with outline touching and choose Unite, this creates one larger Text Box and text flows across and down. On the otherhand, if I overlap the upper left corner of a lower Text Box over one above and to the left, then choose Union, pasted text fills the first Text Box and then flows across and down into the other box. Here is a Union example:
    Intersect will leave a small Text Box where the two overlap, so not much value there. Subtract will cut a chunk out of one Text Box that is the size of the overlapping piece of the second Text Box:
    And Intersect will leave an island in the center where the two Text Box overlap, with flow jumping over this bridge.
    Clearly, this is not what we were accustomed to in the past, but with imagination, style, and layout tuning, it does offer alternative Text Box creativity and layout. Of course, there is the option of simply returning to the previous Pages version for true Text Box linking that most will want to use.

  • How to use XMHTTP in jsp

    Hello,
    can any body tell me how to use the XMHTTP in jsp programming are servlet..what i know is XMLHTTP used in with java script functions..for connecting to servers without refrshing the page.can we use directly in jsp page.if so which APIs we have to use..provide me some help..
    regards,

    Thanks Steve for ur reply..
    XMLHTTP is a microsoft related thing..How so? This code works with Firefox & IE6 on Tomcat 5:
    <%
    String aStr = request.getParameter("a");
    String bStr = request.getParameter("b");
    String cStr = "";
    int a,b,c;
    if (aStr != null && bStr != null) {
         a = Integer.parseInt(aStr);
         b = Integer.parseInt(bStr);
         c = a + b;
         cStr = ""+c;
    } else {
         aStr = "";
         bStr = "";
    String acc = request.getHeader("Accept");
    if (acc!=null && acc.indexOf("message/x-jl-formresult")!=-1) {
       try { out.print(cStr.trim()); } catch (Exception e) { e.printStackTrace(); }
    } else {
    %>
    <html>
         <head>
             <title>Add</title>
         </head>
         <body>
              <script>
                   var xmlhttp=false;
                    try {
                     xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
                    } catch (e) {
                     try {
                      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                     } catch (E) {
                      xmlhttp = false;
                   if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
                     xmlhttp = new XMLHttpRequest();
                   function calc() {
                    try {
                     frm=document.forms[0]
                     url="addbyxmlhttp.jsp?a="+frm.elements['a'].value+"&b="+frm.elements['b'].value
                     xmlhttp.open("GET",url,true);
                     xmlhttp.onreadystatechange=function() {
                      if (xmlhttp.readyState==4) {
                       document.forms[0].total.value=xmlhttp.responseText;
                    xmlhttp.setRequestHeader('Accept','message/x-jl-formresult');
                    xmlhttp.send(null);
                    } catch(E) { alert (E.message); }
                    return false
              </script>
              <form action="addbyxmlhttp.jsp" method="get" onsubmit="return calc();">
                   <input type="text" name="a" value="<%=aStr%>"/> +
                   <input type="text" name="b" value="<%=bStr%>"/> =
                   <input type="text" name="total" value=""/>
                   <input type=submit value="Calculate">
              </form>
         </body>
    </html>
    <%
    %>That is a direct translation from one of the examples on the page I pointed to earlier.
    do we have any
    apis in java insteead of
    var xmlhttp = new
    ew ActiveXObject("Microsoft.XMLHTTP");
    var xml_dom = new
    new ActiveXObject("MSXML2.DOMDocument");
    var xml_domTemp = new
    new ActiveXObject("MSXML2.DOMDocument");
    these things i want to use java related stuff..is it
    possible..
    regards,Those things are JAVASCRIPT!! Like I said, most of the work is done in javascript, not the server side stuf.. And the page I pointed you to answers that question.

  • Next and Previous button on detail page

    I am new to Apex development and have a need to develop an application that has 2 pages. The first page displays a list of employees for instance and allows the user to sort the list on difference columns e.g., first name, last name, salary etc. The user then clicks on a employee and navigates to a second page which shows the details of the employee that the user can update and save. The second page should also include Next and Previous buttons which show the details of the next or previous employee from the SORTED list on the first page so that the user can avoid constantly switching between the two pages. How do I implement this? I thought of using collections but I don't know how to populate the collection when the user navigates out of the first page and how to reference the collection on the second page. Note that in the real application there could be a large number of rows on the first page (a few thousand) and response time is critical. Any help would be much appreciated. I am using Apex 2.2.
    Thanks
    Sadanand

    Thanks Anton. And apologies for the delay in responding to your message. I will give it a try soon.
    On a related note and as alternate implementation (i.e. not using collections), is it possible to have a tabular form (showing only one row) on the second page using the same query and filter/sort conditions as the first page with an additional feature that the first time the page is displayed, the record selected on the first page is the one shown in the tabular form? I can then use the default Next and Prev buttons of tabular forms to navigate through the records in exactly same order as the first page (assuming ofcourse that new rows have not been added by an external process in the meantime). I hope I am clear in my description.
    Thanks for your help.
    Regards
    Sadanand

  • How to go to previous pages using AT LINE-SELECTION

    Using AT LINE-SELECTION we can move on to next page up to 20 pages.
    Is it possible to go navigate to the previous pages?
    Letu2019s say, now I am in 15th page. I have to go to 5th page from 15th.
    Any comments appreciated.

    Hi,
    set your list index = 5 when u reach list 15.
    case:
    when Sy-lsind = 15.
       sy-lsind = 5.
    thanks,

  • How to remember previous page in a JSP page that's reloaded

    I have a JSP page where i want a "back" link that brings me back to the previous page. The problem is, some actions on this page will call a servlet that reloads my page, so using history.back() brings me back to the previous version of the same page.
    What is a good way to solve this in a servlet/JSP application?

    I just wrote a simple bean with a few methods that i frequently use.
    the bean is session scope, and you just call something like
    setCurrentPagePath(), and you build your link up by calling getCurrentPagePath()
    before settings the new one.

Maybe you are looking for

  • If then else in XML Publisher using parameter--Help need

    Hi I am using xml data template in xml Publisher .we have three different layout in a rtf . we have three parameter P1, P2, P3 ,based on the parameter , the layout should display . if P1 is not null then display Layout1(one rtf contain 3 layout) if P

  • How to change the  UDT's Status other than Open and Close ?

    Hello Friends,                       I have created an table of document type and I want to set the document Status other than open and close for eg.R- Released . Thanks in advance.

  • Adobe PSE 10 and 11 refuse to open.

    Hi, guys. I've been using PSE 10 on my current computer (currently running Windows 7, 64-bit) for quite some time now--a little over a year, I'd say. Everything worked fine before; I was able to open the editor and use it without problems. Just yeste

  • PI 7.1 Performance Monitoring - Advanced Adapter Engine (AAE)

    Hi Experts, how can i use the "Performance Monitoring" from the RWB, to see all the messages (including the messages from the AAE) for a specific timeperiod? For example, i want to know how many messages go through the PI (including AAE) on one day.

  • Adobe 8.1.2

    I am running WXP and was recently notified by Adobe, and downloaded, Adobe 8.1.2, to replace an earlier version. I just received, via the Internet, a PDF in Adobe 7.0. In the past, when I clicked on this sort of attachment, I recall that it would aut