Showing 10 records at a time in a multirecord block

Hello,
I have a requirement to show 10 records at a time,consider a table in which
there are 100 records which is associated to a multirecord block,in order to have a web look and feel I need to show first 10(1 to 10) record on load,when the user presses the button "Next 10 records", I need to replace the first 10 records with new set of 10 records(11 - 20),
Please note that no of records to be displayed at a time will be 10 and our requirement is avoid scroll bar.
Any suggestions as to how I need to accomplish the task above.
Thanks and Regards
Mohan

You don't need a special button for this because the user can already navigate using the cursor keys and page up/down keys.
For cursor keys use the key-up, key-down, key-nxtrec and key-prvrec triggers.
For page up/down use the key-scrup and key-scrdown triggers.
I suppose the menu option "Query > Fetch Next Set" (key-nxtset) should operate the same as page down.
An example of the key-scrdown trigger is thisdeclare
     numrecs integer := get_block_property('EMP',records_displayed);
     toprec integer := get_block_property('EMP',top_record);
     thisrec integer := :system.trigger_record;
begin
     go_record(toprec + (2 * numrecs) - 1);
     go_record(thisrec + numrecs);
end;This will advance by as many records are in the block and leave the cursor positioned on the same record relative to the top of the block. Eg if there are 10 rows in the block and you're on the first set then the top record will be 1 and you want to make the new top record 11. So you need to call go_record(20), which makes that the bottom record and 11 the top one.
You'll need to work out how the form should behave when the number of records in the block is not exactly divisible by the number of records in the data because forms won't allow blank records to pad out the bottom of the block and records_displayed isn't a settable property at runtime. So if there are 10 rows in the block and 103 rows of data then the penultimate page will show records 91-100 and the last page will show records 94-103. Should scrolling back up show record 91 at the top, or 84?
For the key-down/key-nxtrec trigger you'll probably want something like thisdeclare
     numrecs integer := get_block_property('EMP',records_displayed);
begin
     if :system.last_record != 'TRUE' then
          if mod(:system.cursor_record,numrecs) = 0 then
               -- last record in this set
               go_record(:system.cursor_record + numrecs);
               go_record(:system.cursor_record - (numrecs - 1));
          else
               next_record;
          end if;
     end if;
end;If you're at the bottom of one set it will show the next set and go to the top record, otherwise it will just go to the next record. But again, this breaks down when the number of rows in the block and in the data don't divide up evenly.
I hope this is enough to get you started.

