NetTalk Central

Author Topic: Where to embed after a Form Insert?  (Read 3442 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1871
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Where to embed after a Form Insert?
« 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?
-----------
Regards
Alberto

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: Where to embed after a Form Insert?
« Reply #1 on: February 28, 2020, 09:08:03 AM »
PostInsert Routine

Alberto

  • Hero Member
  • *****
  • Posts: 1871
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Where to embed after a Form Insert?
« Reply #2 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
-----------
Regards
Alberto

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: Where to embed after a Form Insert?
« Reply #3 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Where to embed after a Form Insert?
« Reply #4 on: March 01, 2020, 10:00:23 PM »
The PreInsert routine, at the end.

cheers
Bruce