How to edit database table in jsf

Hi all!
Can anyone give me some clue or link on editing database table in jsf, i have got the database table values shown using h:dataTable but i'm unable to edit and save them in database,i also want to perform jsf validation while editing so that illegal values may not be entered?
Thanks in advance.

Tougher than what? I suggest you try again. It is all there, including sample code, which is a lot more than you're ever going to get here. If you have a specific question, ask it. But just bleating that it's all too hard isn't going to get you anywhere, here as in life.

Similar Messages

  • How to send database table

    how to send database table one sever to another server in the form of  tms request.
    i want send a particular database table one server to another as a request.
    give solution plz
    Message was edited by:
            mahesh

    Hi Mahesh,
    Technically it is possible to transport entries of every table in SAP even if changes dont prompt for a transport request. Do the following. Create a customising/workbench request. It depends of the table whose entires you wish to transport. .If you wish you can just  use workbench transport for all tables.
    After you have created the transport click on the request and in menu bar choose Request/Task and then Display object list. Goto change mode.
    Click on Inset line icon in application tool bar. A new line for input will come up.
    In PGMID give the value R3TR
    In Obj give value TABU
    In Object Name give the name of the table.
    After that double click on table name entry. You will come to the screen: Transport organizer:Change Key List.
    Here again choose insert line. A new line with table  name and key as the column headers will come up.
    Double click on the empty input field for the key. In the next screen you will get options to fill in the key.
    You can insert key as per your choice. However one thing needs to be remembered. If you put * in any field SAP wont allow you fill in value in later fields as only a final asterisk can be used as a generic entry.
    Please try out this option. I use this option to transport RFC destinations as well profile parameters across systems.
    Please award points if the answer was of help to you.
    Regards.
    Ruchit.

  • How to view database table in OAF run page.

    Hi,
    how to view database table in OAF run page,any manual setting .please help me.
    thanks
    saran.

    Hi;
    1. This site side related EBS for your issue there is sqldeveloer dedicated forum side
    Forum Home » Application Development in PL/SQL » SQL Developer (Not for general SQL/PLSQL questions)
    2. Please see:
    http://docs.oracle.com/cd/B10501_01/java.920/a96655.pdf
    Regard
    Helios

  • How to view database table in oracle9i Jdeveloper

    Hi,
    how to view database table in oracle9i jdeveloper,any manual setting .please help me.
    thanks
    saran.

    In Jdeveloper go to View-->Connection Nevigator. there you will see all kind of connctions. Expand Database and check if your DB connection is present there. If not, you need to create using right clicking on Database and choose New Database Connecton. Here few screens will be there where you need to put the TNS entries of your database.
    Once DB connection is created, you can expand the connection by clicking on + icon and you can see different available schema objects. Again you need to expand Tables and you can look for specific table in there.
    Hope this clears your doubts.
    Thanks,
    Mukesh Uchaniya

  • How to view database table in oracle9i developer

    Hi,
    how to view database table in oracle9i developer,any manual setting .please help me.
    thanks
    saran.

    Hi;
    1. This site side related EBS for your issue there is sqldeveloer dedicated forum side
    Forum Home » Application Development in PL/SQL » SQL Developer (Not for general SQL/PLSQL questions)
    2. Please see:
    http://docs.oracle.com/cd/B10501_01/java.920/a96655.pdf
    Regard
    Helios

  • How to update database table !!!

    hi all,
    Please advice how to update database table with certain cndition needs to be checked.
    Please consider below scenario.
    have used enqueu and dequeue function to lock entries  and also i have used BAPI so considering that return parameter . i want to update table
    /tdk/st0027.
    1. I want to update database table
    2. there are certain condition needs to be checked like ,
       loop at it_final into wa_final.
    th_return-type = 'S'.
               if th_final-vbeln = /tdk/st0027-vbeln and
                  th_final-posnr = /tdk/st0027-posnr and
                  th_final-etenr = /tdk/st0027-sdslno.
    above condition which i need to check .and need to append below system fields need to be appended in table.
              th_final-prstsind = '20'.
              th_final-chgdate  = g_date.
              th_final-chgtime  = g_uzeit.
              th_final-chgprog  = g_cprog.
              th_final-chguser  = g_uname.
              append th_final to td_final.
              update /tdk/st0027 FROM th_final.
              endif.
    endloop.
    but i am getting error saying that  "The type od database table and work area (TH_FINAL)  are not unicode convertible"?
    I am not able to understandwhat would be the solution for this ?
    Thanks and regards,
    Prasad K. NAralkar

    The error occurs in the UPDATE statement included in the code. In this statement it is seen that there is a mismatch of structure defined for the DDIC table /tdk/st0027 and that of your work area th_final.
    try to create a structure w.r.t the DDIC table.
    Eg: DATA: wa_temp TYPE /tdk/st0027.
    MOVE-CORRESPONDING th_final TO wa_temp.
    Then try to UPDATE using the temporary work area i.e wa_temp which has structure similar to that of the database table.

  • How to convert database table into xml file

    Hi.
    How to convert database table into XML file in Oracle HTML DB.
    Please let me know.
    Thanks.

    This not really a specific APEX question... but I search the database forum and found this thread which I think will help
    Exporting Oracle table to XML
    If it does not I suggest looking at the database forum or have a look at this document on using the XML toolkit
    http://download-east.oracle.com/docs/html/B12146_01/c_xml.htm
    Hope this helps
    Chris

  • How to transfer database table contain null values, primary key, and foreign key to the another database in same server. using INSERT method.

    how to transfer database table contain null values, primary key, and foreign key to the another database in same server. using INSERT method.  thanks

    INSERT targetdb.dbo.tbl (col1, col2, col3, ...)
       SELECT col1, col2, col3, ...
       FROM   sourcedb.dbo.tbl
    Or what is your question really about? Since you talke about foreign keys etc, I suspect that you want to transfer the entire table definition, but you cannot do that with an INSERT statement.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to edit planning table so that only promote option comes for user

    how to edit planning table so that only promote option not aproove, comes for user for process management in planning unit state first pass.
    i am using 11.1.1.3 planing version, i have to do this customization very urgently.
    guys pls give some clue...thanks in advance!

    Hi John,
    a lot of thanks for your valuable help on this forum.
    if u see first pass state options, it gives only two options(promote,approve) but for other states it give >2 options so they must have put some condition on first pass state by restricting it to two options only.
    do u have any idea in which table this condition has been put so that i can restrict it further to 1 option only.
    thanks.

  • How to edit databases from JTable?

    Hello everyone, I would like to ask your help on how we can edit JTable cells that would be reflected into the database, or how do we change the database via a JTable.
    I have the installer of an application which I made with Java SE called FuelStation.exe
    My class files are ready for sharing along with its source files.
    I have placed it in this location in my website:
    http://www.apachevista.com/alphaprojects/runfiles/
    It is complete with full details about databases, proposed mysql embed, and so on. Please see the file and notify me at [email protected]
    Here is my sample code:
    // DisplayQueryResults.java
    // Display the contents of the Authors table in the
    // Books database.
    import java.awt.BorderLayout;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.sql.SQLException;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    import javax.swing.JScrollPane;
    import javax.swing.ScrollPaneConstants;
    import javax.swing.JTable;
    import javax.swing.JOptionPane;
    import javax.swing.JButton;
    import javax.swing.Box;
    import javax.swing.JInternalFrame;
    import java.util.*; // for the Bundle
    import javax.swing.event.InternalFrameEvent;
    import javax.swing.event.InternalFrameListener;
    import javax.swing.event.InternalFrameAdapter;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.ListSelectionModel;
    import javax.swing.event.ListSelectionEvent;
    import javax.swing.event.ListSelectionListener;
    import javax.swing.event.*; // step 1
    import javax.swing.table.TableModel; // step 1
    public class DisplayQueryResults extends JInternalFrame implements TableModelListener { // step 2
    // JDBC driver, database URL, username and password
    ResourceBundle bundle = ResourceBundle.getBundle("Accounting");
    final String JDBC_DRIVER = bundle.getString("Driver");
    final String DATABASE_URL = bundle.getString("URL");
    final String USERNAME = bundle.getString("User");
    final String PASSWORD = bundle.getString("Password");
    // default query retrieves all data from authors table
    //static final String DEFAULT_QUERY = "SELECT authors.lastName, authors.firstName, titles.title, titles.editionNumber FROM titles INNER JOIN (authorISBN INNER JOIN authors ON authorISBN.authorID=authors.authorID) ON titles.isbn=authorISBN.isbn";
    final String DEFAULT_QUERY = bundle.getString("Query");
    private ResultSetTableModel tableModel;
    private JTextArea queryArea;
    static final int xOffset = 0, yOffset = 200;
    private boolean ALLOW_COLUMN_SELECTION = false;
    private boolean ALLOW_ROW_SELECTION = true;
    // create ResultSetTableModel and GUI
    public DisplayQueryResults() {  
    super("Sales of the Day",
    true, //resizable
    true, //closable
    true, //maximizable
    false);//iconifiable
    //...Create the GUI and put it in the window...
    //Set the window's location.
    setLocation(xOffset, yOffset);
    // create ResultSetTableModel and display database table
    try {
    // create TableModel for results of query SELECT * FROM authors
    tableModel = new ResultSetTableModel(JDBC_DRIVER, DATABASE_URL,
    USERNAME, PASSWORD, DEFAULT_QUERY);
    // set up JTextArea in which user types queries
    queryArea = new JTextArea(DEFAULT_QUERY, 1, 100);
    queryArea.setWrapStyleWord(true);
    queryArea.setLineWrap(true);
    JScrollPane scrollPane = new JScrollPane(queryArea,
    ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
    ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    // set up JButton for submitting queries
    JButton submitButton = new JButton("Submit Query");
    // create Box to manage placement of queryArea and
    // submitButton in GUI
    Box box = Box.createHorizontalBox();
    box.add(scrollPane);
    box.add(submitButton);
    // create JTable delegate for tableModel
    JTable resultTable = new JTable(tableModel);
    resultTable.setFillsViewportHeight(true); // Makes the empty space heights white
    resultTable.setRowSelectionAllowed(true);
    resultTable.getModel().addTableModelListener(this); // step 3
    // place GUI components on content pane
    add(box, BorderLayout.NORTH);
    add(new JScrollPane(resultTable), BorderLayout.CENTER);
    // create event listener for submitButton
    submitButton.addActionListener(
    new ActionListener()
    // pass query to table model
    public void actionPerformed(ActionEvent event)
    // perform a new query
    try
    tableModel.setQuery(queryArea.getText());
    } // end try
    catch ( SQLException sqlException)
    JOptionPane.showMessageDialog(null,
    sqlException.getMessage(), "Database error",
    JOptionPane.ERROR_MESSAGE);
    // try to recover from invalid user query
    // by executing default query
    try {
    tableModel.setQuery(DEFAULT_QUERY);
    queryArea.setText(DEFAULT_QUERY);
    } // end try
    catch (SQLException sqlException2) {
    JOptionPane.showMessageDialog(null,
    sqlException2.getMessage(), "Database error",
    JOptionPane.ERROR_MESSAGE);
    // ensure database connection is closed
    tableModel.disconnectFromDatabase();
    System.exit(1); // terminate application
    } // end inner catch
    } // end outer catch
    } // end actionPerformed
    } // end ActionListener inner class
    ); // end call to addActionListener
    //...Then set the window size or call pack...
         setSize(750,300);
    setVisible(true); // display window
    } // end try
    catch (ClassNotFoundException classNotFound) {
    JOptionPane.showMessageDialog(null,
    "MySQL driver not found", "Driver not found",
    JOptionPane.ERROR_MESSAGE);
    System.exit(1); // terminate application
    } // end catch
    catch (SQLException sqlException) {
    JOptionPane.showMessageDialog(null, sqlException.getMessage(),
    "Database error", JOptionPane.ERROR_MESSAGE);
    // ensure database connection is closed
    tableModel.disconnectFromDatabase();
    System.exit(1); // terminate application
    } // end catch
    // dispose of window when user quits application (this overrides
    // the default of HIDE_ON_CLOSE)
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    // ensure database connection is closed when user quits application
    addInternalFrameListener(
    new InternalFrameAdapter() {
    // disconnect from database and exit when window has closed
    public void windowClosed(WindowEvent event) {
    tableModel.disconnectFromDatabase();
    System.exit(0);
    } // end method windowClosed
    } // end WindowAdapter inner class
    ); // end call to addWindowListener
    } // end DisplayQueryResults constructor
    public void tableChanged(TableModelEvent e) { // step 4
    int row = e.getFirstRow();
    int column = e.getColumn();
    TableModel model = (TableModel)e.getSource();
    String columnName = model.getColumnName(column);
    Object tableModel = model.getValueAt(row, column);
    // Do something with the data...
    System.out.println(tableModel);
    System.out.println("data");
    // execute application
    public static void main(String args[]) {
    new DisplayQueryResults();
    } // end main
    } // end class DisplayQueryResults
    My question is in lines 177-187:
    public void tableChanged(TableModelEvent e) { // step 4
    int row = e.getFirstRow();
    int column = e.getColumn();
    TableModel model = (TableModel)e.getSource();
    String columnName = model.getColumnName(column);
    Object tableModel = model.getValueAt(row, column);
    // Do something with the data...
    System.out.println(tableModel);
    System.out.println("data");
    Why is my listener not working or why is it not implemented when I click the cells in the JTable and why is it not reflected into the JTable or into the console?
    If this is Flash, Things can be done easily, but this is Java, and I dont know much about this language. I admit that I am new to this -intirely new.
    PS:
    When you have solved the problem, please notify me with the code that's changed
    and please share it to others if you like so.
    Best Wishes: Oliver Bob Lagumen
    Email: [email protected]
    website: www.apachevista.com
    Oliver Bob Lagumen
    Edited by: Oliverbob on Jan 24, 2008 9:03 PM

    Why is my listener not working or why is it not implemented when I click the cells in the JTable and why is it not reflected into the JTable or into the console?What does happen when you click on the cells?
    Does the ResultSetTableModel report the cells as editable? If not you will never get to edit their contents, and so the table's model won't change, and so the table model listener will never get invoked.
    When you post code here use the code tags. Basically you put {code} at the start of your code and again at the end. That way the code will be readable.
    Try to post minimal examples with which others can reproduce your problem. In this case "minimal" would involve removing or drastically simplifying a lot of the GUI stuff which is just noise. But "reproduce" would involve including the ResultSetTableModel.
    When you have solved the problem, please notify me with the code that's changedAvoid this.
    What you say here is quite possibly not what you mean. But, in any event, while there might be plenty of interest in helping with specific problems there will likely be none in writing your code. Your problem remains yours. But your solution and your code - prompted by whatever help you might recieve - will also be yours.

  • How to print database table records in graphical format?

    In ABAP Editor,I put select query on one database table and fetch few records .Now I want to show these records in BAR Graph / pie chart.Kindly let me know is it possible and how?
    Thanks in advance.
    Edited by: rushah on May 21, 2009 5:30 AM

    Hi Hadiman,
    Can you please elaborate more on it.
    Like my code is......
    SELECT * FROM trfcqout
      INTO CORRESPONDING FIELDS OF itab
      WHERE ( qstate = 'SYSFAIL' OR qstate = 'CPICERR' OR errmess <> '' )
    and ( QRFCDATUM >= date-low and QRFCDATUM <= date-high ).
        count = 0.
        if itab is not initial.
          SELECT * FROM trfcqout
          INTO CORRESPONDING FIELDS OF itab1
          WHERE qname = itab-qname AND errmess = ''.
            count = count + 1.
          ENDSELECT.
          itab-retrydate = sysdate.
          itab-retrytime = systime.
          itab-qtype = 'OUTBOUND'.
          itab-nentries = count - 1.
          append itab.
          MODIFY zqueue FROM itab.
        endif.
      ENDSELECT.
    Print details on Report
      write: / sy-vline no-gap,(7) 'QTYPE' COLOR 1, sy-vline no-gap,(23)
    'QNAME' COLOR 1,sy-vline no-gap,(14) 'QSTATE' COLOR 1, sy-vline no-gap,
    (54) 'Error' COLOR 1,sy-vline no-gap,(10) 'Number' COLOR 1.
      uline.
      LOOP AT itab.
        write: /   sy-vline no-gap,  (8)  itab-qtype no-gap,
                   sy-vline no-gap,  (24) itab-qname no-gap,
                   sy-vline no-gap,  (15) itab-qstate no-gap,
                   sy-vline no-gap,  (55) itab-errmess no-gap,
                   sy-vline no-gap,  (10) itab-nentries no-gap.
      ENDLOOP.
      uline.
      refresh itab.
    endform.                    "queuedata
    Now I want to print data in graphical form. how to do that?

  • How to find database table for field in CRMD_ORDER?

    Hello,
    in CRMD_ORDER there is a field CRMT_7850_SERVICE_UI-DURATION.
    The structure is CRMT_7850_SERVICE_UI
    The fieldname is DURATION
    How can i find out in which database table content of this field is stored?
    Thanks a lot
    Best regards
    Manfred

    Hi,
    When you execute report CRM_ORDER_READ (trx. se38), entering your order nr, you will get
    an overview of all the underlying tables and their entries of the order.
    E.g. you will find structure ET_SERVICE_H, corresponding to table CRMD_SERVICE_H;
    structure ET_SERVICE_I, corresponding to table CRMD_SERVICE_I.
    I expect your field (duration) to be in CRMD_SERVICE_I.
    regards,
    Wim

  • How to adjust database table using ABAP code

    Hi Experts,
    There is any function module can use to adjust the db table?
    Because I found that after I modified the database table by using  FM 'DDIF_TABL_PUT' and 'DDIF_TABL_ACTIVATE',
    the table feel like no changes when I check the table in SE11.
    But after I switched to edit mode, then only table changed to the expected properties.
    Hope anyone can some hints,
    Thanks in advance.

    Thanks, your answer is helpful.
    But I found a answer after debug SE14,
    Share the answer if anyone need:
    DD_DATABASE_UTILITY

  • How to customize Database Tables Application Connector to OIM

    Hi,
    Anybody know whether is it possible to customize Database Tables Connector that it could be used to make reconciliation to any table in OIM schema (not only to USR table, that is default)?
    I have reviewed config xml files but did not found any entry that could be used to achieve this.
    Thanks in advance,
    Maciej.
    Edited by: maciej.mac on Oct 12, 2009 11:58 PM

    Hi,
    The custom DB App table connector is used to reconcile identities or account information from the target tables. So when you create a GTC connector this process will create all OIM objects for you (Resource Object, Process, Recon rules etc).
    You need to look into deploymenmt document for 'GTC DBApp Tables Connector'. look into the following link for section : "3 Creating the Connector".
    Link : [http://download.oracle.com/docs/cd/E11223_01/doc.910/e11194/create.htm#CIABIJCH]
    Remember as not to create this as connector for 'trusted mode'. This connector will replicate all the tables from the target to OIM and reconcile data what you want to these tables. But this data will behave as a 'Account for the User', so you need to make sure that you have some unique matching attribute at the target tables as well to link this account to OIM user.
    I recommend you to go thorugh the deployment doc and see what is created in OIM. This will make it more explicit.

  • Reg: How to see Database tables in any Datasource?

    Hi Friends,
    Please give me answer to see Database tables in any Datasource.
    Thanks,
    Rama

    Hi,
    I dont think there is any Tcode for this.
    Try either of this.
    Go to RSA2 (DS Repository) in your source system and display your source system.
    If Extraction Method is 'V' - you are lucky and you see table name where data is taken from.
    If it is F* - function module is used, and you have to go thru its code to see all the tables it uses and logic how data is
    processed.
    Ext. Meth   Short text                                                                               
    V                 Transparent Table or DB View                
    D                  Fixed Domain Value                          
    F1                Function Module (Complete Interface)        
    F2                Function Module (Simple Interface)          
    Q                 Extraction Using ABAP Query                 
    A                 DataSource Append                           
    OR
    Since you have the extract structure and the extractor, you can try Extractor Checker RSA3.Execute ST05 (activating SQL Trace), switch on the trace and execute the extractor checker. Once the extractor checker presents the results
    switch off trace. The clcik on Display trace and you will see all the tables that were hit by the extractor checker to retrieve data and present it to you.
    Note: Set the break point in the Extractor Function module.
    View the ST05 Extended Trace list. The Object name shows the Tables accessed.
    Hope this helps.
    Thanks,
    JituK

Maybe you are looking for

  • Sun One Application Server 7 SSL Reverse Proxy Setup?

    Hi, I've made a similiar post on the Web Server forum, http://forum.sun.com/jive/thread.jspa?threadID=95666&tstart=0 I've noticed there's a reverse proxy plug in setup for Web Server, as well as a AddOn package for Application Server. I've so far suc

  • How to get the output of a procedure in to a log file ?

    Hi, Everyone, Could you please tell me How do i write the output of a procedure to a log file ? Thanks in advance...

  • Uploading CSV file problem

    Hello everyone. I have a minor problem in uploading CSV file to HTMLDB. I don't know the exact reason, but HTMLDB threw "ORA-20001: Unable to create collection: ORA-06502: PL/SQL: numeric or value error" whenever I tried to upload my csv file. after

  • Sales Order - Purchase Order using Production BOM?

    Hi all, We are experimenting moving over from Sales BOMs to Production BOMs to allow us to use P&P Manager properly. One of the scenarios which is causing a problem is "back to back" ordering. At the moment, with our Sales BOMs, we can tick the "purc

  • RH11 TOC "book with link" icon

    Hello! I have a question about customizing the TOC icons in RH11. I used the Responsive HTML5 Settings GUI to change all the TOC icons... EXCEPT the open book with link. This appears to be pulling a .png from the template resources folder, but there