Similar Messages

  • DVR - 2 shows recording at same time have a 1 minute difference between start times

    When recording 2 shows at the same time, with exactly the same start and end times, one will start ~30 seconds early, and the other will start ~30 seconds late. Why would this happen?
    I keep missing the beginning of some shows, and the end of others.
    Background
    Cisco 435HDC
    None of my recordings have a modified start or end time, everything is set to "on time"
    This happens whether a show is being recorded prior to the 2 or not
    I have already done all of the basic troubleshooting, which is to say, I've confirmed this problem on numerous occasions, in different situations, at different times, series or non-series, etc.
    Also, is there a way to refresh the time on the DVR? To get it to pull from the time server, whatever that may be? My clock drifts, causing me to miss either more of the beginning of a show, or more of the end.
    Thanks for your help!

    Your physical setup seems fine, the articles you read are correct about turning off DHCP on the Dlink. I would do the following:
    A. You didn't mention it but you need to have the dlink wired from Westell Port 1,2,3, or 4, to DLINK Port 1,2,3,or 4 (not the wan ports on either router) if you haven't already.
    B. Turn off DHCP on the DLINK and set the gateway IP on it to something different than 192.168.1.1 of the Westell ( I think you may have been getting out of range error from trying to set a static wan ip on the dlink ( just a guess based on info available).
    I have a similar setup at home with an Actiontec and a Linksys WRT-54G. I have mine setup this way. Since everything is on the LAN side of the routers you shouldn't run into any more trouble with your work group/ windows network.
    I found the emulator for the 825, it should look something like this when you are done:
    Hope this is helpful.
    Lee_VZ

  • When i execute code, it shows "Record 1/?" and takes too much of time to execute.

    Hi all,
    I have s form with push_button (SEND TO BACKUP).
    For this push button - SEND TO BACKUP, i have coded the below for Trigger - WHEN BUTTON PRESSED.
    DECLARE
      CNT NUMBER;
      TEMPDATE DATE;
    CURSOR C1 IS SELECT MAT_DESC, FRAME, FSIZE,    POLES, NUMS, DRG_NO,    RM_WT, FIN_WT, RATE,    FRAMENAME, FTYPE, CHND_DATE,RATESOFPO
    FROM RMC_INACTIVE_MAT_RATES_MP;
    BEGIN
      FOR I IN C1 LOOP
       SELECT COUNT(CHND_DATE) INTO CNT FROM RMC_INACTIVE_MAT_RATES_MP_PREV WHERE CHND_DATE=I.CHND_DATE;
      IF CNT > 1 or cnt=1 THEN
       MESSAGE('INACTIVE MATERIAL RATES FOR MEGAPACK  ALREADY EXIST IN BACKUP WITH THIS DATE ');
      MESSAGE(' ');
      Raise Form_Trigger_Failure;
      end if;
    end loop;
      FOR I IN C1 LOOP
      INSERT INTO RMC_INACTIVE_MAT_RATES_MP_prev(MAT_DESC, FRAME, FSIZE, POLES, NUMS, DRG_NO,    RM_WT, FIN_WT, RATE,    FRAMENAME, FTYPE, CHND_DATE,
      RATESOFPO )
      VALUES(I.MAT_DESC, I.FRAME, I.FSIZE, I.POLES, I.NUMS, I.DRG_NO,    I.RM_WT, I.FIN_WT, I.RATE,    I.FRAMENAME, I.FTYPE, I.CHND_DATE,I.RATESOFPO  );
      END LOOP;
      COMMIT  ;
      MESSAGE('DATA HAS SENT SUCCESSFULLY ');
      MESSAGE(' ',NO_ACKNOWLEDGE);
    END;
    It is working but with lot of delay, it takes too much of time.
    After i run this form & as i press the button, it shows "Record 1/?" in the below and it takes almost 5 mins to execute completely and dhow the message.
    Can you tell why is it showing "Record 1/?" below ???
    How to reduce the delay??
    Thank You.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production

    If you want to suppress the message shown in status you can set the sevearity like :system.message_level          := '20';
    Can you change your code like
    :system.message_level          := '20'; --- To suppress the default messages
    DECLARE
      CNT NUMBER;
      TEMPDATE DATE;
    CURSOR C1 IS SELECT MAT_DESC, FRAME, FSIZE,    POLES, NUMS, DRG_NO,    RM_WT, FIN_WT, RATE,    FRAMENAME, FTYPE, CHND_DATE,RATESOFPO
    FROM RMC_INACTIVE_MAT_RATES_MP;
    BEGIN
      FOR I IN C1 LOOP
       SELECT COUNT(CHND_DATE) INTO CNT FROM RMC_INACTIVE_MAT_RATES_MP_PREV WHERE CHND_DATE=I.CHND_DATE;
      IF cnt >= 1 THEN
       MESSAGE('INACTIVE MATERIAL RATES FOR MEGAPACK  ALREADY EXIST IN BACKUP WITH THIS DATE ');
      MESSAGE(' ');
      Raise Form_Trigger_Failure;
      end if;
    end loop;
      FOR I IN C1 LOOP
      INSERT INTO RMC_INACTIVE_MAT_RATES_MP_prev(MAT_DESC, FRAME, FSIZE, POLES, NUMS, DRG_NO,    RM_WT, FIN_WT, RATE,    FRAMENAME, FTYPE, CHND_DATE,
      RATESOFPO )
      VALUES(I.MAT_DESC, I.FRAME, I.FSIZE, I.POLES, I.NUMS, I.DRG_NO,    I.RM_WT, I.FIN_WT, I.RATE,    I.FRAMENAME, I.FTYPE, I.CHND_DATE,I.RATESOFPO  );
      END LOOP;
      COMMIT  ;
      MESSAGE('DATA HAS SENT SUCCESSFULLY ');
      MESSAGE(' ',NO_ACKNOWLEDGE);
    END;

  • I have iwork on two computers, but my account doesn't show record of it for my being able to reinstall on the new computer.  Is there a time limit?  I tried airdrop, but it won't let me use it.

    I have iwork on two computers, but my account doesn't show record of it for my being able to reinstall on the new computer.  Is there a time limit?  I tried airdrop, but it won't let me use it.

    Sounds like you installed iWork from before there was the Mac App Store.
    If you installed it from a Family DVD you are entitled to install that on 5 computers and can do that from the DVD.
    If not then you need to purchase it from the M.A.S. and will be able to install it on any of your computers using the same Apple I.D. However Apple is promising a new version before Christmas so it may not be a good time to buy now.
    Peter

  • Adjust recording end time on a 6416 for a single show recording.

    This may seem like a dumb question but I can't see how to set the stopping time of a recording to end say 30 minutes later.
    I think I just received 1.6 last night, but I couldn't see how to do this in the previous release either.
    In my defense, I normally use a TiVo for recording, but sometimes I have to use the Verizon 6416.
    I was able to do this with an older release. 
    I can see how to do it with a series recording, but not with a single show recording.

    Got to DVR menu, select View Schedule, select the show in question and one of the options is something like change or recording options (not at my STB so not sure of the exact wording).  There is a place to modify the start / end times by preset increments.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • Challenge involving creating a file on GUI & seeing one record at a time...

    Hi,
    If anyone can help me with this project I'd be most appreciative. I'll try and explain the problem the best I can. I'm adding students to a database at a university they're either a Graduate or an Undergraduate. I'm taking in first, lastname's, ssn, & ACT/SAT/GMAT test results. I have a GUI called StudentRecord that has all the JTextFields, JButton's, etc. I'm also writing it to a .txt file called StudentDA. For this I used a BufferedFile reader.
    What I really need is on my StudentRecord when I click the display button I want it to show one record at a time in another JFrame. This other JFrame I named it display. I'm trying to create an instance of JFrame inside of the actionPerformed for StudentRecord but when I click display nothing happens.
    I adding the students with a vector that I'm calling v. I want the Display to read from the .txt file and display one at a time hence next, and previous. I'm going to post the tidbit of relevant code. If anyone can help me you'd be my hero for the day for all time I've tried to get this to work.
    Here's the StudentRecord (GUI) display part:
          public void actionPerformed( ActionEvent event )
         try {
              Display d = new Display(StudentDA.v);
             }//end try
            //catch right here no problems with this..Here's the DataAccess part:
    public class StudentDA{
      static Vector v = new Vector();;
      static String pathName = "a:/Final Project/test1.txt";
      static File studentFile = new File(pathName);
      static String status;
      public StudentDA() {}
      public static void initialize() {
        if (studentFile.exists() && studentFile.length() !=0) {
         try{
          BufferedReader in = new BufferedReader(new
          FileReader(studentFile) );
          do{
             status = in.readLine();
              if(status.equals ("uGrad")) {
                uGrad u = new uGrad();
                u.setFName(in.readLine() );
                u.setLName(in.readLine() );
                u.setssNum(Integer.parseInt(in.readLine()) );
                u.setACT(Integer.parseInt(in.readLine() ));
                v.add(u);
                System.out.println(u + "inside ugrad");
              }//end if uGrad
              else{
                if(status.equals("Grad")) {
                //same process as uGrad
                v.add(g);
              }//end else Grad
          }while (status != null);
        }//end try statement
        catch (Exception e) {
          }//end catch
        }//end if there's something there
      }//end method initialize
      //creating the terminate method
      public static void terminate() {
        try{
          PrintStream out = new PrintStream ( new
          FileOutputStream (studentFile) );
          for (int i = 0; i < v.size(); i++) {
            Student s = (Student) v.elementAt(i);
            String p = s.printRecord();
            StringTokenizer rt = new StringTokenizer(p, "\t");
            while (rt.hasMoreTokens() ) {
              out.println(rt.nextToken() );
              }//end while
          }//end for loop
        }//end try loop
        catch (Exception e){
        }//end catch
      }//end terminate
    public static void add(Student s){// throws DuplicateException{
              boolean duplicate = false;
              for(int i = 0; i < v.size(); i++){
                   if(s.getssNum() == ((Student)(v.elementAt(i))).getssNum()){
                        duplicate = true;
                        break;
                   if(duplicate){
                        throw new DuplicateException("Student Already Exists");
                   else{
                        v.add(s);
    }//end add method
    }//end classHere's the display class:
    public class Display extends JFrame {
         private JButton Next, Previous;
         private JTextField statusField, firstField, lastField, socialField, advPlacementField, actField;
         private JLabel statusLabel, firstLabel, lastLabel, socialLabel, advPlacementLabel, actLabel;
         private JPanel fieldPanel, buttonsPanel;
         private JTextArea displayArea;
         static int count = 0;
         static String status;
         public Display(){}
    public Display(Vector v){
         //setting up the GUI components for the display class here
         //JTextAreas & JLabels
         buttonsPanel = new JPanel();
         buttonsPanel.setLayout(new GridLayout(1,2));
        Next = new JButton("Next");
        buttonsPanel.add(Next);
        Next.addActionListener(
        new ActionListener() {
          public void actionPerformed( ActionEvent event )
              //try to catch display errors
           try {
                        count++;
                     displayData(count);
                     //displayData();
          }//end try
              catch {
             }//end catch
          } // end actionPerformed
        } // end anonymous inner class
        ); // end call to addActionListener
        buttonsPanel.add(Next);
        Previous = new JButton("Previous");
        buttonsPanel.add(Previous);
        Previous.addActionListener(
        new ActionListener() {
          public void actionPerformed( ActionEvent event )
              //try to catch display errors
              try {
                   count--;
                   displayData(count);
                   //displayData();
             }//end try
              catch {
             }//end catch
          } // end actionPerformed
        } // end anonymous inner class
        ); // end call to addActionListener
    }//end display() constructor
    public void displayData(int count) {
         StudentDA.initialize();
           if (status.equals ("uGrad")) {
           //these are all part of the StudentRecord GUI not Display GUI
                fieldPanel.setVisible(true);
                buttonsPanel.setVisible(true);
                actLabel.setVisible(true);
                actField.setVisible(true);
                advPlacementLabel.setVisible(false);
                advPlacementLabel.setVisible(false);
           }//end if
           else {
                if(status.equals ("Grad")) {
                 fieldPanel.setVisible(true);
                 buttonsPanel.setVisible(true);
                 actLabel.setVisible(false);
                 actField.setVisible(false);
                 advPlacementLabel.setVisible(true);
                 advPlacementLabel.setVisible(true);
                  }//end if
           }//end else
    }//end method displayData()
    public static void main ( String args[] )
        Display application = new Display();
        application.addWindowListener(
              new WindowAdapter(){
                   public void windowClosing( WindowEvent e)
                        System.exit(0);
        application.setSize( 300, 200);
        application.setVisible( true );
    };//end main
    }//end class Display{}I know this is long but if anyone can help I'd greatly appreciate it. Please ask me if you need me to clarify something, I tried to not make it way too long. --rockbottom01
         

    I'm not really too sure what it is that you are after, but here is some code, that loads up an array with each line of a .txt file, then displays them. I hope you can make use of a least some of it.
    just ask if you don't understand any of the code.
    String array[];
    int i;
    public Test() {
              readFile("file.txt");
              i = 0;
              nextEntry();
         public void nextEntry() {
              Display display = new Display();
              display.show();
         class Display extends JFrame implements ActionListener {
              JLabel label1;
              JButton button;
              public Display() {
                   label1 = new JLabel(array);
                   button = new JButton("OK");
                   getContentPane().setLayout(new FlowLayout());
                   getContentPane().add(label1);
                   getContentPane().add(button);
                   button.addActionListener(this);
              public void actionPerformed(ActionEvent e) {
                   setVisible(false);
                   i++;
                   if(i < array.length) {
                        nextEntry();
         public void readFile(String fileName) {
              String s, s2 = "";
              int lineCount = 0;
              BufferedReader in;
              try {
                   in = new BufferedReader(new FileReader(fileName));
                   while((s = in.readLine()) != null) {
                        lineCount++;
                   array = new String[lineCount];
                   in.close();
                   in = new BufferedReader(new FileReader(fileName));
                   int j = 0;
                   while((s = in.readLine()) != null) {
                        array[j] = s;
                        j++;
              catch(IOException e) {
                   System.out.println("Error");

  • How to delete one record at a time

    hi all,
    Please tell me how i do delete only one record at a time.After deleting the record the jsp page should show only the remining items to be deleted.

    Where do u want to delete the record - database?
    If so use the rpimary Screen identifying each record and use that to delet that record

  • Return only one record at a time

    I am new to crystal reports so any help would be appreciated.  I have a .net app that is a order processing system.  When the user is in a record, they want to be able to click on a button an open a crystal report showing only that orders details.  I created a crystal report that has the following fields:
    Order ID, Product ID, Unit Price, Sell Price, Hours.
    The Order ID is the primary key in the database.  The report runs fine when clicking the report button in the app, but returns the details for every order in the database.  We just need the details of the order that the user is processing.  How do I setup the report to only show that order's details?  I am using VB 2005 and Crystal v9.
    Edited by: sking on Mar 6, 2009 1:12 AM

    Brian,
    Thank you for all your help.  I have been able to setup the report to return only one record at a time. In my app, when I click the report button the PDF opens perfectly with only one record.  However, when I go to another record and open the PDF it returns the information from the record id that was set as the default parameter value (crReportDocument.SetParameterValue("Orders", 67).  How do I get it to return the report for a different record?  Here is the code I'm using.  I think I'm really close with your suggestions but I'm just missing one step. 
    #Region "CrystalReport"
         ''' <summary>
         '''Override the CrystalReportButton_Click and call DisplayReportAsPDF_CrystalReportButton function
         ''' </summary>
         Public Sub CrystalReportButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
          Dim crReportDocument As CrystalDecisions.CrystalReports.Engine.ReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument
          Dim fileName As String = "test.rpt"
          Try
              If fileName.Substring(1).StartsWith(":\") Then
              crReportDocument.Load(fileName)
          Else
              crReportDocument.Load(Me.Page.MapPath(fileName))
          End If
          Catch ex As Exception
              Dim errMsg As String = ex.Message.Replace(Chr(13).ToString(), "").Replace(Chr(10).ToString(), "")
              errMsg += " Please make sure the dlls for Crystal Report are compatible with the Crystal Report file."
              BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(Me, "BUTTON_CLICK_MESSAGE", errMsg)
          End Try
          Try
    Dim paramValue As CrystalDecisions.Shared.ParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue()
               paramValue.Value = "67"
               crReportDocument.SetParameterValue("Orders", 67)
    DisplayReportAsPDF_CrystalReportButton(crReportDocument)
          Catch ex As Exception
              Dim errMsg As String = ex.Message.Replace(Chr(13).ToString(), "").Replace(Chr(10).ToString(), "")
              errMsg += " If this is a deployment machine, make sure network service has permissions to read or write to the windows\temp folder."
              BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(Me, "BUTTON_CLICK_MESSAGE", errMsg)
          End Try

  • Getting only a few records at a time.

    Using a Select * from. Is there an option where I get only so many records. This is for a console application. I wanted some thing where it will display only 3 records at a time. And then I have the option of viewing the next 3 and then the next 3 records
    and so on.
    Any one have any ideas.
    Merry Christmas EVERY ONE and thanks to all the members on msdn forums for helping me with my code.
    Joe Moody
    http://www.starfiresoft.com
    Pro-Forums
    Delta Force Barracks
    On the Frontlines

    Thanks. It doesn't matter as long as I can get it to work. The idea is to display 3 records at a time. Then the user should be able to go backward or forward in the list. Let me show you what I have. This will give you some idea on how I have it displaying
    the info.
    SqlCeCommand cm = new SqlCeCommand("SELECT * FROM users", cn);
    //cm.Parameters.AddWithValue("@tooid", num);
    //cm.Parameters.AddWithValue("@fromid", Id);
    SqlCeDataReader rd = cm.ExecuteReader();
    try
    while (rd.Read())
    Door.CursorRight(10);
    Door.WriteLn("|0C___________________________________________________");
    Door.CursorRight(10);
    Door.WriteLn("|0FId |04: |03" + rd["Id"].ToString() + " |0FName |04: |03" + rd["username"].ToString());
    Door.CursorRight(10);
    Door.WriteLn("|0FStatus |04: |03" + rd["status"] + " |0FDate Jointed |04: |03" + rd["joindate"]);
    Door.CursorRight(10);
    Door.WriteLn("|0C___________________________________________________");
    catch (Exception e)
    throw new Exception(e.Message);
    cn.Close();
    This is inside of a do loop. and at the bottom I have it waiting for user input. or the user can quit and return to the main menu.
    Door.WriteLn();
    Door.Write("|07Page |0F<|04||0F> |0FQ|09)|0BQuit |07Choice |04: |0C");
    cc = Char.ToUpper(Door.ReadKey());
    Above is my prompt. This waits for user input. and I use a switch to tell the software what to do. Any way if you want to know what Door.writeLn() is, Think of it like this "Console.Writeline()". This is just a library I use for the kind of programming I
    do.Any help would be great. Thanks and have a safe Xmas.
    Joe.
    http://www.df-barracks.com Delta Force Barracks
    http://www.starfiresoft.com Starfire Software

  • XML import only creates one record at a time

    Hi All,
    I have an XML import map that automatically imports data into main product table. It's working fine when the XML file has only one main record. When it has more than one record, the import manager and import server can only import the last record in the file and skip the rest.
    I already checked the record matching tab. It correctly shows that all records will be created and 0 will be skipped. Even the log file indicates all records are created after I execute the map. Yet, when I try to look for them in the data manager, I can only find the last one. If I execute the map with the exact same file again, it will create one more record again and skip the rest.
    Someone else posted the same question a while back: Import map issue one record at a time. But it was never answered. Does anyone else have this issue? Is this a MDM bug?
    Thanks,
    Kenny

    Hi Kenny,
    Please refer to the note below:
    Note 1575981
    Regards,
    Neethu Joy

  • Need to delete multiple records at a time

    Hi,
    My requirement is to delete multiple records at a time, i am using JDV11g and read only ADF table and rowSelection="multiple".
    i have taken command button and invoking the below method.
    RowKeySet rowKeySet = (RowKeySet)this.t1.getSelectedRowKeys();
    CollectionModel cm = (CollectionModel)this.t1.getValue();
    System.out.println("RowKeySet is: "+ rowKeySet.getSize());
    for (Object facesTreeRowKey : rowKeySet) {
    cm.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData =
    (JUCtrlHierNodeBinding)cm.getRowData();
    System.out.println("RowData is : "+rowData.getAttribute("ParamValue7"));
    rowData.getRow().remove();
    Please do need full

    Hi,
    I don't understand what you mean by "+Please do need full+" , so I am ignoring this part. Here's a link that shows you best practices
    http://blogs.oracle.com/smuenchadf/examples/
    See example 134.
    Frank
    ps.: I suggest you bookmark the link

  • A twist on only getting 20 records at a time

    Hi,
    Goal:
    Generate a search-engine like result page which displays 20 records at a time. Clicking "Next" will permit viewing the next 20 records, and so on.
    Current code:
    A JSP page posts a form to a servlet which, based on form selections, dynamically builds a SQL statement, which in turn is passed to a Bean which queries the DB and returns ALL records. Works great, but returns too much data for a web page (JSP).
    Problem:
    I have posted on the JSP forum, and have only been pointed to sites offering Custom JSP Tags which either query all records at once and only show you X at a time, (which I consider inefficient) or place the JDBC/SQL code in the JSP page, which I don't like either. So....
    Question:
    How do I achieve this? I have tried playing with the getMaxRoxs() and setFetchSize() methods to no avail. I am relatively new to this, but I think it has a lot to do with how JSP pages instantiate Beans (I.E: Every time the page loads, the bean is instantiated and all records are returned).
    Any help is greatly appreciated! I have tried so many things and searched the web, but have not found any concrete examples with code.
    - J

    My proposal was smth like this:
    ArrayList myData = new ArrayList();
    while (rSet.next()) {
        MyObjType myObj = new MyObjType(...);
        int i = 0;
        myObj.setAttribute1(rSet.getXXX(++i)); // getXXX is the proper method for the type of myObj.attribute1
        myObj.setAttribute2(rSet.getXXX(++i)); // getXXX is the proper method for the type of myObj.attribute2
        myObj.setAttributen(rSet.getXXX(++i)); // getXXX is the proper method for the type of myObj.attributen
        myData.add(myObj);
    session.setAttribute("myData", myData);
    ...Here MyObjType is the type (class) designed by you to hold one record of your result set. Example:
    For the
    TABLE BOOK
    ID NUMBER(10)
    TITLE CHAR(30)
    PRICE DECIMAL(2, 12)
    AUTHOR_ID NUMBER(10)
    Your MyObjType class will be probably named Book and will look like this:
    public class Book {
        private long id = -1;
        private String title = null;
        private double price = Double.NaN;
        private long authorId = -1;
        public long getId() {
            return this.id;
        public void setId(long id) {
            this.id = id;
        public long getAuthorId() {
            return this.authorId;
        public void setAuthorId(long authorId) {
            this.authorId = authorId;
        public String getTitle() {
            return this.title;
        public void setTitle(String title) {
            this.title = title;
        public double getPrice() {
            return this.price;
        public void setId(double price) {
            this.price = price;
    }So, you have an ArrayList of Book objects stored in your session object. Now you receive a request like this:
    gimmemydata?rowsfrom=20&rowsto=40
    Your JSP does just:
    <%
    ArrayList myData = (ArrayList) session.getAttribute("myData");
    int rowsFrom = -1;
    int rowsTo = -1;
    try {
        rowsFrom = Integer.parseInt(request.getParameter("rowsfrom"));
        rowsTo = Integer.parseInt(request.getParameter("rowsto"));
    catch (Exception ex) {;}
    if (rowsFrom < 0 || rowsTo < 0) {
        rowsFrom = 0;
        rowsTo = 20;
    %>
    <table>
    <%
    for (int i = rowsFrom; i < rowsTo; i++) {
        Book book = (Book) myData.get(i);
    %>
    <tr>
      <td><%= book.getTitle() %></td>
      <td align="right"><%= book.getPrice %></td>
    </tr>
    <%
    %>
    </table>
    ...It is as easy as that...
    Sorry, the closing brackets of the tags look a bit funny :-)

  • Master_detail for more than one record at a time

    Hi,
    How can i display master_detail records for more than one records at a time, for example, i have two tables A and B , A has username and role and B has username and profile. here i wanted to display 10 users at a time on my 6i form with username, role and profile.
    i have created a master-detail relation ship with these tables when i'm executing F8 on blcok A , it displays 10 records on BlockA but, only one at a time on block B, how can i display all corresponding records on block B at a time.
    Thanks for your help.Bcj

    Thanks Roberts, that was realy informative due to some doubts i would like to confirm my requirements , i have two blocks A and B and each master record has only one detail record. but i wanted to display at least 10 master_detail relationships(records) on the form at a time, i would like to know is it possible to do without creating any table or view for example,
    data in table A,
    username role
    AAA R1
    BBB R2
    CCC R3
    data in table B,
    username profile
    AAA P1
    BBB P2
    CCC P3
    i wanted to display it on form like below,
    username role profile
    AAA R1 P1
    BBB R2 P2
    CCC R3 P3
    Also would like to know that how can i select data from dba_users, any restriction is there on forms 6i, i can select it on sqlplus.
    Thanks Again, Bcj

  • Sy-tabix showing different value each time after ENDLOOP stmt

    Hi,
    when i am executing my program its having one loop statement . after finishing that loop
    below the Endloop statement.
    sy-tabix some time showing 1 and some time showing 2.
    why its chaging its value

    Hi,
    As per SAP online help on [LOOP statement|http://help.sap.com/saphelp_470/helpdata/EN/fc/eb381a358411d1829f0000e829fbfe/content.htm]
    When you leave the loop, SY-TABIX has the same value as when you entered it.
    So the value you are seeing in Sy-tabix after endloop is because of some internal table operations before the starting of that loop.
    You can check this by comparing the sy-tabix value before first Loop pass and after last loop pass.
    Hope this helps you.
    regards
    Karthik D

  • HT1725 When I download a song from iTunes into my library, it often says it has downloaded, charges me for it, and on the song in my library shows the full playing time. However, when I play the song, at around halfway through it skips to the next song?

    When I download a song from iTunes into my library, it often says it has downloaded, charges me for it, and on the song in my library shows the full playing time. However, when I play the song, at around halfway through it skips to the next song?
    i'm just wondering:
    a) why it does this
    and b) how to stop it doing this, because it still charges me for the song :/

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copies of the dodgy tracks and try redownloading fresh copies. For instructions, see the following document:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.

Maybe you are looking for

  • Enhanced WDC cant embed the new view in new window

    Dear Experts, i have enhanced the HRTMC_LP_CONFIG_CONTROL with new VIEW V1 and new WINDOW W1. Saved the component enhancement. Now when i wish to embed the newly created view V1 by  right click on the W1 to embed the View,  F4 does not list the VIEW

  • Remote VPN between ASA5505 and Netscreen SSG140

    Dears, I'm trying to set up a VPN between an ASA 5505 and  SSG40Juniper and the VPN keep flaping: Nov 27 04:47:27 [IKEv1 DEBUG]Group = 89.XXX, IP = 89.XXX, NP encrypt rule look up for crypto map TEST 1 matching ACL ACL_VPN: returned cs_id=cd2e0998; e

  • Most recent Adobe Acrobat (full) for 10.5 and a PPC?

    Good evening. Would anybody happen to know the most recent full version of Adobe Acrobat that runs well in 10.5 using a G4 PPC processor? Thanks for your time.

  • My phone is telling me to restore..

    I haven't been able to update/sync for a while because I forgot to switch users on the computer so it started downloading my husbands itunes acct/music, etc to my phone.  I stopped it in the middle and now my phone has never been the same.  I finally

  • How do you get rid of a greyed out 'installed' badge in apple updates?

    How do you get rid of a greyed out 'installed' badge in apple updates? I have one that never wants to disappear despite having the most recent version of the software ( its evernote in case that helps). That is really the only app that doesn't want t