Posted Tuesday, March 15, 2005 @ 21:16:10
QuickTable needs to know when the user has entered enough information in the record, so that information can be inserted into database/ejb. Currently when the user moves to a different record than the currently added new record, quicktable inserts the new record into database. Before it inserts into database it calls the beforeInsert method.
In your case may be the user has not moved into another row, that is why beforeInsert() is not called. If you really want to insert the row into database once the user moves to a different cell in the same row, then you need to set dbTable.setDatabaseUpdateMode(DBTable.UPDATE_DATABASE_ON_CELL_EXIT )
Or if you know exactly when the record should be inserted, just call the dbTable.save() method, this will update any pending changes into database. You can also provide a save button and call the save() method or when the user exits the application you can call save() so that any pending updates will be updated into database.