Hi,

onaccept is called with form as a parameter after the form is
accepted, so form.vars.id has the newly inserted record id.

You can multiple functions called by onaccept:
onaccept=lambda form: (f1(form),f2(form),f3(form),...)

Denes.



On Jan 27, 8:16 pm, DJ <sebastianjaya...@gmail.com> wrote:
> Hi there,
>
> I would like to perform another database transaction using 
> crud.settings.create_onaccept
> soon after a CRUD create action using the newly created record id.
>
> That is, does CRUD create return the ID of the new record for downstream
> processing? If so, how do I get it?
>
> If this is not possible, can you recommend any other ways to accomplish the
> same (using crud)?
>
> Thanks,
> sebastian

Reply via email to