Posted Wednesday, May 4, 2005 @ 20:31:02
1) In order to update primary keys, please refer the api help for the method
addUpdateSql(java.lang.String updateStatement, java.lang.String columnPointer, int[] primaryColumns)
Once you pass the primaryColumns column pointer array, quicktable will automatically take care of updates of primary columns.
example if emp no is primary column and if the current emp no=1 and user updates that to 2, then update statement will be executed with update .. empno=2 where empno=1
2) It looks like you don't want to allow the user to update the primary columns using the getCellEditable() method. You can acheive that by calling setEditable(false) on that column.
3) unfortunately currently there is no method like isNewRow(). But it can be acheived using the onNewButtonClick() & afterInsert() methods in DatabaseChangeListener.
Please have a look at CustomerOrderDemo sample, that will give you an idea about most of the quicktable classes.