NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on February 28, 2020, 07:35:15 AM

Title: Where to embed after a Form Insert?
Post by: Alberto on February 28, 2020, 07:35:15 AM
Having a Form with Autonumber.
I need to add a child record each time the form record is inserted.
Where must I embed the code?
Title: Re: Where to embed after a Form Insert?
Post by: osquiabro on February 28, 2020, 09:08:03 AM
PostInsert Routine
Title: Re: Where to embed after a Form Insert?
Post by: Alberto on February 28, 2020, 09:48:28 AM
THis dos not work because PostInsert is called at the end of the form, when saving.
I need to add the record when opening the form for insert right after the form table is inserted and I have the autonumber id
and then see it in a browse included in the same form
Title: Re: Where to embed after a Form Insert?
Post by: osquiabro on February 28, 2020, 10:22:24 AM
pues la pregunta fue mal redactada.. puedes insertar en el PreInsert y desconozco qué base de datos estas utilizando ya que es diferente para tps vs sql
Title: Re: Where to embed after a Form Insert?
Post by: Bruce on March 01, 2020, 10:00:23 PM
The PreInsert routine, at the end.

cheers
Bruce