NetTalk Central

Author Topic: Does the PostInsert Routine ever get called?  (Read 1328 times)

seanh

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • Email
Does the PostInsert Routine ever get called?
« on: March 30, 2023, 04:16:14 PM »
I've set some traces in the postInsert routine, but they never fire?

Is this normal?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11204
    • View Profile
Re: Does the PostInsert Routine ever get called?
« Reply #1 on: April 02, 2023, 09:47:58 PM »
might be.
Do you have any auto-numbering in the table?
Is the <form> tag turned on?
Id the form in "insert mode"?

seanh

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • Email
Re: Does the PostInsert Routine ever get called?
« Reply #2 on: April 02, 2023, 11:10:46 PM »
Quote
Do you have any auto-numbering in the table?
Yes.  It's an Invoice header.  Id is GUID but Invoice number is auto Numbered.

Quote
Is the <form> tag turned on?
No idea.  It mostly as generated.  Where's that?

Quote
Id the form in "insert mode"?
It's called from a browse Insert Button, so Yes.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11204
    • View Profile
Re: Does the PostInsert Routine ever get called?
« Reply #3 on: April 03, 2023, 05:43:29 PM »
Hi Sean,

2) it's an option on the General Tab of the form properties.
"Include <form> tag" or something like that.

3) If Auto-inc is on, and auto-inc is being done, then the form may be in Change mode.
Check to see if it goes out through PostUpdate instead?
(From your description, it should _not_ pre-auto-inc, which is something you can control on the Advanced tab of the form options.)

Cheers
Bruce