I would like to update or insert multiple records to a single table using one form. The form could have, say, possibilities for up to 25 row entries. Is this possible using Zope? WH
William, I do something like this. I use a form and then each row of data has field names like: account01 desc01 amount01 account02 desc02 amount02 etc then, after submit do something like: (its been a while but this is close) for n in range(numberOfRows): acct = 'account' + str(n) acctvalue = _[acct] someZSQL( acct=acct, ...) etc HTH, David ----- Original Message ----- From: "William Herring" <william.herring@spgenetics.com> To: <zope@zope.org> Sent: Monday, August 16, 2004 2:26 AM Subject: [Zope] multiplie udate/insert
I would like to update or insert multiple records to a single table using one form. The form could have, say, possibilities for up to 25 row entries. Is this possible using Zope?
WH
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
William Herring wrote at 2004-8-16 05:26 -0400:
I would like to update or insert multiple records to a single table using one form. The form could have, say, possibilities for up to 25 row entries. Is this possible using Zope?
Yes. You might be interested in the ":records" packager of ZPublisher. For details, read section 2.6.3.2 of <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> -- Dieter
participants (3)
-
David Hassalevris -
Dieter Maurer -
William Herring