NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: seanh on March 30, 2023, 04:16:14 PM

Title: Does the PostInsert Routine ever get called?
Post by: seanh on March 30, 2023, 04:16:14 PM
I've set some traces in the postInsert routine, but they never fire?

Is this normal?
Title: Re: Does the PostInsert Routine ever get called?
Post by: Bruce 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"?
Title: Re: Does the PostInsert Routine ever get called?
Post by: seanh 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.
Title: Re: Does the PostInsert Routine ever get called?
Post by: Bruce 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