[Opensource] Questions about DBMaint
Tino Dai
tdai at optonline.net
Wed Jul 16 08:36:45 PDT 2003
Hi All,
I have this question about DBMaint and inserting entries into the
database. I have extended the DBMaint to EntryDBMaint. And I have added
setReadOnly to a couple of fields in my dbobject Entry field so that
they won't show up when the EntryDBMaint is rendering the jsp.
addField(FLD_USER,"int",30,false,"User Name");
setReadOnly(FLD_USER);
addField(FLD_DATE,"datetime",0,false,"Date and Time");
setReadOnly(FLD_DATE);
But when I go to add using the state AddUpdate, I get a JBDCExecutor
error because not all the fields are filled. I have already tried using
the add method in the Entry dbobj to get those field manually entered in
to no avail. I have a couple of ideas in my head such as to extend the
AddUpdate class and add those fields in manually there, but I wanted to
see if there was any "correct" ways to do it.
Thanks!
Tino
More information about the Opensource
mailing list