posted 20 years ago
(Sorry for not mentioning this before: I am working on B&S 2.1.2)
Ken:
Yep...something like that is what I had in mind...I'll give it a try.
Javini:
I was thinking that I would have all cells not editable except for the owner id field for each contract, and then only if it was blank. The user could just type in an owner id and hit enter to stop editing. As long as I have a TableModelListener registered with my data model, the listener can instruct my controller to persist the data to the database.
However, if the user edits an owner id field and then tries to select a different row without hitting the enter key first, I need to make sure that the info that they entered was exactly what they wanted because after an owner id has been assigned, I make the owner id field of that row
non-editable.
Maybe it is a bit of overkill, but it seems that further enhancements to the client would be easier to make doing things this way. All you would have to do to update any of the fields is just make them editable.
What do you think?