I usually encounter similar problems when using auto-increment fields as keys. A work-round I use is to configure an Interceptor with a preInsert() method that retrieves the key and specifies it to DbForms. Like:
public int preInsert(HttpServletRequest request, Table table, FieldValues fieldValues, DbFormsConfig config, Connection dbConn) throws ValidationException { int key = getNextSequenceEntry(); setValue(table, fieldValues, "key_field", String.valueOf(key)); } I hope this helps. > -----Original Message----- > From: Shawn [SMTP:[EMAIL PROTECTED] > Sent: 18 August 2004 04:36 > To: dbf interest > Subject: Re: [dbforms] DbForm-Insert Behaviour > > > > I have a Jsp file (x.jsp) consisting of a dbform for a table with > > navigation and data maintenance events. > > > > The followUp on the dbform is the same jsp (x.jsp). > > The insertButton does not have any followUp. > > > > After inputing the data in the form and activating the insert button, I > > am presented not with the data just inserted but the first row in the > > table. How can I change this behaviour, so that the inserted row is > > visible with the the navigation and maintenance events (buttons) ? > > > AFAIK that is a bug. Are you using the most recent version -- the current > weekly build may be better than the last "release"? I recall having this > problem before. When I insert a record, it goes directly to the row I > inserted with navigation buttons enabled. > > > > > > > > -- > Shawn > > Karma is immutable, so act accordingly! > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > DbForms Mailing List > > http://www.wap-force.net/dbforms DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for the use of the recipient. Any disclosure, copying or distribution of all or part of the information contained herein to or by third parties is prohibited and may be unlawful. In any event the contents herein is without prejudice. ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms