Pass one record at a time
how can i pass one record at a time from a sub report to the main report by evaluating if it exists in the main report?
You should be posting in the advanced queuing forum.
Advanced Queueing
Similar Messages
-
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.BcjThanks 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 -
Hi !
One of our Java folks here need at function where he reads one record at at time in id order;
create table url_recs (id number, url varchar2(4000));
insert into url_recs values(1,'www.fona.dk');
insert into url_recs values(2,'www.dr.dk');
insert into url-recs values(17,'www.ihk.dk');
select read_rec() from dual; - get id 1
select read_rec() from dual; - get id 2
select read_rec() from dual; - get id 17
select read_rec() from dual; - get id 1 - "no more rows - start all over again)
select read_rec(45) from dual; - get NULL (no rows with that id)
select read_rec(1) from dual; - get id 1
The purpose id for some "round robin" trying to get to some internal URL's.
Can you give me a hint for creating the function(s)
best regards
MetteWill successive calls come on the same Oracle session? Or across different Oracle sessions?
If you're going to call the function multiple times within the same Oracle session, you could store the last value returned in a package variable and select the record whose ID is greater than that value every time the function is called. That's unlikely to do exactly what the Java developer is hoping, though, because the Java calls are likely to bounce between multiple Oracle sessions due to connection pooling. And it'll likely require that the Java developer (or app server admin) adds some code when they get a connection from the pool where they reset the package state. Or it'll require that someone develop a method to keep the Java and Oracle session state in sync.
Justin -
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 select only one record at a time in ALV
Hi all,
I have to use ALV report. Each record on the report output should have a button (or radio button) which will allow the record to be selected. My requirement is to select only one record at a time.
please guide me how to proceed further.
regards
manishhi
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/sampleCheckBoxProgram
Regards
Pavan -
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 AMBrian,
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 -
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,
KennyHi Kenny,
Please refer to the note below:
Note 1575981
Regards,
Neethu Joy -
Import map issue one record at a time
Hello Experts,
I built an import map to run it manually with import manager, but when I click on Ready to Import, the import manager is doing one record at a time. I have to go back to the match tab and refresh in order to import the rest.
Any idea where to setup a setting to import all records at once?
Thank you very much for your help,
Claudia HardemanHi Claudia,
Please check if your matching criteria results in fewer records,what is the matching criteria you are setting?
Do you see a total of 300 under "Create" Match Action?
No of records to be imported is governed by Match action which tell the MDS which are distinct records,Match Action tells MDS what is to be done with this number of records which have this Match type.
Please check if you have "SKIP" as match action,if yes use a appropriate action for match type.
Do a "Save Update" of the map.
Please revert with results.
Thanks,
Ravi -
Displaying one record at a time
Is any body able to help me? I need to display one record at a time from a Select statement.
Could I copy the results of the Select query from a table into an array for later display or is there a better alternative.
Please, any part knowledge with regard to the above would be usefull.
Regards
EddieWhat application do you want to use to display the data?
You can use "rownum" in your SQL statement to ensure that you only get record N of a query. Asktom has a good article on this sort of windowing
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:127412348064
More commonly, however, you'll write a SQL query that returns all the rows, fetch a small number, display those to the user, and then fetch more records.
Justin -
How to Insert more than one record at a time- with fixed set of values in one field
Can someone guide as to how to insert multiple records at a time using ASP VBScript in Dreamweaver CS4 or ADDT.
If someone can guide then the exact problem is given below.
I have a MS access database with one table. The table has three fields. The first field is an autonumber field for ID number.
The second field contains string values- One out of 7 predefined values. One set of records consists of 7 records containing all the seven types of predefined values in fields no 1.
The third field is a numeric field and can contain integers.
I want that the user can enter data for the table using an ASP form in such a way that he enters one set of records at a time in one single screen. This way he will not have to remember that he has /has not entered all the seven set of values for the field no 1.
I am not creating fields with the 7 types of field1value as their names as it will increase the number of fields drastically.
Please help for dreamweaver ASP VBScript.I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
Please help.
Also advise if there are any free dreamweaver server side validation extensions available. -
How to Insert more than one record at a time
How to insert multiple records at a time?
If someone can advise on this, then the actual problem is described below:
I have a MS access database with one table. The table has three fields. The
first field is an autonumber field for ID number.
The second field contains string values- One out of 7 predefined values. One
set of records consists of 7 records containing all the seven types of
predefined values in fields no 1.
The third field is a numeric field and can contain integers.
I want that the user can enter data for the table using an ASP form in such
a way that he enters one set of records at a time in one single screen. This
way he will not have to remember that he has /has not entered all the seven
set of values for the field no 1.
I am not creating fields with the 7 types of field1value as their names as
it will increase the number of fields drastically.
Please help with inserting multiple records at a time.I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
Please help.
Also advise if there are any free dreamweaver server side validation extensions available. -
i am trying to display one record from my database on my jsp page per time using next and previous buttons to navigate. I have tried to implement this by putting the resultset in a vector and then tried to tried to dispaly data with no success.Please somebody help ,i been at this for two days with no success.Could someone give a concreate example to guide me
Please post all code, i dont know how to put my resultset in a vector or arraylist.
I need a First Previous next and Last link in asp it is called recordset paging or recordset navigation.
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="Connections/connEvents.jsp" %>
<%
int index = 0; //or wherever you wish to start
if((String s = request.getParameter("index")) != null)
index = Integer.parseInt(s);
%>
<%
Driver DriverrsEvents = (Driver)Class.forName(connEvents_DRIVER).newInstance();
Connection ConnrsEvents = DriverManager.getConnection(connEvents_STRING,connEvents_USERNAME,connEvents_PASSWORD);
//PreparedStatement StatementrsEvents = ConnrsEvents.prepareStatement("SELECT * FROM hog_evenementen", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
//StatementrsEvents.setFetchSize(10);
//ResultSet rsEvents = StatementrsEvents.executeQuery();
PreparedStatement StatementrsEvents = ConnrsEvents.prepareStatement("SELECT * FROM hog_evenementen");
ResultSet rsEvents = StatementrsEvents.executeQuery();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>HD - Evenementen-beheer</title>
<style type="text/css">
<!--
body {
background-color: #333333;
-->
</style></head>
<script>
function post(actValue)
document.MyForm.action.value = actValue ;
document.MyForm.submit() ;
</script>
<body>
<table width="60%" border="0" align="center" cellpadding="0" cellspacing="0" class="">
<tr>
<td><table width="100%" class="" border="0" cellpadding="6" cellspacing="0">
<tr>
<td width="175" align="center" valign="bottom" bgcolor="#FF6600" class="">Evenementen-beheer</td>
<td bgcolor="#333333" class=""><span class=""><span class="formField">
</span></span></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="6">
<tr bgcolor="#61ABD0" class="verdana10zwart">
<td width="4"> </td>
<td width="512" height="29"> <span class="">Evenementenoverzicht</span></td>
</tr>
<tr bgcolor="#61ABD0" class="">
<td> </td>
<td><table width="100%" border="0" align="center" cellpadding="6" cellspacing="0">
<tr class="">
<td width="252" class="smallText">record 1 van 1 etc moet hier komen <br></td>
<td width="231" align="left" class="smallText"><table width="50%" border="0" align="center">
<tr>
<td width="23%" align="center"> Firs </td>
<td width="23%" align="center"> <a href="index.jsp?index=<%= (index-10)%>">Previous</a></td>
<td width="23%" align="center"><a href="index.jsp?index=<%= (index+10)%>">Next</a></td>
<td width="23%" align="center">Last</td>
</tr>
</table>
<br>
</td>
</tr>
<tr bgcolor="#CCCCCC">
<td>Thema</td>
<td>Datum</td>
</tr>
<%
int rowCount = 0;
while(rsEvents.next() && rowCount < 10) {
rowCount++;
%>
<tr>
<td><a href="event_crud.jsp?ID=<%= rsEvents.getObject(ID")%">"><%= rsEvents.getObject("thema")%></a></td>
<td width="231"><%= rsEvents.getObject("datum")%></td>
</tr>
<% } %>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#CCCCCC"><form action="event_frm_process.jsp" METHOD="POST" name="MyForm" id="MyForm">
<table width="100%" border="0" cellpadding="6" cellspacing="0" class="verdana10zwart">
<tr bgcolor="#CCCCCC">
<td width="9"> </td>
<td colspan="2"><span class="kop1"><br>
Evenement toevoegen </span><span class="formField"><br>
</span><br>
<span class="formField"> </span></td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="9"> </td>
<td width="107" class="downBorder">Thema:</td>
<td width="383" class="downBorder"><input name="thema" type="text" id="thema"></td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="9"> </td>
<td class="downBorder">Omschrijving:</td>
<td class="downBorder"><textarea name="omschrijving" cols="40" rows="10" id="omschrijving"></textarea>
</td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="9"> </td>
<td class="downBorder">Datum:</td>
<td class="downBorder"><input name="datum" type="text" id="datum"></td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="9"> </td>
<td class="downBorder">Tijd:</td>
<td class="downBorder"><input name="tijd" type="text" id="tijd"></td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="9"> </td>
<td class="downBorder">Lokatie:</td>
<td class="downBorder"><input name="lokatie" type="text" id="lokatie"></td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="9"> </td>
<td class="downBorder">Plaatje:</td>
<td class="downBorder"><input name="plaatje" type="text" id="plaatje"></td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="9"> </td>
<td class="downBorder"> </td>
<td class="downBorder"><input name="insert" type="button" id="insert" onClick="post('insert');return false;" value="Evenement toevoegen"></td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="9"> </td>
<td>
<input name="action" type="hidden" class="" id="action" value="">
<% while(rsEvents.next()){ %>
<input name="ID" type="hidden" class="" id="ID" value="<%=rsEvents.getString("ID")%>">
<%
%>
</td>
<td> </td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>
<%
rsEvents.close();
StatementrsEvents.close();
ConnrsEvents.close();
%></a> -
Slow Loading data from DB, one record at a time, HOW?
I am currently doing a project....
I need to display a record of data on a "form"(JFrame)
the way i handle it is
1. Load first record
2. pass to the display object
3. display object -> on click next, call manager object to process the request
4. manager, get next record with the help of DBManager
5. manager, set the record into the display object
6. manager, command object to refresh screen...
manager contains DBManager and disply instance....
it work perfectly fine for the first 20 or so record, but after some time, every click is slowed down about 20 over times...
i.e. first record take .5 sec, 50th take 30 sec
I traced the memory usage it is ok... but what could the problem be???
Memory usage list...
Before total:2031616 Free:810728
Before total:2031616 Free:1055016
Before total:2031616 Free:784272
Before total:2031616 Free:1049648
Before total:2031616 Free:821464
Before total:2031616 Free:1091312
Before total:2031616 Free:832568
Before total:2031616 Free:1057192
Before total:2031616 Free:793864
Before total:2031616 Free:1009872
Before total:2031616 Free:736552
Before total:2031616 Free:1000048
Before total:2031616 Free:776496
Before total:2031616 Free:563400
Before total:2031616 Free:834264
Before total:2031616 Free:600392
Before total:2031616 Free:883232
Before total:2031616 Free:637144
Before total:2031616 Free:877344
Before total:2031616 Free:625808
Before total:2031616 Free:876032
Before total:2031616 Free:603856
Before total:2031616 Free:440688
Before total:2031616 Free:681816
Before total:2031616 Free:431080
Before total:2031616 Free:714832
Before total:2031616 Free:465848
Before total:2031616 Free:790152
Before total:2031616 Free:613168
Before total:2031616 Free:364024
Before total:2031616 Free:677752
Before total:2031616 Free:421064
Before total:2031616 Free:716144
Before total:2031616 Free:541320
Before total:2031616 Free:372024
Before total:2031616 Free:595424
Before total:2031616 Free:425288
Before total:2031616 Free:250016
Before total:2031616 Free:576584
Before total:2031616 Free:405744
Before total:2031616 Free:225440
Before total:2031616 Free:546728
Before total:2031616 Free:370240
Before total:2031616 Free:204136
Before total:2031616 Free:540816
Before total:2031616 Free:367384
Before total:2031616 Free:196400Hey,
I was wondering about a compelling reason, why you want to go back to the database on every click. I would fetch "X" rows at a time from the Database and cache them as Value Objects. X could be 10 or even 100. It depends on your requirements.
As far as the performance going down there could be lot of reasons. Do you open and close the connection on every click. How many connections are open at a time? do you close the connection? or the connection is alive?
Chidda -
Displaying resultset one record at a time
This is a rather long question, but I have never done any projects like this before with Java.
I have an application in which users can view each record within a range of values one at a time. I have created a recordset that is sorted by one column in the resultset. What is the best way to display each record using forward/back buttons to "flip" through each record? How would I keep track of which record in the set I am actually displaying so I can move to either the next or previous depending on which button the user selects? Another problem I have is whether a particular button should be disabled?
Thanks in advance,
ChrisTry this link
http://www.theserverside.com/resources/article.jsp?l=DataListHandler
Select the Read PDF here link and it will download the PDF for you to read.
It's a pattern for the sort of problem that you describe. It comes complete with source code that you could use.
If you wish you can contact me via e-mail and I'll email you a working example.
Dave
Maybe you are looking for
-
How to print to HP PSC1110 All-In-One Printer connected to WinXP PC?
Hello everybody, I would like to us an HP PSC1110 "all-in-one" printer connected to a Windows PC in another room. The easy part: The printer shows up in the browsing window, under the correct Windows domain, when I try to add an "other Printer" devic
-
So when I went on today, my iPod said that it had a problem with iCloud. So, I hit ignore. Nothing happened. I tried a million times, but no luck still. How can I fix this?!
-
No Thumnails for MJPEG AVIs in PSE 11 Organizer
My AVI Video clips are not showing thumbnails in the PSE 11 Orgazizer. Here is what I have observed as I have been troubleshooting this: The files are MJPEG. When I double click on it in the organizer window, I get audio, but no video. If I open the
-
I can't seem to open up any attachments in gmail. Does anyone have any suggestions as to how to fix? Thank you
-
What is two phase commit in Forms?
Hi Could any one tell me, what is two phase commit in Forms? Cyp