Displaying 10 records per page in JSP

Hello There,
I have vector that is populated from the sql resultset and I'm trying to use the vector in jsp to grab 10 records at a time and then have a Navigation Buttons (Next 10, Previous 10) etc. that would get the data from the vector.
Does anyone have sample code that already does this type of functionallity. Your help will be greatly appreciated in advance.
Email [email protected]
Thanks Again In Advance.

Hello There,
I have vector that is populated from the sql resultset
and I'm trying to use the vector in jsp to grab 10
records at a time and then have a Navigation Buttons
(Next 10, Previous 10) etc. that would get the data
from the vector.
Does anyone have sample code that already does this
type of functionallity. Your help will be greatly
appreciated in advance.the way i've seen this done is to pass range parameters to the JSP as query parameters in the URL.
<% int begin = Integer.parseInt(request.getParameter("begin"));
   int end = Integer.parseInt(request.getParameter("end"));
   int max = vector.size();
%>...static content here...
<% for (int i = begin; i < max && i <= end; ++i)
%>...interrogate element i of the vector...
<% } %>then have the links in your page to advance to the next set call the JSP itself with the begin and end parameters appropriately incremented.
--p                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to display 20 records per page in jsp

    Hi All,
    I have table contains 1000 records. How can i display 20 records per page using jsp.
    can anyone help...

    hi, I am unable to use the ejb in my jsp page. Really? Then why not ask a question in the JSP or EJB forum?
    I want
    the output of my ejb in jsp page.
    if possible please suggest me .Do you? Whats the output? What are you trying to do? Where's your code? What's the problem? Have you even bothered to read the tutorial?
    >
    thanxNo, thank you....
    ....for posting another non-sensical useless post in the wrong forum

  • Display 20 records per page -- Pls help

    I am using sql query which returns some 1000 records, i have to display 20 records per page. I am using an enterprise bean that has finder method which returns arraylist of records. From this arraylist i am displaying in the JSP page. If after selection, if other user updates in the database, This won't reflect in the jsp page. How should i go about?

    oops,
    Implementing a Data Cache using Readers And Writers
    By Billy Newport, EJB Consultant
    http://www.theserverside.com/resources/article.jsp?l=Readers-Writers
    You may have come across a situation where you need to cache some data in your server. You then use this cache to service queries from incoming requests. You will also probably have a thread that listens for cache update events. This thread updates the cache in response to these events.
    This leads to a problem as it's unlikely that both the threads servicing requests and the update thread will be able to use your cache simultaeneously. You may be tempted to use an exclusive lock such as a Java synchronised block to handle this. This will work but it is probably the worst way that you can do this from a performance perspective. This articles shows how you can use reader writer locks to accomplish the same thing using a much more efficient technique.
    Reader writer locks.
    How to detect changes to the database?
    We can place triggers on a table. These triggers can call a stored procedure when-ever a record is updated/inserted or deleted. If we are caching the data in our application server then obviously when this happens we will want to know about it. We can split databases in to two categories when we look at implementing this. Oracle and everybody else.
    Oracle 8i
    Oracle is the most elegant. I'm assuming you're using Oracle 8i. Oracle 8i has a builtin JMS mechanism. We can define a queue in Oracle. Our pl/sql (or Java) stored procedure gets attached to the trigger. The stored procedure enqueues a message on the Oracle queue. The message would describe the event that happened. Our application servers will run a thread inside the application server VM that subscribe to and then listen to this queue. When a legacy system or an application server modifies the database then our triggers will call this stored procedure. It then enqueues the message. If the transaction is commited then the message is commited and sent to the listeners. If the transaction is rolled back then it is not commited and not sent. If the transaction is commited then all our application servers will receive the message. They can then use the message contents to see what happened and update the cache accordingly.
    Oracle 8 includes a full JVM. You could as an alternative use a Java stored procedure to multicast the event or send the event any way you choose. This isn't possible using Sybase or DB2 as they don't include the java.net package in the VM inside the database.
    If you're using an older version of Oracle then there is a way to send messages over an Oracle connection from the server to a client. Check your OCI manual for details. This message will be sent though regardless of the transaction outcome unlike the Oracle AQ solution.

  • Restricting to Display 2 records per page simulteneously in Graph & Report

    Hi
    I am calling a column chart from Report using custom Query and I am mapping the Chart Column property in Report respectively to the chart.
    The Repeating frame with respect to the Reports Records 'Max. records property' is set to 2. Hence the chart and the Report records are on the 3 pages as the Total records are 6.
    But the chart is plotting all the 6 records even though the Report populates only 2 records per page. I require it to plot only respective records of the Report for that page in the chart not all the 6 records.
    Pl. let me know how to Proceed
    Thanks
    Prakash H L

    akshatha wrote:
    i am doing small project in jsp there i have search engine
    if you type anything into the search textbox( either number or character) and the search result should display 10 records per page and the 11th records should go to the next page.
    i have 3 files i search data from the database through array list in servlet and forwarded to the jsp page .
    in jsp page i require 3 buttons thery are print, next and previous.You need paging. Helpful Google keywords will be "paging", "pagination" in combination with "jsp". Try it.
    In a nutshell: just remember 2 variables: the first row to be displayed and the row count to be displayed at once. Add at least 2 buttons which changes those variables. The Next button which increments the first row value with the row count value. The Previous button which decrements the first row value with the row count value. Fairly straightforward. If you unfortunately find it hard somehow, consider a 3rd party paging tag library, such as Displaytag. Google can find it either.
    The print button can be just a plain dumb button with only Javascript's window.print() in its onclick attribute.
    i am giving piece of code
    if anybody knows please correct it or Almost nobody here is going to read an unformatted piece of code nor going to fix it. Use code tags and ask questions the smart way.

  • Displaying 10 records per page

    hi,
    somebody please help me.....
    i have a list of more than 20 records which i get
    from database and then i put it in session.
    i have to display 10 records per page only and
    on the same page i'd like to have links to page
    numbers to view next set of records.
    example is how googel displays its search results.
    ex. [ 1 2 3 4 5 ]
    THANKS A LOT!

    this can be done using the pagination technique.
    [email protected]

  • Display 20 records per page

    i want to do one stuff....
    i retrieved database data using below satement......
    i want to display 20 records per page...and per page having two image of next and back..when i click to next ..it displays next 20 records...vice versa...
    PreparedStatement sql = conn.prepareStatement("select * from pay_header");

    Hello abhit,
    If you don't know how to use tag libraries, you can do it ur own.
    Just take your data in a List or Vector.
    Keep two hidden fields with the startIndex as 0 and endIndex as 20.
    update this values as 20 and 40 respectively after first iteration.
    Now for each button click prev or next ,update ur loop control values as such there in the hidden fields.
    use while loop and a boolean variable to indicate backward or forward moving. ok
    If you are using this approach and want to know how to more please let me know.
    Enjoy.......
    kuttus

  • Data Merge, its is possible to display 5 records per page?

    I have no problem doing data merges.  They always seem to only show one record per page, but is there a way to be able to display more records per page?

    Read the help for a full explanation, then come back here with specific questions if you still have problems...
    Basically, you set up a single instance of field placeholders on you page, then select multiple records per page in the merge options. You cannot specify a number directly, but ID will reprduce as many records on the page as all elements will fit using the spacing settings you set up, so you might want to add an empty frame the size required to get your five instances with zero spacing and group it with the field tags.

  • SapScript is displaying one record per page...

    Hi friends,
    I am getting a problem in scripts.
    when i am displaying multiple records in the main window it is displaying a single record per each page, like if i have 20 records it is displaying 20 pages and in every page one record
    how to resolve this
    plz assist me
    is there any wrong in tagcolumn i.e. / , /: , *
    how i have to maintain them
    Edited by: Alvaro Tejada Galindo on Feb 22, 2008 6:15 PM

    Kindly check ou script & program i think somewhere new-page is written. that'why each record is printing on new page.
    anya

  • Displaying 10 records per page where records are unknown

    I'm new to programming. I'm trying to create a form that does the following in jsp/javascript
    Displays 10 rows, each row containing a record if records exceeds 10, it will display the remaining records on another page.The first form will contain a link to the second form and the second form will contain the link to the first. So basically there could be infinite number of forms containing 10 rows each on each form each displaying a link to the other forms. So each page at the bottom will have something like this <<previous [1][2][3][4][5]next>>.The algorithm seems complicated and I don't know how to generate another page for displaying the extra records. Is this complicated.Can someone please show me how this is done...HELP
    thanx in advance
    legato_bluesummers
    Here is the code I have currently my apologize for the length. this code is called by another page:
    <%@include file="header.jsp"%>
    <%@ page import="java.sql.*" errorPage="error.jsp"%>
    <%
    String connectionURL=
    "jdbc:mysql://localhost:3306/studentdatabase?username=username;passwrod=password";
    Connection connection = null;
    Statement statement=null;
    ResultSet rs=null;
    %>
    <html>
    <head>
    <%@include file="btechreportheader.jsp"%>
    </head>
    <body bgcolor="#efefef" text="#000000" link="#ffcc99">
    <form name="btechreport" method="post" action="deletestudent.jsp">
    <table width="100%" border="1" cellpadding="2" cellspacing="0" height="6">
    <tr bgcolor="#efefef">
    <td width="8%" height="18">
    <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Date</font></div>
    </td>
    <td width="10%" height="18">
    <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Student
    ID</font></div>
    </td>
    <td width="11%" height="18">
    <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Student
    Name</font></div>
    </td>
    <td width="15%" height="18">
    <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Email
    Address</font></div>
    </td>
    <td width="13%" height="18">
    <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Course
    Taken</font></div>
    </td>
    <td width="15%" height="18">
    <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Course
    Uncompleted</font></div>
    </td>
    <td width="6%" height="18">
    <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Qualified</font></div>
    </td>
    <td width="6%" height="18">
    <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Applied</font></div>
    </td>
    <td width="6%" height="18">
    <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Accepted</font></div>
    </td>
    <td width="6%" height="18">
    <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Delete</font></div>
    </td>
    </tr>
    <%
              String separator = "-";
              String sYear = request.getParameter("startYear");
              String sMonth= request.getParameter("startMonth");
              String sDate = request.getParameter("startDate");
              String startTime = sYear+separator+sMonth+separator+sDate;
              String eYear = request.getParameter("endYear");
              String eMonth= request.getParameter("endMonth");
              String eDate= request.getParameter("endDate");
              String endTime = eYear+separator+eMonth+separator+eDate;
         Class.forName("org.gjt.mm.mysql.Driver").newInstance();
         connection = DriverManager.getConnection(connectionURL, "", "");
         statement = connection.createStatement();
         rs=statement.executeQuery("SELECT students.studentid, students.firstname, students.lastname, students.email," +
                                       "btechpre.cisy1212, btechpre.cisy2311, btechpre.cisy2313, btechpre.cisy2314, btechpre.cisy2315," +
                                       "credential.recdate, credential.qualified, credential.accepted, credential.applied FROM students, btechpre, credential " +
    "WHERE students.studentid=credential.studentid AND credential.studentid=btechpre.studentid AND credential.recdate BETWEEN '"+startTime+"' AND '"+endTime+"' ");
         //SELECT DATE_FORMAT(date,'%M %d, %Y') from data
         while(rs.next())
              String cisy1212=rs.getString("cisy1212");
              String cisy2311=rs.getString("cisy2311");
              String cisy2313=rs.getString("cisy2313");
              String cisy2314=rs.getString("cisy2314");
              String cisy2315=rs.getString("cisy2315");
    %>
    <tr bgcolor="#efefef">
    <td width="8%" height="18"><%= rs.getString("recdate")%></td>
    <td width="10%" height="18"><%= rs.getString("studentid")%>
    <input type="hidden" name="studentid" value="<%= rs.getString("studentid")%>"></td>
    <td width="11%" height="18"><%=rs.getString("firstname")%>
    <%=rs.getString("lastname")%></td>
    <td width="15%" height="18"><a href="mailto:<%=rs.getString(email")%">"><%=rs.getString("email")%></a></td>
         <td width="13%" height="18"> <%
                   if((cisy1212!=null) || (cisy2311 !=null) ||(cisy2313!=null) ||(cisy2314!=null) ||(cisy2315!=null))
                   %> <%=cisy1212%>,<%=cisy2311%>,<%=cisy2313%>,<%=cisy2314%>,<%=cisy2315%></td>           
         <td width="15%" height="18"><%=rs.getString("cisy1212")%>,<%=rs.getString("cisy2311")%>,<%=rs.getString("cisy2313")%>,<%=rs.getString("cisy2314")%>,<%=rs.getString("cisy2315")%></td>
    <td width="6%" height="18"><%=rs.getString("qualified")%></td>
    <td width="6%" height="18"><%=rs.getString("applied")%></td>
    <td width="6%" height="18"><%=rs.getString("accepted")%></td>
    <td width="6%" height="18">
    <input style="BACKGROUND-IMAGE: url(file://C:\jakarta-tomcat-4\webapps\CISY2415\images\trash2.gif); WIDTH: 28px; HEIGHT: 36px; BACKGROUND-COLOR: #efefef" type=submit name=delete size=14 onClick="alert('Do you want to delete the record?')">
    </td>
    </tr>
    <% } //end while()
         //clean up
         if(rs!=null) rs.close();
         if(statement!=null) statement.close();
         if(connection!=null) connection.close();
    %>
    </table>
    </form>
    </body>
    </html>
    </a>

    You can avoid all of this cumbersome code by using tags:
    http://www.dotjonline.com/taglib/grid.jsp

  • Monthly  search &  how to display 15 records per page with next & back btn

    hi
    i m trying to find records using select statement.
    i want to get record pagewise. its a simple code. i m sending
    plz if anybody have any solution or suggestion try to solve it out
    one more thing i have a field in my database as a date.
    i want a monthly search. what will be query.
    i'll be thankful 4 any help
    regards
    <html>
    <head>
    <title>search</title>
    </head>
    <body>
    <body bgcolor="#B0C4DE">
    <%@ page language="java" import="java.sql.*"%>
    <form>
    <table width="45%">
    <%
        String param = request.getParameter("Str");
        if(param == null)
           param="";
    %>
            <td width="128"><font color="#800080"><h3>Enter Date</h3></font</td>
              <td width="150">
              <input type="TEXT" name="Str" size="15" />
              <form action="menu01.jsp" method="post" name="ser_chk1.jsp"></td>
              <td>
            <BUTTON name="post" type="submit"><img src="m162.gif" width="25" height="25" border="" alt="Search Now" /></BUTTON></td>    
    </form>      
    </tr>
    </table>
    </form>
    <%  
      if(!param.equals("")) {
       Connection con = null;
       ResultSet rs = null;
       PreparedStatement pstmt = null;
      try
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          con = DriverManager.getConnection("jdbc:odbc:database");
          String sql = "SELECT * FROM data, data1  WHERE gate_pass=gate_pass1 AND ser_no=ser_no1 AND nat_ure=nat_ure1 AND ven_dor=ven_dor1 AND sou_rce=desi_g1 AND desi_g=sou_rce1 AND d_o_s LIKE ?";
          pstmt = con.prepareStatement(sql);
          pstmt.setString(1, param);
          rs = pstmt.executeQuery();  
    %>
    <table border="" width="1200">
    <tr>
            <th><font color="#800080">Serial No</font></th> 
            <th><font color="#800080">Nature</font></th>
            <th><font color="#800080">Description</font></th>
            <th><font color="#800080">Problem</font></th>       
            <th><font color="#800080">Vendor</font></th>
            <th><font color="#800080">Employee No</font></th>
            <th><font color="#800080">Employee Name</font></th>
            <th><font color="#800080">GatePass</font></th>
            <th><font color="#800080">Return Status</font></th>
            <th><font color="#800080">Source</font></th>
            <th><font color="#800080">Desigation</font></th>
            <th><font color="#800080">Source Out</font></th>
            <th><font color="#800080">In Desi</font></th>
            <th><font color="#800080">Vendor In</font></th>
            <th><font color="#800080">Vendor Out</font></th>
            <th><font color="#800080">Back Desi</font></th>
            <th><font color="#800080">Employee No</font></th>
            <th><font color="#800080">Employee Name</font></th>
            <th><font color="#800080">Remark</font></th>      
    </tr>
    <%
           while(rs.next()) {
          String serno = rs.getString("ser_no");
          String nature = rs.getString("nat_ure");
          String description = rs.getString("desc_i");
          String problem = rs.getString("prob_lem");
          String vendor = rs.getString("ven_dor");
          String empno = rs.getString("emp_no");
          String empname = rs.getString("emp_name"); 
          String gatepass = rs.getString("gate_pass");
          String retsts = rs.getString("ret_sts");
          String source = rs.getString("sou_rce");
          String desi = rs.getString("desi_g");
          String dos = rs.getString("d_o_s");
          String did = rs.getString("d_i_d");
          String vrd = rs.getString("v_r_d");
          String rfv = rs.getString("r_f_v");
          String dtd = rs.getString("d_t_d");
          String empno1 = rs.getString("emp_no1");
          String empname1 = rs.getString("emp_name1");
          String remark = rs.getString("re_mark1");
    %>
    <tr>
        <td><%= serno %></td>
        <td><%= nature %></td>
        <td><%= description %></td>
        <td><%= problem %></td>
        <td><%= vendor %></td>
        <td><%= empno %></td>
        <td><%= empname %></td>
        <td><%= gatepass %></td>
        <td><%= retsts %></td>
        <td><%= source %></td>
        <td><%= desi %></td>
        <td><%= dos %></td>
        <td><%= did %></td>
        <td><%= vrd %></td>
        <td><%= rfv %></td>
        <td><%= dtd %></td>
        <td><%= empno1 %></td>
        <td><%= empname1 %></td>
        <td><%= remark %></td>
    </tr>
    <%
        finally {
                  if (rs != null) rs.close();
                  if(pstmt != null) pstmt.close();
                  if (con != null) con.close();
    %>
    </table>
    </body>
    </html>

    Hi Shi_san
    for monthly search you can use the below query..
    String qry="Select * from tablename where datefield is between '"+value1+"'" and '"+value2+"' ;for Value1 and Value2 you need to put two fields in your form....and user has to enter value like mm/dd/yyyy .....if you don't want to do that then put one option for user which month he wants to see the data...if user select month March then select value1=03/01/2006 and value2=03/31/2006...something like that...
    now for Next and Back button you must be having uniqueID in your table,,,
    First Time display this query.....
    String disprec="Select Top 15 *  from table1 order by uniqueID DESC ";now you need to retrieve last record's value from this page and pass it into you link of Next Button....
    If you click next button then display below query....
    String disprec="Select Top 15 *  from table1 where uniqueID<val1 order by uniqueID DESC ";c if it works...
    Vishu

  • Retrieving 10 records per page

    hi,
    i would like to have the source code for retrieving 10 records per page in jsp. I have a huge resultset and i would like to display 10 records per page.
    your help is highly appreciated.
    regards
    andrew

    hi,
    i would like to have the source code for retrieving 10
    records per page in jsp. I have a huge resultset and
    i would like to display 10 records per page.
    your help is highly appreciated.
    regards
    andrewHey Andrew, this code will help you out. Essentially the pseudocode to do what you want is below. Let's say your jsp is called dbresults.jsp
    Get total number of results from query result set
    If page is called with no index number of current record to display
    Display the records from 0 until a max of ten counting how many we display and keeping track of the current record number.
    end if
    else
    Display the records up to a max of ten from the index number we received in the query
    end else
    tempvar_a is the current number of records displayed minus 10 records and minus the amount of records displayed on this page.
    If tempvar > 0
    Display a previous button with the a href as dbresults.jsp?index=tempvar value
    end if
    else if current record index < total record count
    then there are more records to display so make a next button with an href of dbresults.jsp?index=value of current record number plus one
    end else
    One caveat is that getting the index number in the beginning of the JSP as:
    request.getParameter("VIEWEDROWS");
    will return a string that we have to convert to an int since you will be adding and comparing to this number so do:
    String TEMPVIEWEDROWS = request.getParameter("VIEWEDROWS");
    int VIEWEDROWS = 0;
    if (TEMPVIEWEDROWS != null) {
    VIEWEDROWS = Integer.parseInt(TEMPVIEWEDROWS);

  • IN XML PUBLISHER REPORT WHICH SHOWS 5 RECORDS PER PAGE REG:-

    {color:#0000ff}Dear All,
    Conditionally, i want my XML Report has to be Display only 5 Records per Page..
    If there are hundreds of records in XML file.
    Please, could u help me out..
    Waiting for ur reply..
    Regards,
    Sarfraz.
    {color}

    For 11i, pl see the XML Publisher User Guide at http://download.oracle.com/docs/cd/B25516_18/current/html/docset.html on how to achieve this
    HTH
    Srini

  • Limit records per page in the horizontal looper?

    Might sound confusing, but I'm wondering if/how I can use the horizontal looper to show 30 records per page?
    For example, I have a photo thumbnail collection. I want to show 5 columns and 10 rows. Is there a way to get the looper to put a link to the 'next 50' so the user can see the next 50 thumbnails (starting at thumbnail 51 of course)?
    thanks

    I guessing here but there must be a bit of php code that you can edit that limits the number of records to be displayed instead of the default value of 10.

  • I want to diaplay my records from the databasewith 10 records per page. i l

    i want to diaplay my records from the databasewith 10 records per page. i learned that it can be done through pagination . Please can anyone there help me and give me the code of how to page my records in my jsp pages
    I have small code ,but its not working....
    below is the code....
    public ResultSet codeResult(int i){
    if(dataSource!= null){
         try {
                             con=dataSource.getConnection();
         stmt=con.createStatement (ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);
         int maxRows=stmt.getMaxRows();
         System.out.println("the maxRows is:"+maxRows);
         System.out.println("the I value is:"+i);
         if((i < 0) || (i > maxRows)){
              i=0;
         stmt.setFetchSize(i);
         long t = System.currentTimeMillis();
         rs=stmt.executeQuery("select asc_code,countrycode,asc_name,asc_address1,asc_address2,asc_city,asc_country,asc_region,asc_contact_person,asc_contact_no,asc_email_id,asc_fax_no,nso_incharge,nso_email,ar_ap_code from asc_master order by asc_code asc");
    but,its giving all records...
    any one help me on this........
    Thank you,
    D.Nagireddy.                    
                        } catch (SQLException e) {
                             e.printStackTrace();
              return rs;
              }

    hey, here my code for paging. hope it helps...
         public void DueRecordInfo(int page,int MAX_PER_PAGE)
              con = new DBConnection().getConnection();
             try
                     Statement stmt = con.createStatement();
                     String sqlcount = "SELECT COUNT(*) FROM INFO WHERE TO_DATE(DATEUPDATED,'Month DD, YYYY') < ADD_MONTHS(SYSDATE,-6) AND OBSOLETE LIKE 'No'";
                     ResultSet rscount = stmt.executeQuery(sqlcount);     
                    rscount.next();
                    total_row_count = rscount.getInt(1);
                  lowerbound = (page * MAX_PER_PAGE - (MAX_PER_PAGE))+1;
                  upperbound = lowerbound - 1 + MAX_PER_PAGE;
                  String sql = "Select * from "+
                                    "(SELECT row_number() over(ORDER BY TO_DATE(DATEUPDATED,'Month DD, YYYY') DESC) AS RN,ID,SPECNO,REVISEDNO,DATEREVISED,TITLE,ORIGINATOR,DCBNUMBER,DCBLOCATION,OBSOLETE,DATEOBSOLETE,WORDFILE,PDFFILE,DATEUPDATED FROM INFO WHERE TO_DATE(DATEUPDATED,'Month DD, YYYY') < ADD_MONTHS(SYSDATE,-6) AND OBSOLETE LIKE 'No') " +
                                    "WHERE RN BETWEEN "+ lowerbound + " AND " +upperbound;
                   ResultSet rs = stmt.executeQuery(sql);
                  while (rs.next())
                         id.add(num, rs.getString("ID"));
                         specno.add(num, rs.getString("SPECNO"));
                         revisedno.add(num, rs.getString("REVISEDNO"));
                       daterevised.add(num, rs.getString("DATEREVISED"));
                       title.add(num, rs.getString("TITLE"));
                       originator.add(num, rs.getString("ORIGINATOR"));
                       dcbnumber.add(num, rs.getString("DCBNUMBER"));
                       dcblocation.add(num, rs.getString("DCBLOCATION"));
                       obsolete.add(num, rs.getString("OBSOLETE"));
                       dateobsolete.add(num, rs.getString("DATEOBSOLETE"));
                       wordfile.add(num, rs.getString("WORDFILE"));
                       pdffile.add(num, rs.getString("PDFFILE"));
                       dateupdated.add(num, rs.getString("DATEUPDATED"));
                         num++;
                   con.close();
                   rscount.close();
                   rs.close();
                   stmt.close();
             }

  • Limit the number of records per page in webi

    Hello All,
    How do i limit the number of records per page in webi?
    i was asked to have not more than 20 records per page.
    In " NUmber of Vertical records per page"(Quick display mode) the default value was 100, i am trying to set it to 20 ...but its not updating....its still taking 100.
    I am on BO XI 3.1 Sp2 fix pack 3
    Please let me know a way to accomplish this.Any inputs appreciated
    Thanks

    It can be done as follows:
    1. create a variable at report level as:
            v Test = Floor(RowIndex()/20)
    2. Added this variable in the Block as a new column.
    3. Select the v Test column, Right Click and set as section (also you can apply break).
    4. Go to structure mode select section\break and go to properties tab and select the property "Start on new page".
    Regards,
    Rohit

Maybe you are looking for