Thanks Anthoni,
Great idea! That works for sure!
Thanks!
Il giorno 17/gen/2013 19:43, Anthony abasta...@gmail.com ha scritto:
The create action of the grid results in a URL that ends with args
/new/tablename, so you can do:
if request.args and request.args[-2] == 'new':
tablename = request.args[-1]
[custom create code]
Anthony
On Thursday, January 17, 2013 11:32:08 AM UTC-5, AngeloC wrote:
Hi guys,
I'm trying to insert something into related tables with SQLFORM.grid.
I want the user can see only one form with mixed fields for the various
tables. Tables are related, so I have to insert a record contemporary on
multiple tables. However I want to stick to SQLFORM.grid for the maximum
extent.
As far I can understand, there is no way to make it with the
stock SQLFORM.grid, so I should opt for SQLFORM.factory.
Is there an easy way to intercept the create (insertion)
of SQLFORM.grid and replace it with an SQLFORM.factory?
Thank you!
--
Profile:
http://it.linkedin.com/in/**compagnucciangelohttp://it.linkedin.com/in/compagnucciangelo
--
--