Workin with ResultSets

Hi,
What is wrong with this type of query? I am able to get results only from the first table(Mobile). If there is any thing to be corrected please do it for me.
Here is the code
rs = st.executeQuery("select Mobile.brand,Mobile.model,Mobile.actualprice,Mobile.yourprice,Pc.brand,Pc.model,Pc.actualprice,Pc.yourprice,Camera.brand,Camera.model,Camera.actualprice,Camera.yourprice from Mobile ,Pc ,Camera where Mobile.brand='"+query+"' and Mobile.brand=Pc.brand and Pc.brand=Camera.brand");
               sos.println("<center><table>");
               while(rs.next())
                    brand = rs.getString(1);
                    modelno = rs.getString(2);
                    actualprice = Integer.parseInt(rs.getString(3));
                    yourprice = Integer.parseInt(rs.getString(4));
                    sos.println("<tr><td>"+brand+"</td>");
                    sos.println("<td>"+modelno+"</td>");
                    sos.println("<td>"+actualprice+"</td>");
                    sos.println("<td>"+yourprice+"</td></tr>");
               sos.println("</table></center>");
Thanks
Uma

Hi Sudha,
1. Thanks for that. But Pc table is having only one item in the database,It is getting repeatedly printed out for every loop of other items. Why? Can't we over come this?
2. Each table is having a "serial number" column. Based on the serial number, I wanted to get the remaining detials of that particular table(this I have an idea) and importantly the details of the person who has submitted the advertisement from "Register" table.
i.e "Register" table is common for all the three tables(Mobile, Pc, Camera). Could you please give me some logic behind this? As all the three tables have an serial number column, How can I identify that "the particular selected value belong to that particular table"?
3. For a single table I am doing this way
select * from Mobile where slno="+slno+"
select * from Pc where slno="+pcslno+"
And to get the values from Register table,
select * from Register where user='"+user+"'
I am doing this for a every single java servlet. Now I wanted to combine all these resultsets in one java servlet with a query. I do not know how to do it.
4. Currently I am doing this way
rs = st.executeQuery("select Mobile.slno,Mobile.brand,Mobile.model,Mobile.actualprice,Mobile.yourprice,Pc.slno,Pc.brand,Pc.model,Pc.actualprice,Pc.yourprice,Camera.slno,Camera.brand,Camera.model,Camera.actualprice,Camera.yourprice from Mobile ,Pc ,Camera where Mobile.brand='"+query+"' and Mobile.brand=Pc.brand and Pc.brand=Camera.brand");
               sos.println("<center><table>");
               sos.println("<tr><th>Brand Name</th><th>Model No.</th><th>Actual Price</th><th>Your Price</th></tr>");
               while(rs.next())
                    slno = rs.getInt(1);
                    brand = rs.getString(2);
                    modelno = rs.getString(3);
                    actualprice = Integer.parseInt(rs.getString(4));
                    yourprice = Integer.parseInt(rs.getString(5));
                    //sos.println("<tr><td>"+slno+"</td>");
                    sos.println("<tr><td><a href='http://localhost:8080/servlet/Description?slno="+slno+"'>"+brand+"</a></td>");
                    sos.println("<td>"+modelno+"</td>");
                    sos.println("<td>"+actualprice+"</td>");
                    sos.println("<td>"+yourprice+"</td></tr>");
                    pcslno = rs.getInt(6);
                    brand = rs.getString(7);
                    modelno = rs.getString(8);
                    actualprice = Integer.parseInt(rs.getString(9));
                    yourprice = Integer.parseInt(rs.getString(10));
                    //sos.println("<tr><td>"+slno+"</td>");
                    sos.println("<tr><td><a href='http://localhost:8080/servlet/PcDescription?pcslno="+pcslno+"'>"+brand+"</a></td>");
                    sos.println("<td>"+modelno+"</td>");
                    sos.println("<td>"+actualprice+"</td>");
                    sos.println("<td>"+yourprice+"</td></tr>");
                    camslno = rs.getInt(11);
                    brand = rs.getString(12);
                    modelno = rs.getString(13);
                    actualprice = Integer.parseInt(rs.getString(14));
                    yourprice = Integer.parseInt(rs.getString(15));
                    //sos.println("<tr><td>"+slno+"</td>");
                    sos.println("<td><a href='http://localhost:8080/servlet/CamDescription?camslno="+camslno+"'>"+brand+"</a></td>");
                    sos.println("<td>"+modelno+"</td>");
                    sos.println("<td>"+actualprice+"</td>");
                    sos.println("<td>"+yourprice+"</td></tr>");
               sos.println("</table></center>");
And I am able to achieve what I needed(Printing the details and the user details). But I wanted to combine all these java servlets (Description.java, PcDescription.java, camDescription.java) files into one single file. I needed one query for this one.
Thanks
Uma
Could you please help me by giving some logic?

