Re: [Zope] Incrementing a form field

2000-12-12 Thread administrator
If you are working with MySQL or some other database system, then your database should deliver a valid id. For a description have a look in the HowToDos and search for: Creating a new record with subrecords in MySQL Best regards Arno > Hi! > > I have a form that is used to insert some records t

Re: [Zope] Incrementing a form field

2000-12-12 Thread César A. K. Grossmann
Andy McKay wrote: > > You could use FSCounter to do your counting: > http://www.zope.org/Members/andym/wiki/FSCounter. > > There is a How-To on using unique_ids: > http://www.zope.org/Members/andym/FSCounter/unique_ids Thanks, but I think that FSCounter cannot be used this time. The problem is,

[Zope] Fw: [Zope] Incrementing a form field

2000-12-11 Thread Andy McKay
nal Message - From: "César A. K. Grossmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 11, 2000 10:44 AM Subject: [Zope] Incrementing a form field > Hi! > > I have a form that is used to insert some records to a database, and one >

[Zope] Incrementing a form field

2000-12-11 Thread César A. K. Grossmann
Hi! I have a form that is used to insert some records to a database, and one of the fields is a sequence number. I want to increment this number when the form is used, unless is the first time it is loaded. The form (idea copied from the SmartForms HOWTO) have the name "Register", and is somethi