SOLVED: Editing a table cell won't update corresponding ViewObject

Hi,
I'm asking for your help.
I want to update a ViewObject with userinput from jTableCells. The JTable that has been constructed by JDev based on this ViewObject. The attributes of this ViewObject are the result of a SQL query using the NVL() function.
The Problem is that changing cell values does not update the ViewObject. I guess NVL() causes this. Right?
As a solution I'd like to add a TableModelListener to the table and take care that changes to cell-data find their way into the right ViewObject attribute. Is this the right solution?
How can I add a working TableModelListener?
My try:
jTable1.getModel().addTableModelListener(new MyTableModelListener());
The TableModelEvent, that MyTableModelListener gets, always returns "-1" for getColumn(). Why?
Is there another way to get the current row and column (where the cell-edit takes place)?
I hardly know anything about ADF, panelbindings and so on, so don't back off with answers that my appear too simple or obvious to you.
Regards, MaeSiuS
Message was edited by:
MaeSiuS

Hi Frank,
yes, it is based on EntityObjects.
For a test, I replaced one of the NVL() based attributes with the plain attribute of the EntityObject, but that had no effect on the update disability.

Similar Messages

  • How do I edit a table cell value in the same view?

    This is probably just a clarification more than a question, but when looking at the iPhone->Settings->Mail,Contacts,Calenders view. If you select a mail account, you are taken to the account edit view where you can edit your account information.
    In this particular example, there is a 4 row grouped table section, with headers like "Name", "Address", "Password" and "Description".
    I am trying to duplicate this method of data entry where I don't have the user select the cell and get navigated to a new screen, but rather just pop up the appropriate keyboard, and allow them to edit within the cells within the same view.
    Currently, the only implementation that seems to make sense is to add a UITextField to the cell, and when the user selects, it will allow them to duplicate this behavior. It seems like there's an easier way to do this, but just not finding it.
    it seems like SetEditing deals more with deleting, adding and reordering...not actually editing data within the cells.
    Anyways, if there are any tips/tutorials/etc to look at, much appreciated!

    i do that. but the new window doesnt open a folder in the same path location 

  • Editable Dynamic Table  Cells

    Hi to all,
    I am using studio creator and mysql.
    I created a Dynamic table for Emp Names and Emp Skills, in that table for Emp Skills i put Text Feild.I am getting text feild in my table.
    here is my doubt
    I am trying to implement the functionality of editing table cells when clicked/doubleclicked on it. I am trying to make the cells editable(textboxes) only after clicking/double clicking them. It should display static text otherwise.
    I am trying to do this one in Javascript onClick event.
    Any sample code I can refer to.Any help is highly appreciated.
    help me
    jo

    Hi friend,
    Thanks for your kind reply.
    what you have send is useful for static table, in static table we can bind any row.
    But in my Module i am using Dynamic table, in that dynamic table for all the rows i need TextFeild.
    when we open the page it has to show static text for all the cells and when we are clicking particular cell that Text feild has to open.
    I dont no how to get Induival id for each and every cell, then only we can bind in dynamic table.
    Any suggestions are welcome.
    Jo

  • Stop editing a table cell

    Hi,
    I want to edit a cell of a table, so I have this:
    public class AttributeFrameCellEditor
         extends DefaultCellEditor
         public AttributeFrameCellEditor (final JTextField tf, final String aoName, final String attName)
              super (tf);
              delegate = new EditorDelegate()
                   public void setValue (Object param)
    // manipulate data in an internal frameEverything's fine, but how can I tell (Whom?) sth like editingStopped?
    Now I have to select another row to get rid of the Textfield.
    Looking forward to your help!

    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • Edited data in iTunes won't update on iBooks?

    Hi, first time submitting a question because I can generally figure these things out - but this one keeps stumping me.
    I have a lot of free PDF eBooks (157 to be exact), mainly religious texts free for distribution.
    The issue Im having is, when I first got my iPad I transfered them all over via iTunes, but all the titles showed up in their original form (For example, if it was George Orwell's Animal farm it may be displayed as "anml_frm", or something like that) with no author, which makes for terrible organization. So here I am with 157 PDF files on my iPad, can't organize them, or find what I need to find for research and essays because nothing is labled properly!
    What I ended up doing is spending a solid hour and half editing all the titles, authors and even years in iTunes via the iPad / On This iPad / Books category.
    Sync everything, give myself a part on the back for getting it done... Nothing has changed on the iPad in iBooks.... However, every time I go to see it on the On This iPad / Books on my PC, all the data shows up as I put it in. What have I done wrong, and is there a way to update it without renaming all the files one by one on my PC?
    Thanks,
    Adal

    Didn't work. 
    I wen't as far as to update the data (Again) in windows through the files properties menu and pdfs still won't show up properly.

  • Unable to edit a Table Cell. Help required.

    Hello Folks,
    Please I need some help.
    I have a java class which allows a user to enter and delete
    data into a table dynamically.
    So the user can enter any number of rows and once he clicks on the
    concerned row, he can also delete that row.
    I just have one small problem.
    I am unable to 'edit the cell'. i click on.
    can any one please help me on this. I'd like to send this class
    file.
    Can any one please send in their email address so I can attach this file
    Please some one respond.

    Hv u used something like this. What table model u r using. I hv used DefaultTableModel.
    c this piece of code: This might help.
    tblView = new JTable(model)
                   public boolean isCellEditable(int r,int c)
                        try
                             if(r == 0)
                                  return true;
                             else
                                  return false;
                        catch(Exception e)
                             apilError.createErrorLog(e,"Error1 class Bank_Reconciliation.java, in Constructor line no 194");
                             CallErrorMessage(apilError.systemerror,2,"Error");
                        return false;
                   public static final int a1=0;
                   public static final int a2=1;

  • Checkbox in table cell won't uncheck

    Hey all,
    Can someone help with this please. I am using a table model where the second column is Boolean. The table correctly renders this as a checkbox (I'm not using a custom renderer). The checkbox works ok except that you can't uncheck it. You can change which row is selected, but clicking twice on the same cell has no effect - it just stays checked.
    Thanks in advance for any help.

    here I am giving one example. Can u check this. In this eg, I gave check box in 3rd column(column no starting from 0).
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.awt.*;
    public class Class1 extends JFrame {
    JScrollPane jScrollPane1 = new JScrollPane();
    public Class1() {
    super();
    try {          
         MyTableModel model = new MyTableModel();     JTable editableTable1 = new JTable(model);     
         DefaultTableModel tblmdl = (DefaultTableModel) editableTable1.getModel();
         tblmdl.setRowCount(3);     
         tblmdl.setColumnCount(3);     
                   editableTable1.setCellSelectionEnabled(true);
         this.getContentPane().setLayout(null);
                   jScrollPane1.setBounds(new Rectangle(25, 19, 330, 180));
         this.getContentPane().add(jScrollPane1, null);
                   jScrollPane1.getViewport().add(editableTable1, null);
         addWindowListener(new WindowAdapter() {
         public void windowClosing(WindowEvent we) {
              System.exit(0);
    } catch(Exception e) {
         System.out.println("Exception in Class1:"+e);
    class MyTableModel extends DefaultTableModel {
         MyTableModel() {
         public Class getColumnClass(int c) {
         if(c == 2) {
         return Boolean.class;
         } else {
         return String.class;
    public static void main(String[] args) {
    Class1 class1 = new Class1();
    class1.setSize(400, 400);
    class1.setVisible(true);
    }

  • CL_GUI_ALV_TREE - Possible to edit the table cells in situ?

    Hi
    I am working on my first CL_GUI_ALV_TREE report.  The hierarchy is in place and the fields come through ok on the table side.  However,  I would now like to edit the fields.  I have the checkbox showing in the tree control and the row is set to editable.  Am I able to edit the fields in the table side in situ, as I would do in the CL_GUI_ALV_GRID control i.e. using mc_style_enabled/disabled?  These attributes are not present in the class builder so I presume not.  Is there another way? 
    Cheers
    Ian

    Hi
    module user_command_0100 input.
      DATA return TYPE REF TO cl_gui_event.
      save_ok = ok_code.
      case ok_code.
        when 'EXIT' or 'BACK' or 'CANC'.
        Exit program
          leave to screen 0.
      Process ALVtree user actions     
        when others.
          call method cl_gui_cfw=>get_current_event_object
                  receiving
                     event_object = return.
          call method cl_gui_cfw=>dispatch.
      endcase.
    endmodule.                 " USER_COMMAND_0100  INPUT
    check this code and call method cl_gui_cfw
    hope this helps u....
    Reward points if useful...
    Regards
    Sreenivas

  • Table Cell - On change updates another Cell using SQL

    Hello All,
    Tried to search the forums with no luck.
    I am looking for a solution similiar to Denes's solution on his APEX demo page
    http://htmldb.oracle.com/pls/otn/f?p=31517:160
    (Javascript Set Display Item I)
    I have a table with a drop down list showing a list of staff members
    When the user selects a staff member I want an Onchange command that
    populates another tablle cell with the managers name
    the SQL to obtain the manager would be somehting like this
    Select staff.Manager From from STAFF where staff.userid = staffmembers
    I know I need to create a onchange command and pass the value to the called function.
    I just need help to create the javascript that obtains the data and passes the info back
    Hope this is a simple question for someone (not me lol!)
    Frank

    dear frank,
    i also had similar requirement. I had one page item and one button. based on some page item value the color of button need to be changed. For example, in a hotel when one of the room is occupied based on the occupatiuon status, the button labeled room no need to be displayed either as green or red. This was met by writing some ajax code on the button attributes. Later he himself written using simple display attributes html code on the button. I am not good at ajax, html and good only at sql. Since my need was met, i did not penetrate the issue of how it was done. i will try to locate the coding to alter conditional border display issue.
    yours
    dr.s.raghu

  • Changes to Template Won't Update Corresponding HTML Files

    I'm using Dreamweaver CS5 and when I make changes to a template and save, it not longer updates all pages associated with that template. The first time this happened, I deleted the file cache and that took care of the problem. When I tried that again, it didn't work. I also tried deleting the Configuration folder.  I'm really hoping to find a fix for this because I have over 3,000 pages that need to be updated. Please help!
    Here's the message I should be getting:
    "Update Template Files: Update all files based on this template?"
    Here's the message that I am getting:
    "You have changed a template. Do you want to update all documents in your local site that use this template?"

    I am not making changes in the editable region that I expect to be made across the pages - I am making changes to where the editable regions lie within the template. In 99.9% of the cases, the changes were made to the non-editable regions.
    Unfortunately, I don't get to control how many pages are managed under one template. I am managing a departent's worth of pages for a university - this includes templates individual to each department division. Some division's have an outrageous number of pages associated with them - mostly for legal purposes. But none of that matters. What matters is that the pages are not updating as they should be. Do you have anything to add about that?

  • Af:table not refresh properly when corresponding ViewObject is repopulated

    I have a table T which is binding to a ViewObject VO.
    The initial population is working fine, but I met two problems while trying to manipulate the table data.
    Problem1:
    I have a ADD button which will add a new row to table T. The new Row is a empty Row, only Serial Number field is populated, all other fields (F1, F2, F3)are set to null by default.
    Result: the row is added, Serial Number is showing properly, but F1, F2 and F3 are showing the same value as the row above. At this moment, the respective VO entry of F1, F2 and F3 are still null. When I click a random row in the table, then the ValueChangeListeners of F1 and .etc are triggered and the screen value goes into the VO.
    Problem2:
    For each row I have a link, which will trigger a popup P. Some operation will be done in P and as the result, current row entries will be modified.
    Result: the VO entries are modified, but didn't reflect to the table completely. Again the field F1, F2 and F3 are not updating, still carrying the old data. This time, click other row won't trigger the ValueChangeListener. Instead, when you click the link of the same row, the new data are finally shown in the field F1, F2 and F3.
    Notice that simple refresh the table won't help(AdfFacesContext.getCurrentInstance().addPartialTarget(T)) in this case.
    F1 is a af:selectOneChoice, F2 and F3 are customized text input field.
    Any hint would be appreciated.

    Hi, the add function is purely add a new row into the vo:
    public void addRowActionListener(ActionEvent actionEvent) {
    if (ownerAdministratorDetailsHelper.getTableVO() != null) {
    ViewObject tableVO = ownerAdministratorDetailsHelper.getTableVO();
    OwnerAdministratorTableVORowImpl rowImpl =
    (OwnerAdministratorTableVORowImpl)tableVO.createRow();
    rowImpl =
    initializeNewRow(rowImpl,
    ownerAdministratorDetailsHelper);
    tableVO.last();
    tableVO.next();
    tableVO.insertRow(rowImpl);
    tableVO.setCurrentRow(rowImpl);
    the initializeNewRow method does nothing but set initial value for each entry in the new VO row.
    For B the pop-up is using a different taskflow, and depending on that taskflow's output when I click ok, I will repopulate the VO of the selected row accordingly.

  • How to assign value to specifically 2D table cell in DIAdem?

    Assume the 2D table dimension is 4*5, and I want to write value to (2,3) of the table cell and don't change the values in other cells. How should I do?
    Another question:
    How to hide the heading of a 2D table?
    Thanks for any reply!
    YangAfreet

    Hi YangAfreet,
    All tables in DIAdem VIEW and REPORT display the values in specific Channels in the Data Portal (or in rare cases the values of a global array variable).  So if you want to change the value of a particular cell in your table, you need to change the value of that particular cell in the data channel being displayed in that table column.  This you can do with the ChV() function in a VBScript, or you can change that value interactively in a VIEW table.
    Of course, if you're talking about a table in a SUDialog, then there is a way to address and edit individual table cells, but my guess is that this is not the sort of table you're talking about.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Table cells not editable in Contribute

    I have a date table (inside a CSS layout) which displays incorrectly in Contribute Edit mode.This is the URL http://www.greencs.co.uk/accreditations.html
    In Contribute Edit mode, the right hand column of the table (which contains the PDF certificates) is pushed far out to the right (beyond the rest of the layout) which makes it impossible for the cells in this column to be edited. This also happens in Dreamweaver; the table width is 598 pixels but the Display width (in parenthesis in Dreamweaver) is 1300 px. Does anyone know why the Display width, which I assume Contribute is using in Edit mode, is so wide..... and how I can constrain it.
    I have tried adding various table cell widths but to no avail. Help.....
    Many thanks

    This problem has been solved by placing the logo images in their own table cell instead of floating left. The float and adjacent text caused the problem. Thanks to Neil Gibson @cvwcreative who came up with the solution on Twitter.

  • Auto update of time/date in a table cell in pages

    I used to be able to do this in older versions.
    In pages when I have a table cell with time/date I would like to have the current date show up every time I open the document. Not on every date in the document, but just in a set cell in a  table.

    Hi Brian,
    Use the NOW function.
    Menu > Insert > Formula > Edit Formula
    Regards,
    Ian.

  • How to stop editing in a table cell

    i m using JTextArea as renderer and editor for table cell. While editing i want to stop editing in that cell at some perticular instance. i have used stopCellEditing() function on TableCellEditor but still the Caret does not goes away and when i press any key it still types that character at that place. I want to hide the Caret and do not want any character to print in the cell after calling stopCellEditing().

    What you have already done, and the resulting behavior is unclear from your post. Post more details.

Maybe you are looking for

  • Accounting entries at billing and excise invoice creation in J1IIN

    Hello Guruz I need to know the accouning entries at the time of billing and the excise invoice creation in J!IIN. Thanks in advance. Regards.

  • Need help identifying a kernel panic

    Hi all, I've been struggling with my iMac now for six months or so.  At the worst of things, I couldn't boot up in anything other than safe boot.  I did end up identifying a stick of 4gb Corsair ram as the culprit, but after pulling it I am still hav

  • 5300 firmware update v7

    Previously I used v5.2. Now I updated it to 7.2. May I know what are the new features or fixes that have been done to the new firmware? Tq

  • Oracle Database10g on Solaris 10

    Oracle Downloaded OK. Got a problem installing it, When I run the install it tells me that it can't install Oracle on 5.10 and that I should upgrade to 5.9 (5.10 is Solaris 10 and 5.9 is Solaris 9) Has Anyone got any ideas, I would prefer not to have

  • Tomcat: java.lang.NoClassDefFoundError: oracle/sql/NUMBER

    hi, i have managed to come this far with my "simple" webapplication under tomcat. the exception is: java.lang.NoClassDefFoundError: oracle/sql/NUMBER since i have tried to put the classes12.jar in every reasonable directory without effect, i have to