Similar Messages

  • Problem with ResultSet in a loop

    hi,
    i have a probleme with ResultSet when, my code is bellow
    ResultSet rs = stmt.executeQuery(sql);
    sql="SELECT NAME FROM prestationtemp";
    rs = stmt.executeQuery(sql);
    String sqlDel="";
    while (rs.next())
    sqlDel="Delete from prestation where NAME="+rs.getString("NAME");
    stmt.executeQuery(sqlDel);
    the problem is that the loop iterate just once like if there is just one record, and if I remove stmt.executeQuery(sqlDel); from the loop it iterate normaly.
    thanks in advance.

    you will need to use 2 Statments e.g.
    Statement stmt1 = connection.createStatement();
    Statement stmt2 = connection.createStatement();
    ResultSet rs = stmt.executeQuery(sql);
    sql="SELECT NAME FROM prestationtemp";
    rs = stmt1.executeQuery(sql);
    String sqlDel="";
    while (rs.next())
    sqlDel="Delete from prestation where NAME="+rs.getString("NAME");
    stmt2.executeQuery(sqlDel);
    } When you reuse a Statement, any resultsets previously created are automatically closed.
    Looking at your code, it seems that you only need 1 SQL call:
    Delete from prestation where NAME in (SELECT NAME FROM prestationtemp)
    Much more efficient!

  • UIDataTable with ResultSet ...?

    Can anybody give me an example of how to display the data from a RasultSet into a UIDataTable ?
    I have already tried one but it is not working.
    In one of the example i have following tag listing....
    <h:dataTable value="#{catalog.resultSet1}" var="catalogItem" >
    <h:column>
    <f:facet name="header">
    <h:outputText value="id"/>
    </f:facet>
    <h:outputText value="#{catalogItem.id}"/>
    </h:column>
    <h:dataTable>
    In my bean i have
    .....getCatalogItems(){
    Class.forName("org.postgresql.Driver");
    Connection db = DriverManager.getConnection(dbURL, username, password);
    Statement stmt = db.createStatement( ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    resultSet1 = stmt.executeQuery("SELECT * from choice");
    public void setCatalogItems(){
    System.out.println("setCatalogItems called");
    public void setId(int id){
    this.id = id;
    public int getId(){
    return this.getId();
    I don't know if it is right, but i have decalared "id" as a field in a backing bean OR
    are they column names of the underlying table whose data is returned by the ResultSet ?
    I would also like to know if anyone is having an example successfully running which binds a UIDataTable with a ResultSet !

    create-database.sql
    create table CatalogItem (
    id int unsigned auto_increment,
    product_id int not null,
    unitPrice numeric(10,2),
    unitCost numeric(10,2),
    primary key(id)
    supplyStore.jsp
    <h:dataTable value="#{catalog.catalogItems}" var="catalogItem" styleClass="catalogItems" headerClass="catalogHeader" columnClasses="id,amount">
         <h:column>
              <f:facet name="header">
                   <h:outputText value="id"/>
              </f:facet>
              <h:outputText value="#{catalogItem.id}"/>
         </h:column>
         <h:column>
              <f:facet name="header">
                   <h:outputText value="price"/>
              </f:facet>
              <h:outputText value="#{catalogItem.unitPrice}"/>
         </h:column>
    </h:dataTable>
    DataAccess.java
    public DataAccess() throws Exception {
    try {
    InitialContext ic = new InitialContext();
    Context envCtx = (Context) ic.lookup("java:comp/env");
    DataSource ds = (DataSource)envCtx.lookup("jdbc/SupplyStore");
    con = ds.getConnection();
    } catch (Exception ex) {
    throw new Exception("Couldn't open connection to database: " + ex.getMessage());
    public void remove() {
    try {
    con.close();
    } catch (SQLException ex) {
    System.out.println(ex.getMessage());
    private final static String SELECT_CATALOGITEM_QUERY =
    "select id, product_id, unitPrice, unitCost from CatalogItem";
    public ResultSet getCatalogItems() throws SQLException {
    PreparedStatement st = con.prepareStatement(SELECT_CATALOGITEM_QUERY);
    return st.executeQuery();
    Catalog.java
    public ResultSet getCatalogItems throws SQLException {
    if (catalogItems == null) {
    catalogItems = dataAccess.getCatalogItems();
    return catalogItems;
    I don't know if it is right, but i have decalared "id" as a field in a backing bean OR You don't need declare "id".
    are they column names of the underlying table whose data is returned by the ResultSet ?Yes
    I would also like to know if anyone is having an example successfully running which binds a UIDataTable >with a ResultSet !I have working example with ResultSet and RowSet (MyCashedRowSet, JdbcRowSetImpl).
    Just let me know if you need more information.
    Best regards,
    Vladimir Perlov

  • Help with resultset from jdbc

    When I run this program, the result set show up in the results textarea but it does not start a new line after each record even after inserting the "\n" escape character
    import java.awt.*;
    import java.sql.*;
    import java.awt.event.*;
    import javax.swing.*;
    * @author wezi
    * A java program for keeping track of the inventory of
    * books belonging to the ACM bookclub of Riverside
    public class ACMBooks extends JFrame
         private JTabbedPane mainTab;
         private JPanel connectpane, querypane, processpane, adminpane;
         private JPanel quadpane[] = new JPanel[4];
         //components for pane 1
         private JTextField txtUser, txtPort, txtHost, txtdb;
         private JLabel lbluser, lblpasswd, lblport, lblhost, lbldb, lblstatus;
         private JPasswordField pwdconnect;
         private JButton btnConnect ;
         private String tooltip[] = {"Default Name = bookdb","",
                   "Default port for MySQL = 3306",
                    "Default host is localhost", "Default database is acmbooks"};
         //Components for pane 2
         private JPanel sqlpane, searchpane, resultspane;
         private JTextArea txaSQL, txaResults;
         private JButton btnQuery, btnSearch, btnReset;
         private JLabel lblAuthor, lblTitle, lblISBN, lblCategory;
         private JTextField txtauthor, txttitle, txtisbn, txtCat;
         private JScrollPane scroller;
         //Components for panel 3
         private JPanel checkIn, checkOut;
         private GridLayout gl,gl2, gl3;
         private GridBagLayout gbl = new GridBagLayout();
         private GridBagConstraints gbc = new GridBagConstraints();
         private GridBagConstraints gbc2 = new GridBagConstraints();
         //private String pwd;
         //Set up the GUI
         public ACMBooks()
              super("ACM Book Library");
              lbldb = new JLabel("Database");
              lblstatus = new JLabel("Connection settings");
              gl = new GridLayout(2,2);
              Container cont = getContentPane();
              mainTab = new JTabbedPane();
              connectpane = new JPanel();
              adminpane = new JPanel();
              //set up the connection pane GUI
              connectpane.setLayout(gl);
              for(int i=0; i<4; i++)
                   quadpane[i] = new JPanel();
                   connectpane.add(quadpane);
              gbc.insets = new Insets(0,20,0,0);
              quadpane[0].setLayout(gbl);
              lbluser = new JLabel("User Name:");
              gbc.anchor = GridBagConstraints.NORTHEAST;
              gbc.gridx = 0; gbc.gridy = 0;
              gbc.weightx = 0.5; gbc.weighty = 0.5;
              quadpane[0].add(lbluser,gbc);
              lblpasswd = new JLabel("Password:");
              gbc.gridx = 0; gbc.gridy = 1;
              quadpane[0].add(lblpasswd,gbc);
              lblport = new JLabel("Port:");
              gbc.gridx = 0; gbc.gridy = 2;
              quadpane[0].add(lblport,gbc);
              lblhost = new JLabel("Host:");
              gbc.gridx = 0; gbc.gridy = 3;
              quadpane[0].add(lblhost,gbc);
              lbldb = new JLabel("Database:");
              gbc.gridx = 0; gbc.gridy = 4;
              quadpane[0].add(lbldb,gbc);
              gbc.anchor = GridBagConstraints.NORTHWEST;
              gbc.insets = new Insets(0,10,0,0);
              gbc.gridx = 1; gbc.gridy = 0;
              txtUser = new JTextField(10);
              txtUser.setToolTipText("Default username = bookdb");
              quadpane[0].add(txtUser,gbc);
              gbc.gridx = 1; gbc.gridy = 2;
              txtPort = new JTextField(10);
              txtPort.setToolTipText("Default port = 3306");
              quadpane[0].add(txtPort,gbc);
              gbc.gridx = 1; gbc.gridy = 3;
              txtHost = new JTextField(10);
              txtHost.setToolTipText("Default host = localhost");
              quadpane[0].add(txtHost,gbc);
              gbc.gridx = 1; gbc.gridy = 4;
              txtdb = new JTextField(10);
              txtdb.setToolTipText("Default database = acmbooks");
              quadpane[0].add(txtdb,gbc);
              pwdconnect = new JPasswordField(10);
              gbc.gridx = 1; gbc.gridy = 1;
              quadpane[0].add(pwdconnect,gbc);
              //Create a connection button
              btnConnect = new JButton("Connect");
              gbc.anchor = GridBagConstraints.NORTHWEST;
              gbc.gridx = 2; gbc.gridy = 4;
              quadpane[0].add(btnConnect,gbc);
              //create the reset button
              btnReset = new JButton(" Reset ");
              btnReset.setSize(btnConnect.getHeight(),btnConnect.getWidth());
              gbc.gridx = 2; gbc.gridy = 3;
              quadpane[0].add(btnReset,gbc);
    //Connection status
              lblstatus = new JLabel();
              quadpane[3].setLayout(gbl);
              gbc.anchor = GridBagConstraints.SOUTHEAST;
              gbc.insets = new Insets(0,10,20,20);
              quadpane[3].add(lblstatus,gbc);
              //Add a border to the first pane & add it to the main container
              quadpane[0].setBorder(BorderFactory.createTitledBorder("Details"));
              mainTab.addTab("Connection Settings",null,connectpane,"connections");
              //Create the second tab (Query pane)
              querypane = new JPanel();
              GridBagLayout gblquery= new GridBagLayout();
              GridBagConstraints gbcquery = new GridBagConstraints();
              gl2 = new GridLayout(4,1);
              querypane.setLayout(gblquery);
              //The sql query pane
              sqlpane = new JPanel();
              sqlpane.setLayout(gbl);
              gbc2.gridx = 0; gbc2.gridy = 0;
              gbc2.weightx = 0.5; gbc2.weighty = 0.5;
              txaSQL = new JTextArea(4,44);
              txaSQL.setBorder(BorderFactory.createLoweredBevelBorder());
              gbc2.anchor = GridBagConstraints.NORTHWEST;
              gbc2.insets = new Insets(0,10,0,0);
              sqlpane.add(txaSQL,gbc2);
              gbc2.gridx = 1; gbc2.gridy = 0;
              btnQuery = new JButton("Enter Query");
              gbc2.insets = new Insets(0,16,5,10);
              gbc2.anchor = GridBagConstraints.SOUTHEAST;
              sqlpane.add(btnQuery,gbc2);
              sqlpane.setBorder(BorderFactory.createTitledBorder("SQL Queries:"));
              gbcquery.gridheight =1; gbcquery.gridwidth = 1;
              gbcquery.gridx = 0; gbcquery.gridy = 0;
              gbcquery.anchor = GridBagConstraints.NORTHWEST;
              gbcquery.weightx = 0.5; gbcquery.weighty =0.5;
              gbcquery.fill =GridBagConstraints.REMAINDER;
              gbcquery.insets = new Insets(0,0,2,0);
              gbcquery.ipadx = 1; gbcquery.ipady = 1;
              querypane.add(sqlpane,gbcquery);
              //The search by pane
              searchpane = new JPanel();
              searchpane.setLayout(gbl);
              gbc2.insets = new Insets(0,14,5,5);
              lblAuthor = new JLabel("Author:");
              gbc2.anchor = GridBagConstraints.NORTHEAST;
              gbc2.gridx = 0; gbc2.gridy = 0;
              searchpane.add(lblAuthor,gbc2);
              lblTitle = new JLabel("Title:");
              gbc2.gridx = 0; gbc2.gridy = 1;
              searchpane.add(lblTitle,gbc2);
              lblISBN = new JLabel("ISBN:");
              gbc2.gridx = 2; gbc2.gridy = 0;
              searchpane.add(lblISBN,gbc2);
              lblCategory = new JLabel("Category:");
              gbc2.gridx = 2; gbc2.gridy =1;
              searchpane.add(lblCategory,gbc2);
              txtauthor = new JTextField(15);
              gbc2.gridx = 1; gbc2.gridy = 0;
              gbc2.anchor = GridBagConstraints.NORTHWEST;
              searchpane.add(txtauthor,gbc2);
              txttitle = new JTextField(15);
              gbc2.gridx = 1; gbc2.gridy = 1;
              searchpane.add(txttitle,gbc2);
              txtisbn = new JTextField(15);
              gbc2.gridx = 3; gbc2.gridy = 0;
              searchpane.add(txtisbn,gbc2);
              txtCat = new JTextField(15);
              gbc2.gridx = 3; gbc2.gridy = 1;
              searchpane.add(txtCat,gbc2);
              btnSearch = new JButton("Search >>>");
              gbc2.anchor = GridBagConstraints.SOUTHEAST;
              gbc2.gridx = 4; gbc2.gridy = 1;
              gbc2.insets = new Insets(0,5,20,10);
              searchpane.add(btnSearch,gbc2);
              searchpane.setBorder(BorderFactory.createTitledBorder("Search By:"));
              gbcquery.gridheight =1; gbcquery.gridwidth = 1;
              gbcquery.gridx = 0; gbcquery.gridy = 1;
              gbcquery.insets = new Insets(0,0,0,0);
              querypane.add(searchpane,gbcquery);
              //The results pane
              resultspane = new JPanel();
              resultspane.setSize(20,60);
              resultspane.setLayout(gbl);
              gbc2.gridx = 0; gbc2.gridy = 0;
              gbc2.anchor = GridBagConstraints.NORTHWEST;
              txaResults = new JTextArea(" ",9,55);
              scroller = new JScrollPane(txaResults);
              resultspane.add(new JScrollPane(txaResults));
              txaResults.setBorder(BorderFactory.createLoweredBevelBorder());
              resultspane.add(txaResults,gbc2);
              resultspane.setBorder(BorderFactory.createTitledBorder("Results:"));
              gbcquery.gridheight =3; gbcquery.gridwidth = 1;
              gbcquery.gridx = 0; gbcquery.gridy = 2;
              gbcquery.weightx = 1; gbcquery.weighty = 1;
              querypane.add(resultspane,gbcquery);
              mainTab.addTab("Query Entry",null,querypane,"Query page");
              //Create a third tab to process book checkin and out
              processpane = new JPanel();
              gl3 = new GridLayout(4,1);
              processpane.setLayout(gl3);
              //Create the checkin panel
              checkIn = new JPanel();
              checkIn.setBorder(BorderFactory.createTitledBorder("Return Books"));
              checkIn.setLayout(gbl);
              //Create the checkout panel
              checkOut = new JPanel();
              checkOut.setBorder(BorderFactory.createTitledBorder("Check Books Out"));
              processpane.add(checkOut,gl3);
              processpane.add(checkIn,gl3);
              mainTab.addTab("Process Books",null, processpane,"Book Processing page");
              //Create an administration panel
              adminpane = new JPanel();
              mainTab.addTab("Admin",null,adminpane,"Administration page");
              cont.add(mainTab);
              //Register the eventhandlers
              ButtonHandler btnHandler = new ButtonHandler();
              btnConnect.addActionListener(btnHandler);
              btnQuery.addActionListener(btnHandler);
              btnSearch.addActionListener(btnHandler);
              btnReset.addActionListener(btnHandler);
              setSize(650,460);
              setVisible(true);
         }//end constructor
         private class ButtonHandler implements ActionListener
              public void actionPerformed(ActionEvent e)
                   String errMsg;
                   Statement stmt;
                   ResultSet rs;
                   Connection con = null;
                   String pwd;
                   String user;
                   //Create a url from user input
                   String url = "jdbc:mysql://";
                   url += txtHost.getText();
                   url += ":";
                   url += txtPort.getText();
                   url += "/";
                   url += txtdb.getText();
              try
                   //Register the JDBC Mysql Driver
                   Class.forName("com.mysql.jdbc.Driver");
                   //Get the password and user name for the database
                   pwd = new String(pwdconnect.getPassword());
                   user = new String(txtUser.getText());
                   //Open a connection to the database
                   con = DriverManager.getConnection(url,user,pwd);
                        //Add the action event for the btnReset
                        if(e.getSource() == btnReset)
                             //Clear all the text fields and the status label
                             lblstatus.setText(" ");
                             txtUser.setText(" ");
                             txtdb.setText(" ");
                             txtHost.setText(" ");
                             txtPort.setText(" ");
                             pwdconnect.setText("");
                             txaResults.setText(" ");
                             txaSQL.setText(" ");
                             try{
                                  if(!con.isClosed())
                                       con.close();
                             catch(Exception closeError)
                                  String clErr = new String(closeError.toString());
                                  txaResults.setText(clErr);
                        }//end btnReset
                   //If the connect button is pressed
                   if(e.getSource() == btnConnect)
                   if(!con.isClosed())//if connection is open
                        lblstatus.setText("");
                        lblstatus.setVisible(true);
                        lblstatus.setText("Connected to " + txtdb.getText()
                             +" on "     + txtHost.getText());
                   else
                   { lblstatus.setText("Not Connected"); }
                   }//end btnConnect
                   if(e.getSource() == btnQuery || e.getSource()== txaSQL)
                        String strQuery = new String(txaSQL.getText());
                        ResultSetMetaData rsmtd;
                        int numCol;
                        try
                             stmt = con.createStatement();
                             rs = stmt.executeQuery(strQuery);
                             rsmtd = rs.getMetaData(); //to get metadata
                             numCol = rsmtd.getColumnCount(); //for number of columns
                             String strCol[] = new String[numCol];
                             String colName[] = new String[numCol];
                             String txaColumn = new String("");
                             String strHeading = new String("");
                             //Write the results of the query to the results text area
                             txaResults.setText(" ");          
                             //Get the data from the result set
                             //first get the column headings
                             for(int i=1; i<=numCol; i++)
                                  colName[i-1] = rsmtd.getColumnName(i);
                                  strHeading += colName[i-1] + "\t";
                             txaResults.setText(strHeading + "\n");
                             while(rs.next())
                                  //Get the values & create a display column
                                  for(int i=1; i<=numCol; i++)
                                       strCol[i-1] = rs.getString(i);
                                       txaColumn += strCol[i-1] + "\t";
                                  }//end for
                                  //Display the values
                                  txaResults.append( txaColumn + "\n");
                        catch(Exception sqlError)
                             txaResults.setText("");
                             String strSqlErr = new String(sqlError.toString());
                             txaResults.setText(strSqlErr);
                   }//end btnQuery
                   if(e.getSource() == btnSearch)
                        try
                             String strAuthor = new String(txtauthor.getText());
                             String strISBN = new String(txtisbn.getText());
                             String strTitle = new String(txttitle.getText());
                             String strCat = new String(txtCat.getText());
                             * Need to add code to change the search fields to
                             * any if the field is blank i.e if the field is blank
                             * search using a wild card. If all fields are blank, then
                             * do not search at all.
                             stmt = con.createStatement();
                             rs = stmt.executeQuery("Select * from books where" +
                                       " bookAuthor = " + strAuthor +
                                       " bookISBN = " + strISBN +
                                       " bookTitle = " + strTitle +
                                       "bookCategory = " + strCat);
                        catch(Exception searchError)
                             errMsg = new String(searchError.toString());
                             txaResults.setText("");
                             txaResults.setText(errMsg);
                   }//end btnSearch
              catch(Exception connectError)
                   errMsg = new String(connectError.toString());
                   lblstatus.setText("");
                   lblstatus.setText(errMsg);
              }//end actionPer
         }//end ButtonHandler
         public static void main(String[] args)
              ACMBooks app = new ACMBooks();
              app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         }//end main
    }//end class ACMBooks

    Hi,
    Here is a template of Manifest file which you can use for your reference:
    Manifest-Version: 1.0
    Created-By: Apache Ant 1.5.1
    Main-Class: com.pkg1.pkg2.MainClass
    Class-Path: . ./libs/ ./libs/database-driver.jar ./libs/jdom.jar ./libs/xercesImpl.jar ./libs/log4j.jar ....
    Name: com.pkg1.pkg2Main-Class: Specify the main class with complete package name
    Class-Path: Put all the jar file name with path
    <b>So the solution to your problem is to put you jar file name with the relative or complete path</b>
    Thanks
    Duke.

  • Help with resultset and looping thru a sql filed

    Hi,
    I have a SQL statement which connects two tables with accounting number, the table2 have multiple rows for one accounting number in table1.
    So I did if else condition in accounting number in resultset as following:
    List<AccRecord> retval = new ArrayList<AccRecord>();
    while(rs.next())
    //instance of account record
    AcciRecord acct1 = new AccRecord();;
                   if(acc_No != accountNumber)
                           //then get all data from table1                    
                   acc1.setEmpId(rs.getInt("ACC_ID"));
                             acc1.setEmpId(rs.getString("Acc_Name"));//and other 20 fields like this
              else if(acc_No == accountNumber) //this is where it breaks down if same acc number has more than one row in table2,we don't //want to get all other data again from table1
                                                 //also get all data associated with that accounting number from table2
                                 Other other1 = new Other();                         
                                 other1.setEmpId(rs.getInt("EMP_ID"));//these are datas from table2
                                 other1.setjobCode(rs.getString("JOB_CD"));
                                 other1.add(crew1);
    retval.add(acc1);
    }My question is how can I make logic right, in above code for the first account number it will go to else if condition (coz very first time acc number is never going to be different then previous accounting number,so it won't get my accounting data, the way I have compared it)
    I want to code like for one accounting number it brings all accounting data and for that accounting number it also brings all employee data (which is in table2) which will more than one entires,
    So..when accounting number is same as previous it shouldn't get all data again from table 1 ,it should go to only else if condition to get data from table 2 , it should go to my if block only when there is a new accounting number, in other words when there is next record in table1
    Can anybody help me??
    Please...
    Thanks
    Edited by: ASH_2007 on Mar 28, 2008 11:55 AM

    hi there,
    thanks for ur feedback
    but it is always going to contian accno .. so it will never go in your condition
    May be I haven't explained it well
    I need something which gets all data for every new account number in table 1
    Now for that same account number, table2 have 3 rows including that account number 3 times (I am connecting this 2 tables with acc no, table 1 doesn't have duplicate acc no but table 2 does)So my resultset runs 3 times for the first record in table 1, because for that accno table 2 has 3 entries
    This is because my sql is as follow,,which I have to,,I can't change due to requirements...
    SELECT A.accNumber, A.Date, B.EMP_ID, B.JOB_CD
    FROM Table A,  Table B,  (SELECT SSA.accNumber FROM Table SSA, Table SSB       
        WHERE SSB.EMP_ID = ?  AND
       SSA.accNumber = accNumber) C          
    WHERE A.accNumber = C.accNumber                                            
       AND A.accNumber = B.accNumber                        
    //so if I do: like this in my resultset
    while(rs.next())
    Integer accNumber = rs.getINt(accNumber);
    accno =accnumber;
    if (accno != accNumber)
    { get all account data
    else if(accno == accNumber)
    { get all other data
    }but question is it will not satisfy my if condition , because for a new record ,in this case,in first record acc number will never match...
    I appreciate your help and time
    Please help me
    THnaks
    Edited by: ASH_2007 on Mar 28, 2008 1:54 PM

  • About workin with RecordStore

    i have been workin on an application for Palm OS which deals with a lot of database.the application is workin fine and the data also seems to be consistent. however the problem started when i started to work with conduit for tha application. can someone tell me about a better way to manipulate the data stored by the recordstore using java conduit.
    thank u !

    kAWT is built on top of kJava and only works with kJava (I am not sure if anyone has ported it to MIDP). kAWT has nothing to do with databases, it is only for GUI management similar to J2SE AWT. So if you want to use kJava, you can use kAWT for your GUI, but you do not have to. Also, if you use kJava, regaurdless of kAWT, you can use the Palm database - the two are not mutually exclusive.
    Now for MIDP. kAWT, as far as I know, has not been ported to MIDP. MIDP is a replacement for kJava, and it also runs on Cell phones. MIDP is somewhat OK for Palm, but really does not take full advantage of the Palm and the palm native GUI components. On this forum, there is better support for support for MIDP than kJava.
    If you are going to write an application for the Palm and only for the Palm, and it must be in Java, AND you need to take advantage of sophisticated Palm OS features, consider downloading and using IBM's J9 compiler (VAME). It opens up the full Palm OS. However, writing Palm applications is not as easy as MIDP or kJava, and will take longer to learn. The support for J9 is through the IBM VAME newsgroup.
    If your application is simple, and you do not need to use the IR port, serial port, access other databases other than your own, or need to have tight control over the user interface, go with MIDP. Download Forte and the wireless toolkit from Sun and follow the install directions, and read the PDF documents in the /doc directory.
    Also, there are a large number of postings in this forum about using MIDP on Palms and MIDP with the wireless toolkit and Forte. There are also people form Sun who monitor and reply to problems in this forum when they pertain to MIDP. kJava does not have this level of support.
    Once you have picked your development tools, and if you have further problems, lets resolve them one at a time. Post the actual error message as a new topic and people in the forum will take it from there.
    Don

  • HELP: SSIS 2012 - Execute SQL Task with resultset to populate user variables produces DBNull error

    I am experiencing an unexplainable behavior with the Execute SQL Task control in SSIS 2012. The following is a description of how to simulate
    the issue I will attempt to describe:
    1. Create a package and add two variables User::varTest1 and User::varTest2 both of String type with default value of "Select GetDate()"
    for each, have shown this to not matter as the same behavior occurs when using a fixed string value or empty string value.
    2. Add a new Execute SQL Task to the control flow.
    3. Configure an OLE DB connection.
    4. Set SQLSourceType = "Direct Input"
    5. Set the ResultSet property of the task to "Single Row"
    6. In the ResultSet tab add two results as follows: 
    Result Name: returnvalue1, Variable Name: User::varTest1
    Result Name: returnvalue2, Variable Name: User::varTest2
    7. Set an expression for the SqlStatementSource property with a string value of "Select 'Test' returnvalue1, 'Testing' returnvalue2'"
    The idea is that the source would be dynamically set in order to run a t-sql statement which would have dynamic values for database name
    or object that would be created at runtime and then executed to set the user variable values from its resultset. Instead what occurs is that a DBNull error occurs.
    I am not sure if anyone else has experienced this behavior performing similiar actions with the Execute SQL Task or not. Any help would be
    appreciated. The exact message is as follows:
    [Execute SQL Task] Error: An error occurred while assigning a value to variable "varRestoreScript": "The type of the value
    (DBNull) being assigned to variable "User::varRestoreScript" differs from the current variable type (String). Variables may not change type during execution. Variable types are strict, except for variables of type Object.
    User::varRestoreScript is the first return value. And even with the a dummy select the same result occurs. I have narrowed the issue down
    to the T-SQL Statement structure itself. 
    The following works just fine within the execute sql task control as long as no resultset is configured for return:
    "Declare @dynamicSQL nvarchar(max)
    Select @dynamicSQL = name 
    From sys.databases 
    Where name = 'master'
    Select atest_var1=@dynamicSQL, atest_var2='static'"
    I have tried various iterations of the script above with no success. However, if I use the following derivative of it the task completes
    successfully and variables are set as expected.  This will not work for my scenario however as I need to dynamically build a string spanning multiple resultsets to build one of the variable values.
    "Select atest_var1=name, atest_var2='static'
    From sys.databases
    Where name = 'master'
    I have a sample package which can reproduce this issue using the above code.  You can get to that through the post on www.sqlservercentral.com/Forums/Topic1582670-364-1.aspx
    Scott

    Arthur,  the query when executed doesn't return a null value for the @dynamicSQL variable.  It returns "master" as a string value.  Even the following fails which implements that suggestion:
    Declare @dynamicSQL as nvarchar(max)
    Select @dynamicSQL = name
    From master.sys.databases 
    Where name = 'master' -- (or any other DB name)
    I believe I have found the cause of the issue.  It is datatype and size related.  The above script will properly set the variables in the resultset as long as you don't use nvarchar(max) or varchar(max).  This makes the maximum data size for
    a String variable 4000 characters whether unicode or non-unicode typed.

  • Urgent: Character Set Problem with ResultSet

    When I use normal statement as below the program works well:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String URL = "jdbc:oracle:thin:@10.1.20.8:1521:ora92";
    Properties prop = new Properties();
    prop.setProperty("user","unistock");
    prop.setProperty("password","unistock");
    Connection myconn = DriverManager.getConnection(URL, prop);
    if (myconn == null) {/ to do:.... }
    // in the table, the name, address are defined
    // as varchar2(20), and are in the format of
    // Chinese characters.
    String sql = "select name, address from tbl_node";
    Statement mystmt = myconn.createStatement(sql);
    ResultSet myresult = mystmt.executeQuery(sql); ......
    In such way, I can get the String object of NAME and ADDRESS, which are all Chinese character string.
    But when I produce the ResultSet objects that are scrollable in below way it fails to get original string:
    //.... the same as before
    Statement mystmt = myconn.createStatement(sql,
    ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    ResultSet myresult = mystmt.executeQuery(sql); ......
    What I get from such way are strings which lost the highest bit information and I can't 'translate' they to the original ones, because maybe they are mixed with Chinese characters and English characters.
    What happens when I create the scrollable Statement object? And how can I fix such problem?

    hi manidhar,
    I am also facing the same problem.In my case the characters are getting garbled when it is passed to a javaScript function.
    Did u find a solution.
    If yes please post it.
    thanks in advance

  • Transaction Locking Problem in JDBC with ResultSet : ORA-17090.

    I have a locking concern using JDBC. I select a set of records to determine if they
    need to to be updated by a set of generated results (from else where in the program).
    If the results are not in this cursored set of records selected they are to be INSERTED
    else they (if they are in the select set) they are to be UPDATED.
    I set up a ResultSet using concurrancy parameters so that I can scroll through them for
    each of the program results to check. If I set up the ResultSet with TYPE_SCROLL_INSENSITIVE,
    CONCUR_UPDATABLE, I get a possible race condition if I am accessing teh same records
    through some other program such as toad. As such the first record is not checked (if my
    cursor in toad is on this first record) and as such is duplicated.
    If I set up the ResultSet with TYPE_SCROLL_SENSITIVE, CONCUR_READ_ONLY. This fixes this
    concurrancy problem but occassionally I get the following error which is Oracle based and
    not documented:
    java.sql.SQLException: operation not allowed: Unsupported syntax for refreshRow()
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:251) at
    oracle.jdbc.driver.SensitiveScrollableResultSet.refreshRow(SensitiveScrollableResultSet.java:171)
    at oracle.jdbc.driver.SensitiveScrollableResultSet.handle_refetch(SensitiveScrollableResultSet.java:239)
    at oracle.jdbc.driver.SensitiveScrollableResultSet.next(SensitiveScrollableResultSet.java:83)
    at sfwmd.hisa.oneflow.TimeSeries.load(TimeSeries.java:2502)
    at sfwmd.hisa.oneflow.OneParameter.main(OneParameter.java:808)
    which translates to an ORA-17090 (operation not allowed)
    {NOTE: I do NOT call ResultSet.refreshRow() anywhere in my program}
    I do not see any methods in ResultSet for record locking, outside of the mentioned parameters
    in the constructor. The database (updates and inserts) changes are all batched and executed
    AFTER this ResultSet is released.
    -James Fox
    [email protected]

    post ur code..

  • Help with ResultSets....

    I have a bit of code that gets a sql statement from a TIBCO repository.. executes it.. get's a result set and is then supposed to update a status code for each row within the result, then process the records within the result set.
    So the code looks like this:
    Connection conn = DBService.initConnection(Constants.QTMx_DB_URL);
    Statement st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    if (sql != null){
    rs = st.executeQuery(sql);
    if (!updateStatusCodes(rs)){
    throw new Exception("Failed while updating status codes");
    else{
    Logger.debug("Status Code Update COMPLETE!");
    else{
    throw new Exception("Invoice SQL query statement is null");
    Logger.debug("After Polling Query");
    //iterate over each deal
    while (rs.next()){
    Logger.debug("In result set loop - processing deals");
    blah blah blah......
    The issue is that the ResultSet is not being populated with records. So I write the value of sql to a log file and get this.....
    select hdr.INVOICE_NUM, hdr.INVOICE_DATE, hdr.DUE_DATE, hdr.DETAIL_COUNT, hdr.SETTLEMENT_AMOUNT, hdr.SETT
    LEMENT_CURR_ID, hdr.ENTITY, hdr.SAP_XREF_ID, hdr.PARTNER, hdr.INTRACOMPANY_FLAG, hdr.SETTLEMENT_TYPE_ID, hdr.PRIOR_SETTLEMENT_DOC, h
    dr.PAYMENT_METHOD_CODE, hdr.INTERFACE_STATUS_CODE, hdr.SAP_DOC_ID, hdr.LASTCHANGE, hdr.RPL_CODE, hdr.ACCTMONTH, dtl.DEAL_NUM, dtl.DE
    ALDATE, dtl.DEAL_TYPE, dtl.DESK, dtl.QUANTITY, dtl.UNIT, dtl.SETTLEMENT_AMOUNT, dtl.SEQ_NUM, dtl.COSTID,dtl.PRODMONTH, dtl.TAXTYPE,
    dtl.PIPELINE, dtl.METER from SAPUSR.SAP_INTERFACE_HDR hdr, SAPUSR.SAP_GMS_INTERFACE_DTL dtl where rtrim(hdr.SOURCE_SYS_ID)='GMS' and
    (rtrim(hdr.INTERFACE_STATUS_CODE) = 'RE' or rtrim(hdr.INTERFACE_STATUS_CODE) is null) and hdr.SOURCE_SYS_ID=dtl.SOURCE_SYS_ID and h
    dr.INVOICE_NUM=dtl.INVOICE_NUM order by dtl.INVOICE_NUM
    So I cut and copy it into my handy dandy SQL Application and run it...
    BAM! 97 Records returned....
    What am I missing here. Also .... rs is a module wide object which is not declared in this method, it is just used in this method.

    I hate to state the obvious but if you aren't getting any records back then the problem likely lies in the information following the "WHERE" portion of the SQL.
    So to start with to remove complications, I would suggest reducing the size of your SQL statment to be either "select *" or
    "select hdr.SOURCE_SYS_ID, hdr.INTERFACE_STATUS_CODE, dtl.SOURCE_SYS_ID, hdr.INVOICE_NUM, dtl.INVOICE_NUM"
    as those seem to be the only critical columns in your table for your query.
    Then remove the order by portion of the statement.
    Then re-run the query. If that still fails to yield any records, then remove some of the joins in your statement or the usage of the rtrim statements to establish equation with some other variable/constant.
    I realize this is an obvious avenue to proceed along. But I can't think of any reason a SQL query would work in one case and not in another on the same database.
    One other thing you could look at is the portion of the statement where you state "is null". I'm not sure but I seem to remember something about some incompatibility with that (there is a work around if I am remembering correctly) and using JDBC.
    One last theory is that it is the use of aliases:
    SAPUSR.SAP_INTERFACE_HDR hdr
    (i.e. these may be the cause of problems)
    Hope this helps,
    Tim

  • Initializing Vector with ResultSet(too Slow!)

    Hi
    I'm createing a JTable with two Vectors. Im am initializing the Vectors in a while loop, but it is way to slow with large ResultSets.
    Does anyone know how I can speed this process up?
    Thanks!

    Heres the full method Ive removed some of hte code in the for loop. But that makes no difference to the speed
    private Vector getData(int columns[]) throws Exception
         rows = new Vector(queue.count);
         while (res.next())
                 Vector newRow = new Vector(columns.length);
              for (int i = 0; i < columns.length; i++)
                 newRow.addElement(res.getString(columns));     
    rows.addElement(newRow);
    return rows;

  • How to work with ResultSet!

    Hi
    I an mew to java programming and I have a small project to do!
    Basically I have to connect to a database make a select query and display it in a JTable!
    The code to connect to make the table was provided by the teacher, I just added a connection to this class and used it! the resultset is being populated when I run the query! the problem is that when the class(Table) reaches resultSet.beforeFirst(); it breaks!
    I can write
    while(resultSet.next()){
    system.out.println(resultSet.getString(2));
    }before calling BeforeFirst() and the result displays but everything brakes at this point!
    Here are 2 of the 3 Classes used for this project! Hope u can help me!
    I didn't show u the class connexion due to character limitations, if you need something from this class please tell me.
    Class Main:
    import javax.swing.*;
    public class Main {
    JFrame frame = new JFrame ("my Table");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setBounds(200,100,500,500);
    Connexion con= new Connexion();
    con.connect();
    Table table= new Table("SELECT * FROM CUSTOMER", con);
    frame.add(table.getTable());
    frame.setVisible(true);
    Class Table (given by teacher):
    import java.awt.Color;
    import java.sql.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.util.*;
    import java.sql.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.util.*;
    public class Table implements ListSelectionListener{
         private ResultSet resultSet;
         private ResultSetMetaData metaData;
         private int numberOfRows;
         private JTable tab;
         private int selectedRow;
         private Vector dataVector = new Vector();
         private Vector headVector;
         private ListSelectionModel listSelectionModel;
          public Table(String sql, Connexion cx){  //String sql correspond  la requete sql
               try{
               setQuery(sql, cx);
               catch(SQLException e){
          public void setQuery( String query, Connexion BD ) throws SQLException
          // specify query and execute it
          resultSet = BD.select(query); //Execution de la requete par la methode classe select() dans la classe BD
          metaData = resultSet.getMetaData();
          resultSet.last(); // se deplacer  la derniere ligne du ResultSet
          numberOfRows = resultSet.getRow(); // acceder au nombre de lignes
          headVector = new Vector(metaData.getColumnCount());
          getNomsCol(); //appel de la mthode pour les intitules des enttes des colonnes
          getData(); //appel de la mthode pour les donnes
          //Methode pour le vector des enttes des colonnes de JTable
          public void  getNomsCol()throws SQLException{
               for (int i=0; i<metaData.getColumnCount();i++){
                    headVector.addElement(metaData.getColumnName(i+1));
          public void getData()throws SQLException{
               resultSet.beforeFirst(); //////////////           brakes here             positionner le curseur avant la premiere ligne du ResultSet
               if (!resultSet.next()) 
                    JOptionPane.showMessageDialog(null,"No records query");
                    else {
                    do {
                    Vector rowVector = new Vector(); //definit un vector pour un enregistrement
                    rowVector.addElement(resultSet.getString("numaccount"));
                    rowVector.addElement(new Float(resultSet.getFloat("balance")));
                    rowVector.addElement(new Float(resultSet.getFloat("interet")));
                    dataVector.addElement(rowVector); //ajoute l'enregistrement au dataVector
                    } while (resultSet.next());
    public JTable getTable(){
                    tab = new JTable(dataVector, headVector); //creation de l'objet JTable
                         listSelectionModel = tab.getSelectionModel(); //Associer un modele pour l'objet JTable
                         listSelectionModel.addListSelectionListener(this); //Ajouter le listener au modele pour la selection dans un JTable
                    return tab;
             //Methode valueChanged pour les evenemnts ListSelectionEvent  
                    public void valueChanged(ListSelectionEvent listSelectionEvent){
                    if (listSelectionEvent.getValueIsAdjusting())
                    return;
                    ListSelectionModel lsm = (ListSelectionModel)listSelectionEvent.getSource();
                    if (lsm.isSelectionEmpty()) {
                    System.out.println("No rows selected");
                    else{
                    selectedRow = lsm.getMinSelectionIndex();
                    System.out.println("The row "+selectedRow+" is now selected");
                   //Renvoie le numero de ligne selectionne de l'objet JTable
                   public int getSelectedRow() {
                        return selectedRow;
    }I know it's a long question! but I have been facing this problem for 2 days now and I am not finding any solution! thanks for your help!

    eliedh wrote:
    Can u guide me to a tutorial that shows me how to transfer my data to the JTable in a nice simple way (with or without this class! I dont care anymore)! I am googling but I can't find a simple way to do it! I would have read and learned if I had more time but i have to get this program working before tomorrow! please help!!
    Edited by: eliedh on Jan 9, 2009 8:49 AMThe general idea is to design your application as a bunch of separate components that are loosely coupled.
    Take a car as an example. You can remove your car's radio and replace it with another one. When you pull the radio out, you don't find the tires are attached to it!
    Suppose you were designing a new car door window assembly, say one that senses obstructions so as not to decapitate kids! You may need to know the specs for the door, but won't need the actual door in order to design and test your window, let alone the car itself.
    My rule of thumb for a decent design is: can I test pieces separately? For example, can I test the database code without using GUI code?
    And stop for a minute. How does one "test" code? It's tempting at first to test code manually, like you are the end user, but that quickly becomes unwieldy. The proper way to test parts (unit testing) is to write testing code. Then it's easy to rerun the tests whenever you make changes:
    [http://www.junit.org/]
    To expand a little, there a lot that can be said just about the GUI side, ignoring the database back end. Here is a good general discussion of GUI architecture:
    [http://martinfowler.com/eaaDev/uiArchs.html]
    As a starting point, I would define a class that represents one row of data from the database. This class is used to bridge between the database and the GUI, and as such should be independent of either one.
    Your database component can have select methods that return List<YourRowObject>, and your GUI takes the same list. Then you can test each separately.

  • Touchsmart 520-1030 touchscreen not workin with windows 8

    my touchscreen is not workin on my touchsmart 520-1030 after resetting windows 8

    Hello onecoray.  I understand you're having some issues with your touchscreen.
    Try the solutions offered in this thread and let me know the result.
    Have a great day!
    Please click the white star under my name to give me Kudos as a way to say "Thanks!"
    Click the "Accept as Solution" button if I resolve your issue.

  • Working with ResultSet

    Hi !!!!
    Is there anyway I can working with a resultSet disconnected from database ?
    Thanks!!

    Hi !!!
    Thanks for answering. I am working with CachedRowSet but I have a doubt, how can I can access to the data without parse all CachedRowSet in a loop ?
    I have this:
    try {
                result = base.ejecutar(sql);
                while (result.next()) {
                    String nombre = result.getString(1);
                    //System.out.println(" Edad->"+edad);
            } catch (SQLException ex) {
                Logger.getLogger(ControladorPersistencia.class.getName()).log(Level.SEVERE, null, ex);
            }Is it possible to get the data in result.getString(1) without loop ? I want to do something like this :
    try {
                result = base.ejecutar(sql);
                String nombre = result.getString(1);
            } catch (SQLException ex) {
                Logger.getLogger(ControladorPersistencia.class.getName()).log(Level.SEVERE, null, ex);
            }Thanks !!1

  • How can we get current time date with resultset?

    Dear All,
    I have to insert current time date in the table.So,i need to get the current time and date with result set.So,I will first get the time date and then insert it into the table.
    I know how can we get current time and date without resultset.i have created this function its working.But now i want to use this.mean using resultset i want to put in the table.
    How can i do this?
    public static String DATE_FORMAT_NOW = "yyyy-MM-dd HH:mm:ss";
    public static String now() {
    Calendar cal = Calendar.getInstance();
    SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
    return sdf.format(cal.getTime());
    }

    yuck. Why not simply set a "new java.sql.Date()" to the SQL parameter in question?

Maybe you are looking for

  • Error message after installing Acrobat 8.1 in Vista

    I bought the Technical Communication Suite in June 2008, and installed it on my old computer, which was Windows XP. Now my old computer has died, and I just bought a new Dell Studio with Windows Vista 64 bit. So now I'm trying to install in the new c

  • Adobe Premiere CS6 Keeps Crashing After iTunes Update!

    I updated to iTunes 11, and that is only thing that I can think of that has changed on my system, and now when I try to export anything in Premiere, my whole computer freezes after getting a glitchy repeating sound to the speakers...I am forced to pu

  • MDform - need a value to be defaulted.

    I'm new to portal forms I'm working on a Master Detail portal form. My tables webcust_header (master table) customer_id Webcust_detail (detail table) Customer_id How can I show or assign or default the customer_id selected in master into detail custo

  • Help in date format for transaction F-01

    Hello Experts, I am currently modifying a report wherein it posts document using transaction F-01. Now, I am getting an error wherein it says: Direct input date: Date 04162007 is incorrect. The document has not been created. Now, how can I modify it

  • Performance problem in Numbers '08

    It seems that Numbers is slowing down, and keyboard input lags by upwards of 10 seconds, just from having two sheets, each with only one table, but each of which has 175 rows. No other program on the system exhibits this (except Pages, which has a si