addRow error when further editing is done  
Author Message
mrafn





PostPosted: 2004-8-14 2:58:00 Top

java-programmer, addRow error when further editing is done Hi All,

Quick question (hopefully an easy answer).

Using JBuilderX--a GUI with a JTable component, I click a button
calling a method that adds a new row to a TableDataSet table in the
Database. This code in a datamodule class method:

openIMTable();
DataRow item = new DataRow(imTable);
item.setString("COLUMN1", "SOME TEXT");
imTable.addRow(item);

Returning to the GUI, the row is visually added, everything is fine.
The new row is highlighted in the JdbTable component. I click on an
empty column field in the new row and type some info--press Enter and
get the following error message: "Unable to set value because could
not post or leave row 0". If I select a different row with the mouse
and then reselect the "new" row I can add other fields with no
problem.

What am I missing?

TIA
Mark